Package ome.services.blitz
Class Entry
- java.lang.Object
-
- ome.services.blitz.Entry
-
public class Entry extends java.lang.Object
OMERO.blitz startup code. Replaces the standardMain
class 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 theOmeroContext
which is to be used by this instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Entry point to the server.void
shutdown(boolean callSystemExit)
CallsOmeroContext.closeAll()
to recursively close all OMERO.blitz resources in the reverse order that they were created.void
start()
Obtains thenamed
OmeroContext
, creating it if necessary, and then delegates toCommunicator.waitForShutdown()
until either it is externally shutdown, or until a signal is caught.int
status()
-
-
-
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 thenamed
OmeroContext
, 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.
-
-