public class Test extends Object
| Modifier and Type | Field and Description |
|---|---|
private static LogWrapper |
log |
protected static int |
PORT |
private static boolean |
rmiRunning |
private static String |
TEST_DATE_NAME |
private static String |
TEST_INT_NAME |
protected static String |
URL |
| Constructor and Description |
|---|
Test() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
lookup(String ref)
JNDI/RMI lookup wrapper.
|
static void |
main(String[] args) |
static void |
rebind(String ref,
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 String TEST_DATE_NAME
private static final String TEST_INT_NAME
protected static final int PORT
private static boolean rmiRunning
public Test()
public static Object lookup(String ref) throws RemoteException, NotBoundException, MalformedURLException
ref - String reference.RemoteException - rmi problemNotBoundException - rmi problemMalformedURLException - rmi problempublic static void rebind(String ref, Remote obj) throws RemoteException, 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.RemoteException - rmi problemMalformedURLException - rmi problemprivate static void rebindTest() throws Exception
Exceptionprivate static void requireNameServer()
public static void tryToStartNameServer()