|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.Main
Main class to invoke the xmlBlaster server.
There are many command line parameters supported please invoke with "-?" to get a complete list of the supported parameters. java org.xmlBlaster.Main -bootstrapPort 3412
java org.xmlBlaster.Main -plugin/ior/iorFile /tmp/XmlBlaster_Ref
java org.xmlBlaster.Main -logging FINEST
java org.xmlBlaster.Main -plugin/xmlrpc/hostname 102.24.64.60 -plugin/xmlrpc/port 8081
java org.xmlBlaster.Main -?
| Field Summary | |
(package private) static MainGUI |
controlPanel
true: If instance created by control panel false: running without GUI |
private ServerScope |
glob
|
private boolean |
inShutdownProcess
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
private java.lang.String |
panicErrorCodes
Comma separate list of errorCodes which to an immediate System.exit(1); Used by our default implementation of I_XmlBlasterExceptionHandler TODO: If you use JdbcManagerCommonTableDelegate.java you may NOT use ErrorCode.RESOURCE_DB_UNKNOWN as this will retry one time the operation! How to assure this if configured different??? |
private RunlevelManager |
runlevelManager
Starts/stops xmlBlaster |
private boolean |
showUsage
|
private SignalCatcher |
signalCatcher
|
| Constructor Summary | |
Main()
You need to call init() after construction. |
|
Main(Global utilGlob)
Start xmlBlaster using the properties from utilGlob without loading xmlBlaster.properties again |
|
Main(ServerScope glob,
MainGUI controlPanel_)
|
|
Main(java.lang.String[] args)
Start xmlBlaster using the given properties and load xmlBlaster.properties. |
|
| Method Summary | |
private void |
checkForKeyboardInput()
Check for keyboard entries from console. |
void |
destroy()
Same as shutdown() but does additionally an engine.global.shutdown() |
I_Authenticate |
getAuthenticate()
Access the authentication singleton. |
ServerScope |
getGlobal()
|
java.lang.String |
getName()
A human readable name of the listener for logging. |
I_XmlBlaster |
getXmlBlaster()
Access the xmlBlaster singleton. |
void |
init(Global utilGlob)
|
void |
init(java.util.Properties props)
|
void |
init(ServerScope glob)
|
boolean |
isHalted()
|
private void |
keyboardUsage()
Keyboard input usage. |
static void |
main(java.lang.String[] args)
Invoke: java org.xmlBlaster.Main |
void |
newException(XmlBlasterException e)
This will be called from XmlBlasterException constructor. |
void |
runlevelChange(int from,
int to,
boolean force)
Invoked on run level change, see RunlevelManager.RUNLEVEL_HALTED and RunlevelManager.RUNLEVEL_RUNNING Enforced by I_RunlevelListener |
void |
shutdown()
Instructs the RunlevelManager to shut down, which causes all object adapters to shut down. |
void |
shutdownHook()
You will be notified when the runtime exits. |
private void |
usage()
Command line usage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String ME
private ServerScope glob
private static java.util.logging.Logger log
private RunlevelManager runlevelManager
private boolean showUsage
private boolean inShutdownProcess
private SignalCatcher signalCatcher
private java.lang.String panicErrorCodes
static MainGUI controlPanel
| Constructor Detail |
public Main()
public Main(ServerScope glob,
MainGUI controlPanel_)
public Main(Global utilGlob)
utilGlob - The environment for this server instancepublic Main(java.lang.String[] args)
args - The command line parameters| Method Detail |
public ServerScope getGlobal()
getGlobal in interface I_Mainpublic void init(Global utilGlob)
init in interface I_Mainpublic void init(java.util.Properties props)
init in interface I_Mainpublic final void init(ServerScope glob)
public void destroy()
destroy in interface I_Mainpublic void shutdown()
shutdown in interface I_Mainpublic I_Authenticate getAuthenticate()
public I_XmlBlaster getXmlBlaster()
private void checkForKeyboardInput()
public boolean isHalted()
isHalted in interface I_Mainpublic java.lang.String getName()
getName in interface I_RunlevelListener
public void runlevelChange(int from,
int to,
boolean force)
throws XmlBlasterException
runlevelChange in interface I_RunlevelListenerfrom - The current runlevelto - The runlevel we want to switch toforce - If true force the change even if messages are lost
XmlBlasterExceptionI_RunlevelListener.runlevelChange(int, int, boolean)public void newException(XmlBlasterException e)
I_XmlBlasterExceptionHandler
newException in interface I_XmlBlasterExceptionHandlere - The new created exceptionpublic void shutdownHook()
shutdownHook in interface I_SignalListenerI_SignalListener.shutdownHook()private void keyboardUsage()
private void usage()
public static void main(java.lang.String[] args)
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||