Interface ProcessContextRegistry
-
- All Known Implementing Classes:
DefaultProcessContextRegistry
public interface ProcessContextRegistryService to register currently running process contexts to. This registry is used by external process executors to retrieve callback handles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intregister(ProcessContext context)Registers the givenProcessContext, creates a new internal id for it and returns it.ProcessContextretrieve(int pid)Retrieves theProcessContextuniquely identified by the passedpid.voidunregister(int pid)Unregisters (removes) theProcessContextidentified by the given pid.
-
-
-
Method Detail
-
register
int register(ProcessContext context)
Registers the givenProcessContext, creates a new internal id for it and returns it.- Parameters:
context- the context to register- Returns:
- a new locally unique id for the registered
ProcessContext
-
unregister
void unregister(int pid)
Unregisters (removes) theProcessContextidentified by the given pid. If noProcessContextis registered for the specified id, calling this method has no effect; no exception is thrown.- Parameters:
pid- the locally unique id of the registeredProcessContext.
-
retrieve
ProcessContext retrieve(int pid)
Retrieves theProcessContextuniquely identified by the passedpid.- Parameters:
pid- the locally unique id of the registeredProcessContext.- Returns:
- the
ProcessContextregistered for the specifiedpidornullif no such context is known.
-
-