org.opentripplanner.standalone.config.routerconfig.updaters.SiriVMUpdaterConfig Maven / Gradle / Ivy
package org.opentripplanner.standalone.config.routerconfig.updaters;
import static org.opentripplanner.standalone.config.framework.json.OtpVersion.NA;
import java.util.UUID;
import org.opentripplanner.ext.siri.updater.SiriVMUpdaterParameters;
import org.opentripplanner.standalone.config.framework.json.NodeAdapter;
public class SiriVMUpdaterConfig {
public static SiriVMUpdaterParameters create(String configRef, NodeAdapter c) {
return new SiriVMUpdaterParameters(
configRef,
c.of("feedId").since(NA).summary("TODO").asString(null),
c.of("logFrequency").since(NA).summary("TODO").asInt(-1),
c.of("maxSnapshotFrequencyMs").since(NA).summary("TODO").asInt(-1),
c.of("purgeExpiredData").since(NA).summary("TODO").asBoolean(false),
c.of("blockReadinessUntilInitialized").since(NA).summary("TODO").asBoolean(false),
c.of("url").since(NA).summary("TODO").asString(),
c.of("requestorRef").since(NA).summary("TODO").asString("otp-" + UUID.randomUUID()),
c.of("frequencySec").since(NA).summary("TODO").asInt(60),
c.of("timeoutSec").since(NA).summary("TODO").asInt(-1)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy