io.ray.serve.deployment.Application Maven / Gradle / Ivy
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