|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.blitz.Entry
public class Entry
OMERO.blitz startup code. Replaces Main
as the main application entry
point. Uses Sun-specific APIs to handle signals.
Constructor Summary | |
---|---|
Entry(String name)
Stores name of the OmeroContext which is to be used by this
instance. |
Method Summary | |
---|---|
static void |
configureLogging()
Most ome/omero classes use the Log and LogFactory
classes for logging. |
static void |
main(String[] args)
Entry point to the server. |
void |
shutdown(boolean callSystemExit)
Calls OmeroContext.closeAll() to recursively close all
OMERO.blitz resources in the reverse order that they were created. |
void |
start()
Obtains the named OmeroContext , creating it if
necessary, and then delegates to
_CommunicatorOperationsNC.waitForShutdown() until either it is externally
shutdown, or until a signal is caught. |
int |
status()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Entry(String name)
OmeroContext
which is to be used by this
instance.
Method Detail |
---|
public static void main(String[] args)
OmeroContext
via
Main2#Main(String)
. Other options include:
-s Check status (all args passed to Ice.Util.initialize(String[])
public static void configureLogging()
Log
and LogFactory
classes for logging. The underlying implementation, however, is
more complicated. To prevent a dependency on third party jars,
the Ice Logger prints to java.util.logging. Log4j is on the class-
path and so is used as the main logger. And slf4j is also bound
to log4j, which allows us to use the Slf4J java.util.logging bridge
to send JUL to log4j as well. In summary:
Most classes --> commons logging \ \------------> log4j / slf4j-/ ^ java.util.logging-| ^ Ice--|
public void start()
named
OmeroContext
, creating it if
necessary, and then delegates to
_CommunicatorOperationsNC.waitForShutdown()
until either it is externally
shutdown, or until a signal is caught.
public int status()
public void shutdown(boolean callSystemExit)
OmeroContext.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, then System.exit(int)
will
be called with the current status.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.