Constructor and Description |
---|
SynchronizeAssignments(Supervisor supervisor,
SupervisorAssignments assignments,
ReadClusterState readClusterState)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<SupervisorAssignments> |
getAllAssignmentsFromNumaSupervisors(Nimbus.Iface nimbus,
String node) |
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)
supervisor
- Supervisor
assignments
- SupervisorAssignments
readClusterState
- ReadClusterState
public void getAssignmentsFromMasterUntilSuccess(Supervisor supervisor)
Supervisor
to fetch assignments when start up.supervisor
- Supervisor
public List<SupervisorAssignments> getAllAssignmentsFromNumaSupervisors(Nimbus.Iface nimbus, String node) throws org.apache.storm.thrift.TException
org.apache.storm.thrift.TException
public void getAssignmentsFromMaster(Map conf, IStormClusterState clusterState, String node)
Supervisor
to fetch assignments when start up.conf
- configclusterState
- IStormClusterState
node
- id of nodeCopyright © 2023 The Apache Software Foundation. All rights reserved.