|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlBlaster.test.Util
public class Util
Some helper methods for test clients
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static MsgUnit[] |
adminGet(Global glob,
java.lang.String command)
Do an administrative command to the server with a temporaty login session. |
static void |
ask(java.lang.String text)
Stop execution until a key is hit |
static void |
delay(long millis)
Stop execution for some given milliseconds |
static void |
gc(int numGc)
Do some garbage collect attempts |
static java.lang.String[] |
getDefaultServerPorts()
Reset the server ports to default, that a client in this JVM finds the server |
static Global |
getOtherServerPorts(Global orig,
int serverPort)
If you want to start a second xmlBlaster instances set environment that the ports don't conflict |
static java.lang.String[] |
getOtherServerPorts(int serverPort)
If you want to start a second xmlBlaster instances set environment that the ports don't conflict |
static java.lang.String[] |
getOtherServerPorts(int serverPort,
java.lang.String[] others)
If you want to start a second xmlBlaster instances set environment that the ports don't conflict |
static java.util.Vector |
getOtherServerPortVec(int serverPort)
If you want to start a second xmlBlaster instances set environment that the ports don't conflict |
static void |
resetPorts()
|
static void |
resetPorts(Global glob)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static Global getOtherServerPorts(Global orig,
int serverPort)
public static java.lang.String[] getOtherServerPorts(int serverPort)
public static java.lang.String[] getOtherServerPorts(int serverPort,
java.lang.String[] others)
others - Other params to addpublic static java.util.Vector getOtherServerPortVec(int serverPort)
public static java.lang.String[] getDefaultServerPorts()
public static void resetPorts()
public static void resetPorts(Global glob)
public static void delay(long millis)
millis - amount of milliseconds to waitpublic static void ask(java.lang.String text)
text - This text is shown on command linepublic static void gc(int numGc)
public static MsgUnit[] adminGet(Global glob,
java.lang.String command)
throws XmlBlasterException
command - "__sys__UserList" or "__cmd:/node/heron/?clientList"
XmlBlasterException
|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||