Class AgencyResource
- java.lang.Object
-
- org.onebusaway.watchdog.api.MetricResource
-
- org.onebusaway.watchdog.api.schedule.AgencyResource
-
@Path("/metric/schedule/agency") public class AgencyResource extends MetricResource
-
-
Field Summary
-
Fields inherited from class org.onebusaway.watchdog.api.MetricResource
_configuration, _log, _mapper
-
-
Constructor Summary
Constructors Constructor Description AgencyResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetAgencyCount()javax.ws.rs.core.ResponsegetAgencyExpiryDateDelta(String agencyId)javax.ws.rs.core.ResponsegetAgencyIdList()voidsetCalendarService(org.onebusaway.gtfs.services.calendar.CalendarService calendarService)voidsetTransitGraphDao(TransitGraphDao graph)voidstart()-
Methods inherited from class org.onebusaway.watchdog.api.MetricResource
error, error, getAddedTripIdCt, getCancelledTripIdCt, getDataSources, getInvalidLocation, getLocationTotal, getMatchedStopCt, getScheduledTrips, getScheduledTrips, getTDS, getTotalRecordCount, getUnmatchedStopCt, getUnmatchedTripIdCt, getValidRealtimeTripIds, ok, setMetricConfiguration
-
-
-
-
Method Detail
-
setCalendarService
@Autowired public void setCalendarService(org.onebusaway.gtfs.services.calendar.CalendarService calendarService)
-
setTransitGraphDao
@Autowired public void setTransitGraphDao(TransitGraphDao graph)
-
start
@PostConstruct @Refreshable(dependsOn="calendarData") public void start()
-
getAgencyCount
@Path("total") @GET @Produces("application/json") public javax.ws.rs.core.Response getAgencyCount()
-
getAgencyIdList
@Path("id-list") @GET @Produces("application/json") public javax.ws.rs.core.Response getAgencyIdList()
-
getAgencyExpiryDateDelta
@Path("{agencyId}/expiry-date-delta") @GET @Produces("application/json") public javax.ws.rs.core.Response getAgencyExpiryDateDelta(@PathParam("agencyId") String agencyId)
-
-