|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ORB
enables objects to be distributed.
Field Summary | |
static java.lang.String |
PROVIDER_URI
Constant that holds the name of the connection property for specifying the ORB provider URI. |
static java.lang.String |
SECURITY_CREDENTIALS
Constant that holds the name of the connection property for specifying the credentials of the principal for authenticating the caller to the ORB. |
static java.lang.String |
SECURITY_PRINCIPAL
Constant that holds the name of the connection property for specifying the identity of the principal for authenticating the caller to the ORB. |
Method Summary | |
void |
addCallerListener(java.lang.String uri,
CallerListener listener)
Register a caller event listener. |
void |
addRoute(java.lang.String uri,
java.lang.String toURI)
Add a route for exported objects. |
Proxy |
exportObject(java.lang.Object object)
Export an object on the default URI. |
Proxy |
exportObject(java.lang.Object object,
java.rmi.server.ObjID objID)
Export an object with a well known identifier on the default URI. |
Proxy |
exportObject(java.lang.Object object,
java.rmi.server.ObjID objID,
java.lang.String uri)
Export an object with a well known identifier on a specific URI. |
Proxy |
exportObject(java.lang.Object object,
java.lang.String uri)
Export an object on a specific URI. |
Proxy |
exportObjectTo(java.lang.Object object)
Export an object to the current remote caller. |
Proxy |
exportObjectTo(java.lang.Object object,
java.lang.String uri)
Export an object to a specific URI. |
Proxy |
exportObjectTo(java.lang.Object object,
java.lang.String uri,
java.lang.String principal,
java.lang.String credentials)
Export an object to a specific URI. |
Caller |
getCaller()
Returns the current caller. |
LocalRegistry |
getRegistry()
Returns a reference to the registry service. |
Registry |
getRegistry(java.util.Map properties)
Returns a reference to a remote registry service. |
void |
removeCallerListener(java.lang.String uri,
CallerListener listener)
Deregister a caller event listener. |
void |
shutdown()
Shuts down the ORB. |
void |
unexportObject(java.lang.Object object)
Unexport an object. |
Field Detail |
public static final java.lang.String PROVIDER_URI
public static final java.lang.String SECURITY_PRINCIPAL
public static final java.lang.String SECURITY_CREDENTIALS
Method Detail |
public void addRoute(java.lang.String uri, java.lang.String toURI) throws java.rmi.RemoteException
uri
- the URI to routetoURI
- the URI to route tojava.rmi.RemoteException
- for any errorpublic LocalRegistry getRegistry() throws java.rmi.RemoteException
java.rmi.RemoteException
- if the service cannot be exportedpublic Registry getRegistry(java.util.Map properties) throws java.rmi.RemoteException
properties
- the connection properties. May be null
.java.rmi.RemoteException
- for any errorpublic Proxy exportObject(java.lang.Object object) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exportjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic Proxy exportObject(java.lang.Object object, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exporturi
- the URI via which connections to the object are made. If
null
, the default URI is used.java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic Proxy exportObject(java.lang.Object object, java.rmi.server.ObjID objID) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exportobjID
- the well known object identifierjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic Proxy exportObject(java.lang.Object object, java.rmi.server.ObjID objID, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exportobjID
- the well known object identifieruri
- the URI via which connections to the object are madejava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic Proxy exportObjectTo(java.lang.Object object) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exportjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic Proxy exportObjectTo(java.lang.Object object, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exporturi
- the target URI from which connections to the object are
made.java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic Proxy exportObjectTo(java.lang.Object object, java.lang.String uri, java.lang.String principal, java.lang.String credentials) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
object
- the object to exporturi
- the target URI from which connections to the object
are made.principal
- the security principal. May be null
credentials
- the security credentials. May be null
java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic void unexportObject(java.lang.Object object) throws java.rmi.NoSuchObjectException
object
- the object to exportjava.rmi.NoSuchObjectException
- if the object isn't exportedpublic Caller getCaller() throws java.rmi.RemoteException
null
if no call is in
progressjava.rmi.RemoteException
- for any errorpublic void addCallerListener(java.lang.String uri, CallerListener listener) throws java.rmi.RemoteException
uri
- the remote URI to listen onlistener
- the listener to notifyjava.rmi.RemoteException
- for any errorpublic void removeCallerListener(java.lang.String uri, CallerListener listener) throws java.rmi.RemoteException
uri
- the remote URI the listener is listening for events onlistener
- the listener to removejava.rmi.RemoteException
- for any errorpublic void shutdown() throws java.rmi.RemoteException
java.rmi.RemoteException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |