public class Supervisor extends Object implements DaemonCommon, AutoCloseable
Constructor and Description |
---|
Supervisor(Map<String,Object> conf,
IContext sharedContext,
ISupervisor iSupervisor) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getAssignmentId() |
Map<String,Object> |
getConf() |
AtomicReference<Map<Long,LocalAssignment>> |
getCurrAssignment() |
String |
getHostName() |
String |
getId() |
ISupervisor |
getiSupervisor() |
Localizer |
getLocalizer() |
IStormClusterState |
getStormClusterState() |
String |
getStormVersion() |
Utils.UptimeComputer |
getUpTime() |
boolean |
isWaiting() |
void |
launch()
Launch the supervisor
|
void |
launchDaemon()
start distribute supervisor
|
static void |
main(String[] args)
supervisor daemon enter entrance
|
void |
shutdownAllWorkers(UniFunc<Slot> onWarnTimeout,
UniFunc<Slot> onErrorTimeout) |
public Supervisor(Map<String,Object> conf, IContext sharedContext, ISupervisor iSupervisor) throws IOException
IOException
public String getId()
public ISupervisor getiSupervisor()
public Utils.UptimeComputer getUpTime()
public String getStormVersion()
public IStormClusterState getStormClusterState()
public String getAssignmentId()
public String getHostName()
public AtomicReference<Map<Long,LocalAssignment>> getCurrAssignment()
public Localizer getLocalizer()
public void launchDaemon()
start distribute supervisor
public void close()
close
in interface AutoCloseable
public void shutdownAllWorkers(UniFunc<Slot> onWarnTimeout, UniFunc<Slot> onErrorTimeout)
public boolean isWaiting()
isWaiting
in interface DaemonCommon
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.