|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.test.cluster.ServerHelper
public class ServerHelper
Set up the cluster nodes.
Don't forget to call tearDown() when you are done.
Field Summary | |
---|---|
private Global |
avalonGlob
|
static int |
avalonPort
|
private EmbeddedXmlBlaster |
avalonThread
|
private Global |
bilboGlob
|
static int |
bilboPort
|
private EmbeddedXmlBlaster |
bilboThread
|
private Global |
frodoGlob
|
static int |
frodoPort
|
private EmbeddedXmlBlaster |
frodoThread
|
private Global |
glob_
|
private Global |
golanGlob
|
static int |
golanPort
|
private EmbeddedXmlBlaster |
golanThread
|
private Global |
heronGlob
|
static int |
heronPort
|
private EmbeddedXmlBlaster |
heronThread
|
private static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
ServerHelper(Global glob,
java.util.logging.Logger log,
java.lang.String name)
|
Method Summary | |
---|---|
I_XmlBlasterAccess |
connect(Global glob,
I_Callback cb)
Connect in fail save mode to a server node (as given in glob.getId()) |
private java.lang.String |
findPropertyFile(java.lang.String fn)
Find the property files, we look in the current directory and in ./cluster |
Global |
getAvalonGlob()
|
Global |
getBilboGlob()
|
Global |
getFrodoGlob()
|
Global |
getGolanGlob()
|
Global |
getHeronGlob()
|
void |
initAvalon()
|
void |
initBilbo()
|
void |
initFrodo()
|
void |
initGolan()
|
void |
initHeron()
|
private void |
setUp()
Initialize the server setup ... |
void |
startAvalon()
|
void |
startBilbo()
|
void |
startFrodo()
|
void |
startGolan()
|
void |
startHeron()
|
void |
stopAvalon()
|
void |
stopBilbo()
|
void |
stopFrodo()
|
void |
stopGolan()
|
void |
stopHeron()
|
void |
tearDown()
Cleaning up ... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Global glob_
private static java.util.logging.Logger log
public static int heronPort
public static int avalonPort
public static int golanPort
public static int frodoPort
public static int bilboPort
private EmbeddedXmlBlaster heronThread
private EmbeddedXmlBlaster avalonThread
private EmbeddedXmlBlaster golanThread
private EmbeddedXmlBlaster frodoThread
private EmbeddedXmlBlaster bilboThread
private Global heronGlob
private Global avalonGlob
private Global golanGlob
private Global frodoGlob
private Global bilboGlob
Constructor Detail |
---|
public ServerHelper(Global glob, java.util.logging.Logger log, java.lang.String name)
Method Detail |
---|
private java.lang.String findPropertyFile(java.lang.String fn)
java.lang.IllegalArgumentException
- if you are in the wrong directorypublic Global getHeronGlob()
public Global getAvalonGlob()
public Global getGolanGlob()
public Global getFrodoGlob()
public Global getBilboGlob()
public void initHeron()
public void initAvalon()
public void initGolan()
public void initFrodo()
public void initBilbo()
public void startHeron()
public void startAvalon()
public void startGolan()
public void startFrodo()
public void startBilbo()
public void stopHeron()
public void stopAvalon()
public void stopGolan()
public void stopFrodo()
public void stopBilbo()
public I_XmlBlasterAccess connect(Global glob, I_Callback cb) throws XmlBlasterException
XmlBlasterException
private void setUp()
public void tearDown()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |