org.onebusaway.transit_data_federation.impl.realtime.orbcad
Class AbstractOrbcadRecordSource
java.lang.Object
org.onebusaway.transit_data_federation.impl.realtime.orbcad.AbstractOrbcadRecordSource
- Direct Known Subclasses:
- OrbcadRecordFtpSource, OrbcadRecordHttpSource
@ManagedResource(value="org.onebusaway.transit_data_federation.impl.realtime.orbcad:name=OrbcadRecordFtpSource")
public abstract class AbstractOrbcadRecordSource
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_executor
protected ScheduledExecutorService _executor
_agencyIds
protected List<String> _agencyIds
AbstractOrbcadRecordSource
public AbstractOrbcadRecordSource()
setRefreshInterval
public void setRefreshInterval(int refreshIntervalInSeconds)
setAgencyId
public void setAgencyId(String agencyId)
setAgencyIds
public void setAgencyIds(List<String> agencyIds)
setBlockIdMappingFile
public void setBlockIdMappingFile(File blockIdMappingFile)
setVehicleLocationListener
public void setVehicleLocationListener(VehicleLocationListener vehicleLocationListener)
setBlockCalendarService
public void setBlockCalendarService(BlockCalendarService blockCalendarService)
setScheduledBlockLocationService
public void setScheduledBlockLocationService(ScheduledBlockLocationService scheduledBlockLocationService)
getRecordsTotal
@ManagedAttribute
public int getRecordsTotal()
- JMX Attributes
getRecordWithoutScheduleDeviation
@ManagedAttribute
public int getRecordWithoutScheduleDeviation()
getRecordsWithoutBlockId
@ManagedAttribute
public int getRecordsWithoutBlockId()
getRecordsWithoutBlockIdInGraph
@ManagedAttribute
public int getRecordsWithoutBlockIdInGraph()
getRecordsWithoutServiceDate
@ManagedAttribute
public int getRecordsWithoutServiceDate()
getRecordsValid
@ManagedAttribute
public int getRecordsValid()
start
protected void start()
throws SocketException,
IOException
- Setup and Teardown
- Throws:
SocketException
IOException
stop
protected void stop()
throws IOException
- Throws:
IOException
setup
protected void setup()
- Protected Methods
handleRefresh
protected abstract void handleRefresh()
throws IOException
- Throws:
IOException
Copyright © 2012 OneBusAway. All Rights Reserved.