public class ExecutionGraph extends Object implements Serializable
| Constructor and Description |
|---|
ExecutionGraph(String jobName) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateActorMappings()
generate relation mappings between actors, execution vertices and channels this method must be
called after worker actor is set.
|
int |
generateExecutionVertexId() |
Optional<io.ray.api.BaseActorHandle> |
getActorById(io.ray.api.id.ActorId actorId)
Get specified actor by actor id.
|
String |
getActorName(io.ray.api.id.ActorId actorId) |
Set<String> |
getActorName(Set<io.ray.api.id.ActorId> actorIds) |
Set<io.ray.api.BaseActorHandle> |
getActorsByChannelId(String channelId)
Get actors in both sides of a channelId
|
List<io.ray.api.BaseActorHandle> |
getActorsFromJobVertices(List<ExecutionJobVertex> executionJobVertices)
Get actors according to job vertices.
|
List<io.ray.api.BaseActorHandle> |
getAllActors()
Get all actors by graph.
|
List<io.ray.api.id.ActorId> |
getAllActorsId() |
List<ExecutionVertex> |
getAllAddedExecutionVertices()
Get all execution vertices whose status is 'TO_ADD' from current execution graph.
|
List<ExecutionVertex> |
getAllExecutionVertices()
Get all execution vertices from current execution graph.
|
long |
getBuildTime() |
List<ExecutionJobVertex> |
getExecutionJobVertexList() |
Map<Integer,ExecutionJobVertex> |
getExecutionJobVertexMap() |
ExecutionVertex |
getExecutionVertexByActorId(io.ray.api.id.ActorId actorId)
Get specified execution vertex from current execution graph by actor id.
|
ExecutionVertex |
getExecutionVertexByExecutionVertexId(int executionVertexId)
Get specified execution vertex from current execution graph by execution vertex id.
|
AtomicInteger |
getExecutionVertexIdGenerator() |
Map<String,String> |
getJobConfig() |
String |
getJobName() |
int |
getMaxParallelism() |
List<io.ray.api.BaseActorHandle> |
getNonSourceActors()
Get transformation and sink actors by graph.
|
io.ray.api.BaseActorHandle |
getPeerActor(io.ray.api.BaseActorHandle actor,
String channelName)
Get the peer actor in the other side of channelName of a given actor
|
List<io.ray.api.BaseActorHandle> |
getSinkActors()
Get sink actors by graph.
|
List<io.ray.api.BaseActorHandle> |
getSourceActors()
Get source actors by graph.
|
void |
setExecutionJobVertexMap(Map<Integer,ExecutionJobVertex> executionJobVertexMap) |
void |
setExecutionVertexMap(Map<Integer,ExecutionVertex> executionVertexMap) |
void |
setJobConfig(Map<String,String> jobConfig) |
void |
setMaxParallelism(int maxParallelism) |
public ExecutionGraph(String jobName)
public String getJobName()
public List<ExecutionJobVertex> getExecutionJobVertexList()
public Map<Integer,ExecutionJobVertex> getExecutionJobVertexMap()
public void setExecutionJobVertexMap(Map<Integer,ExecutionJobVertex> executionJobVertexMap)
public void generateActorMappings()
public void setExecutionVertexMap(Map<Integer,ExecutionVertex> executionVertexMap)
public int getMaxParallelism()
public void setMaxParallelism(int maxParallelism)
public long getBuildTime()
public int generateExecutionVertexId()
public AtomicInteger getExecutionVertexIdGenerator()
public List<ExecutionVertex> getAllExecutionVertices()
public List<ExecutionVertex> getAllAddedExecutionVertices()
public ExecutionVertex getExecutionVertexByExecutionVertexId(int executionVertexId)
executionVertexId - execution vertex id.public ExecutionVertex getExecutionVertexByActorId(io.ray.api.id.ActorId actorId)
actorId - the actor id of execution vertex.public Optional<io.ray.api.BaseActorHandle> getActorById(io.ray.api.id.ActorId actorId)
actorId - the actor id of execution vertex.public io.ray.api.BaseActorHandle getPeerActor(io.ray.api.BaseActorHandle actor,
String channelName)
actor - actor in this sidechannelName - the channel namepublic Set<io.ray.api.BaseActorHandle> getActorsByChannelId(String channelId)
channelId - the channelIdpublic List<io.ray.api.BaseActorHandle> getAllActors()
public List<io.ray.api.BaseActorHandle> getSourceActors()
public List<io.ray.api.BaseActorHandle> getNonSourceActors()
public List<io.ray.api.BaseActorHandle> getSinkActors()
public List<io.ray.api.BaseActorHandle> getActorsFromJobVertices(List<ExecutionJobVertex> executionJobVertices)
executionJobVertices - specified job verticespublic String getActorName(io.ray.api.id.ActorId actorId)
public List<io.ray.api.id.ActorId> getAllActorsId()
Copyright © 2021. All rights reserved.