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

io.ray.serve.replica.ReplicaContext Maven / Gradle / Ivy

There is a newer version: 2.39.0
Show newest version
package io.ray.serve.replica;

import java.util.Map;

/** Stores data for Serve API calls from within deployments. */
public class ReplicaContext {

  private String deploymentName;

  private String replicaTag;

  private Object servableObject;

  private Map config;

  private String appName;

  public ReplicaContext(
      String deploymentName,
      String replicaTag,
      Object servableObject,
      Map config,
      String appName) {
    this.deploymentName = deploymentName;
    this.replicaTag = replicaTag;
    this.servableObject = servableObject;
    this.config = config;
    this.appName = appName;
  }

  public String getDeploymentName() {
    return deploymentName;
  }

  public void setDeploymentName(String deploymentName) {
    this.deploymentName = deploymentName;
  }

  public String getReplicaTag() {
    return replicaTag;
  }

  public void setReplicaTag(String replicaTag) {
    this.replicaTag = replicaTag;
  }

  public Object getServableObject() {
    return servableObject;
  }

  public void setServableObject(Object servableObject) {
    this.servableObject = servableObject;
  }

  public Map getConfig() {
    return config;
  }

  public void setConfig(Map config) {
    this.config = config;
  }

  public String getAppName() {
    return appName;
  }

  public void setAppName(String appName) {
    this.appName = appName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy