Package ome.services.blitz
Class Entry
- java.lang.Object
-
- ome.services.blitz.Entry
-
public class Entry extends java.lang.ObjectOMERO.blitz startup code. Replaces the standardMainclass as the main application entry point. Uses Sun-specific APIs to handle signals.
-
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String name)Stores name of theOmeroContextwhich is to be used by this instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Entry point to the server.voidshutdown(boolean callSystemExit)CallsOmeroContext.closeAll()to recursively close all OMERO.blitz resources in the reverse order that they were created.voidstart()Obtains thenamedOmeroContext, creating it if necessary, and then delegates toCommunicator.waitForShutdown()until either it is externally shutdown, or until a signal is caught.intstatus()
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Entry point to the server. The first argument on the command line will be used as the name for theOmeroContext. Other options include: -s Check status (all args passed toUtil.initialize(String[])
-
start
public void start()
Obtains thenamedOmeroContext, creating it if necessary, and then delegates toCommunicator.waitForShutdown()until either it is externally shutdown, or until a signal is caught.
-
status
public int status()
-
shutdown
public void shutdown(boolean callSystemExit)
CallsOmeroContext.closeAll()to recursively close all OMERO.blitz resources in the reverse order that they were created. Throws no exceptions. If true is passed for callSystemExit, thenSystem.exit(int)will be called with the current status.
-
-