public class Slot extends Thread implements AutoCloseable
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description | 
|---|
Slot(ILocalizer localizer,
    Map<String,Object> conf,
    ContainerLauncher containerLauncher,
    String host,
    int port,
    LocalState localState,
    IStormClusterState clusterState,
    ISupervisor iSupervisor,
    AtomicReference<Map<Long,LocalAssignment>> cachedCurrentAssignments)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addProfilerActions(Set<org.apache.storm.daemon.supervisor.Slot.TopoProfileAction> actions)  | 
void | 
close()  | 
org.apache.storm.daemon.supervisor.Slot.MachineState | 
getMachineState()  | 
String | 
getWorkerId()  | 
void | 
run()  | 
void | 
setNewAssignment(LocalAssignment newAssignment)
Set a new assignment asynchronously 
 | 
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic Slot(ILocalizer localizer, Map<String,Object> conf, ContainerLauncher containerLauncher, String host, int port, LocalState localState, IStormClusterState clusterState, ISupervisor iSupervisor, AtomicReference<Map<Long,LocalAssignment>> cachedCurrentAssignments) throws Exception
Exceptionpublic org.apache.storm.daemon.supervisor.Slot.MachineState getMachineState()
public void setNewAssignment(LocalAssignment newAssignment)
Set a new assignment asynchronously
newAssignment - the new assignment for this slot to run, null to run nothingpublic void addProfilerActions(Set<org.apache.storm.daemon.supervisor.Slot.TopoProfileAction> actions)
public String getWorkerId()
public void close()
           throws Exception
close in interface AutoCloseableExceptionCopyright © 2022 The Apache Software Foundation. All Rights Reserved.