public class ProcessRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProcessRegistry.ProcessRegisterCallback
A callback to be called upon registering a process.
|
Modifier and Type | Method and Description |
---|---|
static ProcessRegistry |
getInstance()
Gets the singleton instance of this class.
|
void |
registerProcess(Object process,
ProcessExecutorParams params,
com.google.common.collect.ImmutableMap<String,String> context)
Registers the process and notifies the subscribers.
|
void |
subscribe(ProcessRegistry.ProcessRegisterCallback processRegisterCallback)
Subscribes the process register callback.
|
void |
unsubscribe(ProcessRegistry.ProcessRegisterCallback processRegisterCallback)
Unsubscribes the process register callback.
|
public static ProcessRegistry getInstance()
public void subscribe(ProcessRegistry.ProcessRegisterCallback processRegisterCallback)
public void unsubscribe(ProcessRegistry.ProcessRegisterCallback processRegisterCallback)
public void registerProcess(Object process, ProcessExecutorParams params, com.google.common.collect.ImmutableMap<String,String> context)