Constructor and Description |
---|
SynchronizeAssignments(Supervisor supervisor,
SupervisorAssignments assignments,
ReadClusterState readClusterState)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
getAssignmentsFromMaster(Map conf,
IStormClusterState clusterState,
String node)
Used by
Supervisor to fetch assignments when start up. |
void |
getAssignmentsFromMasterUntilSuccess(Supervisor supervisor)
Used by
Supervisor to fetch assignments when start up. |
void |
run() |
public SynchronizeAssignments(Supervisor supervisor, SupervisorAssignments assignments, ReadClusterState readClusterState)
Constructor.
supervisor
- Supervisor
assignments
- SupervisorAssignments
readClusterState
- ReadClusterState
public void getAssignmentsFromMasterUntilSuccess(Supervisor supervisor)
Used by Supervisor
to fetch assignments when start up.
supervisor
- Supervisor
public void getAssignmentsFromMaster(Map conf, IStormClusterState clusterState, String node)
Used by Supervisor
to fetch assignments when start up.
conf
- configclusterState
- IStormClusterState
node
- id of nodeCopyright © 2019 The Apache Software Foundation. All rights reserved.