Class AssignmentConflictResource
- java.lang.Object
-
- org.onebusaway.watchdog.api.MetricResource
-
- org.onebusaway.watchdog.api.realtime.AssignmentConflictResource
-
@Path("/metric/realtime/conflicts") public class AssignmentConflictResource extends MetricResourcemonitor vehicle collisions (assignment grabs) on a block.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger_log-
Fields inherited from class org.onebusaway.watchdog.api.MetricResource
_configuration, _mapper
-
-
Constructor Summary
Constructors Constructor Description AssignmentConflictResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetAllBlockConflicts()javax.ws.rs.core.ResponsegetAllTripConflicts()javax.ws.rs.core.ResponsegetAllVehicleConflicts()voidrefresh()voidsetScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)voidstart()voidstop()-
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
-
setScheduledExecutorService
@Autowired public void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
-
getAllTripConflicts
@Path("trip/list") @GET @Produces("application/json") public javax.ws.rs.core.Response getAllTripConflicts()
-
getAllBlockConflicts
@Path("block/list") @GET @Produces("application/json") public javax.ws.rs.core.Response getAllBlockConflicts()
-
getAllVehicleConflicts
@Path("vehicle/list") @GET @Produces("application/json") public javax.ws.rs.core.Response getAllVehicleConflicts()
-
refresh
public void refresh()
-
start
@PostConstruct public void start()
-
stop
@PreDestroy public void stop()
-
-