Package org.apache.storm
Class ProcessSimulator
java.lang.Object
org.apache.storm.ProcessSimulator
In local mode,
ProcessSimulator
keeps track of Shutdownable objects
in place of actual processes (in cluster mode).-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Shutdownable>
Get all process handles.static void
Kill all processes.static void
killProcess
(String pid) Kill a process.static void
registerProcess
(String pid, Shutdownable shutdownable) Register a process' handle.
-
Field Details
-
processMap
-
-
Constructor Details
-
ProcessSimulator
public ProcessSimulator()
-
-
Method Details
-
registerProcess
Register a process' handle. -
getAllProcessHandles
Get all process handles. -
killProcess
Kill a process. -
killAllProcesses
public static void killAllProcesses()Kill all processes.
-