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

org.opentripplanner.api.model.serverinfo.ApiServerInfo Maven / Gradle / Ivy

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();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy