Package ome.services.blitz.repo
Class ProcessContainer
- java.lang.Object
-
- ome.services.blitz.repo.ProcessContainer
-
public class ProcessContainer extends java.lang.Object
Helper class for holding the individualManagedImportProcessI
instances created byManagedRepositoryI
. Responsible for providing lookups as well as keep-alive and reap methods which will be called by background threads.- Since:
- 5.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ProcessContainer.Process
-
Constructor Summary
Constructors Constructor Description ProcessContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProcess(ProcessContainer.Process process)
Called once theManagedImportProcessI
service is created.java.util.List<ProcessContainer.Process>
listProcesses(java.util.Collection<java.lang.Long> groups)
int
pingAll()
Called periodically by quartz to keep the sessions alive.void
removeProcess(ProcessContainer.Process process)
Removes the process.int
shutdownAll()
Called on shutdown of the server.
-
-
-
Method Detail
-
addProcess
public void addProcess(ProcessContainer.Process process)
Called once theManagedImportProcessI
service is created.- Parameters:
process
- The process to handle.
-
removeProcess
public void removeProcess(ProcessContainer.Process process)
Removes the process.- Parameters:
process
- The process to remove.
-
listProcesses
public java.util.List<ProcessContainer.Process> listProcesses(java.util.Collection<java.lang.Long> groups)
-
pingAll
public int pingAll()
Called periodically by quartz to keep the sessions alive.
-
shutdownAll
public int shutdownAll()
Called on shutdown of the server.
-
-