org.onebusaway.transit_data_federation.impl.realtime.orbcad
Class OrbcadRecordFtpSource

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.realtime.orbcad.AbstractOrbcadRecordSource
      extended by org.onebusaway.transit_data_federation.impl.realtime.orbcad.OrbcadRecordFtpSource

@ManagedResource(value="org.onebusaway.transit_data_federation.impl.realtime.orbcad:name=OrbcadRecordFtpSource")
public class OrbcadRecordFtpSource
extends AbstractOrbcadRecordSource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.onebusaway.transit_data_federation.impl.realtime.orbcad.AbstractOrbcadRecordSource
AbstractOrbcadRecordSource.AvlRefreshTask, AbstractOrbcadRecordSource.RecordHandler
 
Field Summary
 
Fields inherited from class org.onebusaway.transit_data_federation.impl.realtime.orbcad.AbstractOrbcadRecordSource
_agencyIds, _executor
 
Constructor Summary
OrbcadRecordFtpSource()
           
 
Method Summary
 int getNewFtpFiles()
           
 int getTotalFtpFiles()
          JMX Attributes
protected  void handleRefresh()
           
 void setDataDirectory(String dataDirectory)
           
 void setDataSource(FtpDataSource dataSource)
           
protected  void setup()
          Private Methods
 void start()
          Setup and Teardown
 void stop()
           
 
Methods inherited from class org.onebusaway.transit_data_federation.impl.realtime.orbcad.AbstractOrbcadRecordSource
getRecordsTotal, getRecordsValid, getRecordsWithoutBlockId, getRecordsWithoutBlockIdInGraph, getRecordsWithoutServiceDate, getRecordWithoutScheduleDeviation, setAgencyId, setAgencyIds, setBlockCalendarService, setBlockIdMappingFile, setRefreshInterval, setScheduledBlockLocationService, setVehicleLocationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrbcadRecordFtpSource

public OrbcadRecordFtpSource()
Method Detail

setDataSource

public void setDataSource(FtpDataSource dataSource)

setDataDirectory

public void setDataDirectory(String dataDirectory)

getTotalFtpFiles

@ManagedAttribute
public int getTotalFtpFiles()
JMX Attributes


getNewFtpFiles

@ManagedAttribute
public int getNewFtpFiles()

start

@PostConstruct
public void start()
           throws SocketException,
                  IOException
Setup and Teardown

Overrides:
start in class AbstractOrbcadRecordSource
Throws:
SocketException
IOException

stop

@PreDestroy
public void stop()
          throws IOException
Overrides:
stop in class AbstractOrbcadRecordSource
Throws:
IOException

setup

protected void setup()
Private Methods

Overrides:
setup in class AbstractOrbcadRecordSource

handleRefresh

protected void handleRefresh()
                      throws IOException
Specified by:
handleRefresh in class AbstractOrbcadRecordSource
Throws:
IOException


Copyright © 2011 OneBusAway. All Rights Reserved.