public class LowerOrb
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CREG_PORT
Default port number
|
static int |
REG_ID
Reg ID
|
Constructor and Description |
---|
LowerOrb() |
Modifier and Type | Method and Description |
---|---|
static void |
exportObject(java.rmi.Remote obj) |
static java.rmi.Remote |
exportRegistry(java.rmi.Remote obj,
int port)
Export an object thru lower Orb
|
static javax.rmi.CORBA.PortableRemoteObjectDelegate |
getPRODelegate()
Get the PortableRemoteObjectDelegate
|
static java.rmi.Remote |
getRegistryStub(java.lang.String className,
java.lang.String host,
int port)
Get a remote ref thru lower Orb
|
static void |
setPRODelegate(javax.rmi.CORBA.PortableRemoteObjectDelegate rmiDelegate)
Set the PortableRemoteObjectDelegate
|
static java.rmi.Remote |
toStub(java.rmi.Remote obj) |
static void |
unexportObject(java.rmi.Remote obj) |
static void |
unexportRegistry(java.rmi.Remote obj)
Unexport the registry thru the lower Orb
|
public static final int DEFAULT_CREG_PORT
public static final int REG_ID
public static java.rmi.Remote toStub(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException
Remote
public static void exportObject(java.rmi.Remote obj) throws java.rmi.RemoteException
java.rmi.RemoteException
Remote
public static void unexportObject(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException
Remote
public static javax.rmi.CORBA.PortableRemoteObjectDelegate getPRODelegate()
Remote
public static void setPRODelegate(javax.rmi.CORBA.PortableRemoteObjectDelegate rmiDelegate)
Remote
public static java.rmi.Remote exportRegistry(java.rmi.Remote obj, int port) throws java.rmi.RemoteException
obj
- object to exportport
- portjava.rmi.RemoteException
- if an error is encounteredpublic static void unexportRegistry(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException, java.rmi.RemoteException
obj
- object to exportjava.rmi.NoSuchObjectException
- if the object is not foundjava.rmi.RemoteException
public static java.rmi.Remote getRegistryStub(java.lang.String className, java.lang.String host, int port) throws java.rmi.RemoteException
className
- class namehost
- hostport
- portjava.rmi.RemoteException
- in an error occurs