T
- Type of process specification delegate working with.R
- Type of accepted process specifications.public abstract class ProcessManagerWrapper<T,R> extends Object implements ProcessManager<R>
Constructor and Description |
---|
ProcessManagerWrapper(ProcessManager<T> delegate)
Constructs a new instance of process manager wrapper.
|
Modifier and Type | Method and Description |
---|---|
Map<UUID,List<LongRunningProcessStatus>> |
clear(Map<UUID,List<UUID>> procIds)
Clears metadata of the given processes.
|
Map<UUID,List<LongRunningProcessStatus>> |
ping(Map<UUID,List<UUID>> procIds)
Pings the given processes.
|
Map<UUID,List<UUID>> |
start(List<R> specifications)
Starts the processes by the given specifications.
|
Map<UUID,List<LongRunningProcessStatus>> |
stop(Map<UUID,List<UUID>> procIds,
boolean clear)
Stops the given processes.
|
protected abstract T |
transformSpecification(R spec)
Transforms accepted process specification into process specification delegate working with.
|
public ProcessManagerWrapper(ProcessManager<T> delegate)
delegate
- Delegate.protected abstract T transformSpecification(R spec)
spec
- Accepted process specification.public Map<UUID,List<UUID>> start(List<R> specifications)
start
in interface ProcessManager<R>
specifications
- Process specifications.public Map<UUID,List<LongRunningProcessStatus>> ping(Map<UUID,List<UUID>> procIds)
ping
in interface ProcessManager<R>
procIds
- Map of node identifier as a key and list of process identifiers as a value.public Map<UUID,List<LongRunningProcessStatus>> stop(Map<UUID,List<UUID>> procIds, boolean clear)
stop
in interface ProcessManager<R>
procIds
- Map of node identifier as a key and list of process identifiers as a value.public Map<UUID,List<LongRunningProcessStatus>> clear(Map<UUID,List<UUID>> procIds)
clear
in interface ProcessManager<R>
procIds
- Map of node identifier as a key and list of process identifiers as a value.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024