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<String,Object> topoConf,
String schedulerLocalDir) |
public void prepare(Map<String,Object> topoConf, String schedulerLocalDir)
prepare
in interface ISupervisor
public String getSupervisorId()
ISupervisor
getSupervisorId
in interface ISupervisor
public String getAssignmentId()
ISupervisor
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 © 2023 The Apache Software Foundation. All rights reserved.