org.opentripplanner.api.model.serverinfo.ApiServerInfo 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.api.model.serverinfo;
import org.opentripplanner.model.projectinfo.OtpProjectInfo;
public class ApiServerInfo {
public final String cpuName;
public final int nCores;
public final ApiProjectVersion version;
public final ApiVersionControlInfo versionControl;
public final ApiConfigInfo config;
public final String otpSerializationVersionId;
public ApiServerInfo(String cpuName, int nCores, OtpProjectInfo projectInfo) {
this.cpuName = cpuName;
this.nCores = nCores;
this.version = new ApiProjectVersion(projectInfo.version);
this.versionControl = new ApiVersionControlInfo(projectInfo.versionControl);
this.config = new ApiConfigInfo(projectInfo);
this.otpSerializationVersionId = projectInfo.getOtpSerializationVersionId();
}
}