All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.standalone.config.updaters.SiriETUpdaterParameters Maven / Gradle / Ivy

package org.opentripplanner.standalone.config.updaters;

import org.opentripplanner.ext.siri.updater.SiriETUpdater;
import org.opentripplanner.standalone.config.NodeAdapter;

public class SiriETUpdaterParameters extends PollingGraphUpdaterParameters
    implements SiriETUpdater.Parameters {

  private final String feedId;
  private final int logFrequency;
  private final int maxSnapshotFrequencyMs;
  private final boolean purgeExpiredData;
  private final boolean blockReadinessUntilInitialized;

  public SiriETUpdaterParameters(NodeAdapter c) {
    super(c);
    feedId = c.asText("feedId", null);
    logFrequency = c.asInt("logFrequency", -1);
    maxSnapshotFrequencyMs = c.asInt("maxSnapshotFrequencyMs", -1);
    purgeExpiredData = c.asBoolean("purgeExpiredData", false);
    blockReadinessUntilInitialized = c.asBoolean("blockReadinessUntilInitialized", false);
  }

  public String getFeedId() { return feedId; }

  public int getLogFrequency() { return logFrequency; }

  public int getMaxSnapshotFrequencyMs() { return maxSnapshotFrequencyMs; }

  public boolean purgeExpiredData() { return purgeExpiredData; }

  public boolean blockReadinessUntilInitialized() { return blockReadinessUntilInitialized; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy