Class SynchronizeAssignments
- java.lang.Object
-
- org.apache.storm.daemon.supervisor.timer.SynchronizeAssignments
-
-
Constructor Summary
Constructors Constructor Description SynchronizeAssignments(Supervisor supervisor, SupervisorAssignments assignments, ReadClusterState readClusterState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SupervisorAssignments>
getAllAssignmentsFromNumaSupervisors(Nimbus.Iface nimbus, String node)
void
getAssignmentsFromMaster(Map conf, IStormClusterState clusterState, String node)
Used bySupervisor
to fetch assignments when start up.void
run()
-
-
-
Constructor Detail
-
SynchronizeAssignments
public SynchronizeAssignments(Supervisor supervisor, SupervisorAssignments assignments, ReadClusterState readClusterState)
Constructor.- Parameters:
supervisor
-Supervisor
assignments
-SupervisorAssignments
readClusterState
-ReadClusterState
-
-
Method Detail
-
getAllAssignmentsFromNumaSupervisors
public List<SupervisorAssignments> getAllAssignmentsFromNumaSupervisors(Nimbus.Iface nimbus, String node) throws org.apache.storm.thrift.TException
- Throws:
org.apache.storm.thrift.TException
-
getAssignmentsFromMaster
public void getAssignmentsFromMaster(Map conf, IStormClusterState clusterState, String node)
Used bySupervisor
to fetch assignments when start up.- Parameters:
conf
- configclusterState
-IStormClusterState
node
- id of node
-
-