public class RmiRegistryHelper extends Object
| Constructor and Description |
|---|
RmiRegistryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(Registry registry,
String key,
Remote val)
Binds a remote object into the given RMI registry using the
specified key.
|
static void |
bindInMaster(String key,
Remote val)
Binds a remote object into the master RMI registry using the
specified key.
|
protected static String |
detectKnownRMIBugs(UnmarshalException unmarshalEx)
Detect known RMI bugs, notably 52149 or 52150.
|
static String |
getMasterRegistryURL()
Returns the URL for the master RMI registry.
|
static Remote |
lookup(String url)
Looks up a remote object by url.
|
static Remote |
lookupInMaster(String name)
Looks up the specified object in the master RMI registry.
|
static MasterProxyIF |
lookupMaster()
Looks up the master proxy in the master RMI registry.
|
static Registry |
startRegistry(String name,
int port)
Starts an in-process RMI registry using the given name and port.
|
public static Registry startRegistry(String name, int port)
HydraRuntimeException - if an exception occurs.HydraTimeoutException - if the registry fails to answer after
within START_TIMEOUT_SEC.public static void bind(Registry registry, String key, Remote val)
HydraRuntimeException - Another object is bound to that name or if some other
RemoteException occurs.protected static String detectKnownRMIBugs(UnmarshalException unmarshalEx)
unmarshalEx - An UnmarshalException which was thrown by rmi.public static String getMasterRegistryURL()
public static MasterProxyIF lookupMaster()
public static void bindInMaster(String key, Remote val)
HydraRuntimeException - Another object is bound to that name or if some other
RemoteException occurs.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.