Package ome.services.blitz.repo
Class ProcessContainer
- java.lang.Object
-
- ome.services.blitz.repo.ProcessContainer
-
public class ProcessContainer extends java.lang.ObjectHelper class for holding the individualManagedImportProcessIinstances 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 interfaceProcessContainer.Process
-
Constructor Summary
Constructors Constructor Description ProcessContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProcess(ProcessContainer.Process process)Called once theManagedImportProcessIservice is created.java.util.List<ProcessContainer.Process>listProcesses(java.util.Collection<java.lang.Long> groups)intpingAll()Called periodically by quartz to keep the sessions alive.voidremoveProcess(ProcessContainer.Process process)Removes the process.intshutdownAll()Called on shutdown of the server.
-
-
-
Method Detail
-
addProcess
public void addProcess(ProcessContainer.Process process)
Called once theManagedImportProcessIservice 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.
-
-