Package org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime

Examples of org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.MonitoredResult


        _log.error("no configured data sources");
        return Response.ok(error("unmatched-trips", "no configured data sources")).build();
      }
     
      for (MonitoredDataSource mds : getDataSources()) {
        MonitoredResult result = mds.getMonitoredResult();
        if (result == null) continue;
        for (String mAgencyId : result.getAgencyIds()) {
          _log.debug("examining agency=" + mAgencyId + " with unmatched trips=" + result.getUnmatchedTripIds().size());
          if (agencyId.equals(mAgencyId)) {
            unmatchedTrips += result.getUnmatchedTripIds().size();
          }
        }
      }
      return Response.ok(ok("unmatched-trips", unmatchedTrips)).build();
    } catch (Exception e) {
View Full Code Here


        _log.error("no configured data sources");
        return Response.ok(error("unmatched-trip-ids", "con configured data sources")).build();
      }
     
      for (MonitoredDataSource mds : getDataSources()) {
        MonitoredResult result = mds.getMonitoredResult();
        if (result == null) continue;
        for (String mAgencyId : result.getAgencyIds()) {
          if (agencyId.equals(mAgencyId)) {
            unmatchedTripIds.addAll(result.getUnmatchedTripIds());
          }
        }
      }
      return Response.ok(ok("unmatched-trip-ids", unmatchedTripIds)).build();
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.MonitoredResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.