Class StandaloneSupervisor
- java.lang.Object
-
- org.apache.storm.daemon.supervisor.StandaloneSupervisor
-
- All Implemented Interfaces:
ISupervisor
public class StandaloneSupervisor extends Object implements ISupervisor
-
-
Constructor Summary
Constructors Constructor Description StandaloneSupervisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assigned(Collection<Integer> ports)
boolean
confirmAssigned(int port)
String
generateSupervisorId()
String
getAssignmentId()
The id used in assignments.Object
getMetadata()
String
getSupervisorId()
The id used for writing metadata into ZK.void
killedWorker(int port)
void
prepare(Map<String,Object> topoConf, String schedulerLocalDir)
-
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> topoConf, String schedulerLocalDir)
- Specified by:
prepare
in interfaceISupervisor
-
getSupervisorId
public String getSupervisorId()
Description copied from interface:ISupervisor
The id used for writing metadata into ZK.- Specified by:
getSupervisorId
in interfaceISupervisor
-
getAssignmentId
public String getAssignmentId()
Description copied from interface:ISupervisor
The id used in assignments. This combined with confirmAssigned decides what this supervisor is responsible for. The combination of this and getSupervisorId allows Nimbus to assign to a single machine and have multiple supervisors on that machine execute the assignment. This is important for achieving resource isolation.- Specified by:
getAssignmentId
in interfaceISupervisor
-
getMetadata
public Object getMetadata()
- Specified by:
getMetadata
in interfaceISupervisor
-
confirmAssigned
public boolean confirmAssigned(int port)
- Specified by:
confirmAssigned
in interfaceISupervisor
-
killedWorker
public void killedWorker(int port)
- Specified by:
killedWorker
in interfaceISupervisor
-
assigned
public void assigned(Collection<Integer> ports)
- Specified by:
assigned
in interfaceISupervisor
-
generateSupervisorId
public String generateSupervisorId()
-
-