public class StandaloneSupervisor extends Object implements ISupervisor
Constructor and Description |
---|
StandaloneSupervisor() |
Modifier and Type | Method and 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 stormConf,
String schedulerLocalDir) |
public void prepare(Map stormConf, String schedulerLocalDir)
prepare
in interface ISupervisor
public String getSupervisorId()
ISupervisor
The id used for writing metadata into ZK.
getSupervisorId
in interface ISupervisor
public String getAssignmentId()
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.
getAssignmentId
in interface ISupervisor
public Object getMetadata()
getMetadata
in interface ISupervisor
public boolean confirmAssigned(int port)
confirmAssigned
in interface ISupervisor
public void killedWorker(int port)
killedWorker
in interface ISupervisor
public void assigned(Collection<Integer> ports)
assigned
in interface ISupervisor
public String generateSupervisorId()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.