public class Test extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static LogWrapper |
log |
protected static int |
PORT |
private static boolean |
rmiRunning |
private static java.lang.String |
TEST_DATE_NAME |
private static java.lang.String |
TEST_INT_NAME |
protected static java.lang.String |
URL |
| Constructor and Description |
|---|
Test() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
lookup(java.lang.String ref)
JNDI/RMI lookup wrapper.
|
static void |
main(java.lang.String[] args) |
static void |
rebind(java.lang.String ref,
java.rmi.Remote obj)
JNDI/RMI rebind wrapper for the UCS.
|
private static void |
rebindTest() |
private static void |
requireNameServer()
Attempts to start a naming server on the localhost if one is not
already running.
|
static void |
tryToStartNameServer() |
private static final LogWrapper log
private static final java.lang.String TEST_DATE_NAME
private static final java.lang.String TEST_INT_NAME
protected static final int PORT
protected static final java.lang.String URL
private static boolean rmiRunning
public Test()
public static java.lang.Object lookup(java.lang.String ref) throws java.rmi.RemoteException, java.rmi.NotBoundException, java.net.MalformedURLException
ref - String reference.java.rmi.RemoteException - rmi problemjava.rmi.NotBoundException - rmi problemjava.net.MalformedURLException - rmi problempublic static void rebind(java.lang.String ref, java.rmi.Remote obj) throws java.rmi.RemoteException, java.net.MalformedURLException
Also attempts to start a naming server on the localhost if one is not already running. Currently we use RMI.
ref - String reference to bind with.obj - Object to bind.java.rmi.RemoteException - rmi problemjava.net.MalformedURLException - rmi problemprivate static void rebindTest() throws java.lang.Exception
java.lang.Exceptionprivate static void requireNameServer()
public static void tryToStartNameServer()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception