|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.EmbeddedXmlBlaster
public class EmbeddedXmlBlaster
Helper to create/start/stop a xmlBlaster server instance in a thread.
TODO: change to use util.Global (or engine.Global as xmlBlaster.Main needs it).
Method Summary | |
---|---|
int |
changeRunlevel(int newRunlevel,
boolean force)
Change the run level to the given newRunlevel. |
org.xmlBlaster.I_Main |
getMain()
|
static void |
main(java.lang.String[] args)
Invoke: java org.xmlBlaster.util.EmbeddedXmlBlaster instead of the JacORB ORB, which won't work. |
void |
run()
|
static EmbeddedXmlBlaster |
startXmlBlaster(Global glob)
Creates an instance of xmlBlaster and starts the server. |
static EmbeddedXmlBlaster |
startXmlBlaster(int serverPort)
Creates an instance of xmlBlaster and starts the server. |
static EmbeddedXmlBlaster |
startXmlBlaster(java.lang.String[] args)
Creates an instance of xmlBlaster and starts the server. |
static EmbeddedXmlBlaster |
startXmlBlaster(java.lang.String[] args,
java.lang.String clusterNodeId)
|
void |
stopServer(boolean sync)
|
static void |
stopXmlBlaster(EmbeddedXmlBlaster serverThread)
Stop xmlBlaster server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EmbeddedXmlBlaster startXmlBlaster(int serverPort)
serverPort
- Default bootstrapPort is 3412
public static EmbeddedXmlBlaster startXmlBlaster(java.lang.String[] args)
args
- Key/value array, containing command line arguments or xmlBlaster.properties variables to be used
public static EmbeddedXmlBlaster startXmlBlaster(java.lang.String[] args, java.lang.String clusterNodeId)
public static EmbeddedXmlBlaster startXmlBlaster(Global glob)
glob
- The specific handle for this xmlBlaster server
public static void stopXmlBlaster(EmbeddedXmlBlaster serverThread)
serverThread
- The handle you got from startXmlBlaster()public org.xmlBlaster.I_Main getMain()
public void stopServer(boolean sync)
sync
- if true the method blocks until the server is shutdown
In this case global.shutdown() is called after shutdown and the Global is not usable anymore.public void run()
public int changeRunlevel(int newRunlevel, boolean force) throws XmlBlasterException
newRunlevel
- The new run level we want to switch toforce
- Ignore exceptions during change, currently only force == true is supported
XmlBlasterException
- for invalid run levelRunlevelManager.changeRunlevel(int, boolean)
public static void main(java.lang.String[] args)
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |