public final class FlatTopology extends Object implements Topology
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(String taskId)
Add task with id 'taskId' to.
|
int |
getNodeVersion(String taskId)
Get the version of the Task 'taskId'.
|
String |
getRootId()
Get the id of the root task.
|
Configuration |
getTaskConfiguration(String taskId)
Get the topology portion of the Configuration.
|
boolean |
isRootPresent()
Check whether the root node has been added or not.
|
void |
onFailedTask(String id)
Update state on receipt of FailedTask.
|
void |
onReceiptOfMessage(GroupCommunicationMessage msg)
Update state on receipt of a message.
|
void |
onRunningTask(String id)
Update state on receipt of RunningTask.
|
void |
removeTask(String taskId)
Remove task with id 'taskId' from.
|
void |
setOperatorSpecification(OperatorSpec spec)
Set operator specification of the operator.
|
void |
setRootTask(String rootId)
Set task with id 'senderId' as.
|
public void setRootTask(String rootId)
TopologysetRootTask in interface Topologypublic String getRootId()
Topologypublic boolean isRootPresent()
TopologyisRootPresent in interface Topologytrue if root has been added, false otherwisepublic void setOperatorSpecification(OperatorSpec spec)
TopologysetOperatorSpecification in interface Topologypublic Configuration getTaskConfiguration(String taskId)
TopologygetTaskConfiguration in interface Topologypublic int getNodeVersion(String taskId)
TopologygetNodeVersion in interface Topologypublic void removeTask(String taskId)
TopologyremoveTask in interface Topologypublic void addTask(String taskId)
Topologypublic void onFailedTask(String id)
TopologyonFailedTask in interface Topologypublic void onRunningTask(String id)
TopologyonRunningTask in interface Topologypublic void onReceiptOfMessage(GroupCommunicationMessage msg)
TopologyonReceiptOfMessage in interface TopologyCopyright © 2017 The Apache Software Foundation. All rights reserved.