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