public class Container extends Object implements Serializable
| Constructor and Description |
|---|
Container() |
Container(String address,
io.ray.api.id.UniqueId nodeId,
String hostname,
Map<String,Double> availableResources) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateActor(ExecutionVertex vertex) |
static Container |
from(io.ray.api.runtimecontext.NodeInfo nodeInfo) |
String |
getAddress() |
int |
getAllocatedActorNum() |
Map<String,Double> |
getAvailableResources() |
int |
getCapacity() |
List<Integer> |
getExecutionVertexIds() |
String |
getHostname() |
ContainerId |
getId() |
String |
getName() |
io.ray.api.id.UniqueId |
getNodeId() |
int |
getRemainingCapacity() |
boolean |
isEmpty() |
boolean |
isFull() |
void |
releaseActor(ExecutionVertex vertex) |
void |
setId(ContainerId id) |
String |
toString() |
void |
updateCapacity(int capacity) |
public static Container from(io.ray.api.runtimecontext.NodeInfo nodeInfo)
public ContainerId getId()
public void setId(ContainerId id)
public String getName()
public String getAddress()
public io.ray.api.id.UniqueId getNodeId()
public String getHostname()
public int getCapacity()
public void updateCapacity(int capacity)
public int getRemainingCapacity()
public int getAllocatedActorNum()
public boolean isFull()
public boolean isEmpty()
public void allocateActor(ExecutionVertex vertex)
public void releaseActor(ExecutionVertex vertex)
Copyright © 2021. All rights reserved.