org.opentripplanner.standalone.config.updaters.SiriETUpdaterParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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; }
}