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

io.ray.serve.deployment.Application Maven / Gradle / Ivy

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

import io.ray.serve.dag.DAGNode;
import io.ray.serve.dag.DAGNodeBase;
import java.util.Map;
import java.util.function.Function;

public class Application implements DAGNodeBase {
  private DAGNode internalDagNode;

  private Application(DAGNode internalDagNode) {
    this.internalDagNode = internalDagNode;
  }

  public DAGNode getInternalDagNode() {
    return internalDagNode;
  }

  public static Application fromInternalDagNode(DAGNode dagNode) {
    return new Application(dagNode);
  }

  @Override
  public  T applyRecursive(Function fn) {
    return internalDagNode.applyRecursive(fn);
  }

  @Override
  public  DAGNodeBase applyAndReplaceAllChildNodes(Function fn) {
    return internalDagNode.applyAndReplaceAllChildNodes(fn);
  }

  @Override
  public DAGNodeBase copy(
      Object[] newArgs, Map newOptions, Map newOtherArgsToResolve) {
    return internalDagNode.copy(newArgs, newOptions, newOtherArgsToResolve);
  }

  @Override
  public String getStableUuid() {
    return internalDagNode.getStableUuid();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy