xmlBlaster 2.1.0 API

org.xmlBlaster.test.cluster
Class ServerHelper

java.lang.Object
  extended by org.xmlBlaster.test.cluster.ServerHelper

public class ServerHelper
extends java.lang.Object

Set up the cluster nodes.

Don't forget to call tearDown() when you are done.

See Also:
Cluster requirement

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

glob_

private Global glob_

log

private static java.util.logging.Logger log

heronPort

public static int heronPort

avalonPort

public static int avalonPort

golanPort

public static int golanPort

frodoPort

public static int frodoPort

bilboPort

public static int bilboPort

heronThread

private EmbeddedXmlBlaster heronThread

avalonThread

private EmbeddedXmlBlaster avalonThread

golanThread

private EmbeddedXmlBlaster golanThread

frodoThread

private EmbeddedXmlBlaster frodoThread

bilboThread

private EmbeddedXmlBlaster bilboThread

heronGlob

private Global heronGlob

avalonGlob

private Global avalonGlob

golanGlob

private Global golanGlob

frodoGlob

private Global frodoGlob

bilboGlob

private Global bilboGlob
Constructor Detail

ServerHelper

public ServerHelper(Global glob,
                    java.util.logging.Logger log,
                    java.lang.String name)
Method Detail

findPropertyFile

private java.lang.String findPropertyFile(java.lang.String fn)
Find the property files, we look in the current directory and in ./cluster

Throws:
java.lang.IllegalArgumentException - if you are in the wrong directory

getHeronGlob

public Global getHeronGlob()

getAvalonGlob

public Global getAvalonGlob()

getGolanGlob

public Global getGolanGlob()

getFrodoGlob

public Global getFrodoGlob()

getBilboGlob

public Global getBilboGlob()

initHeron

public void initHeron()

initAvalon

public void initAvalon()

initGolan

public void initGolan()

initFrodo

public void initFrodo()

initBilbo

public void initBilbo()

startHeron

public void startHeron()

startAvalon

public void startAvalon()

startGolan

public void startGolan()

startFrodo

public void startFrodo()

startBilbo

public void startBilbo()

stopHeron

public void stopHeron()

stopAvalon

public void stopAvalon()

stopGolan

public void stopGolan()

stopFrodo

public void stopFrodo()

stopBilbo

public void stopBilbo()

connect

public I_XmlBlasterAccess connect(Global glob,
                                  I_Callback cb)
                           throws XmlBlasterException
Connect in fail save mode to a server node (as given in glob.getId())

Throws:
XmlBlasterException

setUp

private void setUp()
Initialize the server setup ...

Is done automatically in constructor


tearDown

public void tearDown()
Cleaning up ...

You have to call this when you are done.


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.