|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.net.orb.UnicastDelegate
UnicastDelegate
supports the invocation of methods on a single
remote object, over arbitrary transport protocols.
Constructor Summary | |
protected |
UnicastDelegate()
Default constructor for serialization support. |
|
UnicastDelegate(java.rmi.server.ObjID objID,
Connection connection)
Construct a new UnicastDelegate . |
|
UnicastDelegate(java.rmi.server.ObjID objID,
java.lang.String uri)
Construct a new UnicastDelegate . |
Method Summary | |
void |
dispose()
Dispose the delegate, releasing any resources. |
protected Connection |
getConnection()
Returns the connection to perform invocations. |
java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object[] args,
long methodID)
Invoke a method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected UnicastDelegate()
public UnicastDelegate(java.rmi.server.ObjID objID, java.lang.String uri)
UnicastDelegate
.
This is intended for use on the server side, to create delegates for serialization to clients.
objID
- the identifier of the target objecturi
- the connection URIpublic UnicastDelegate(java.rmi.server.ObjID objID, Connection connection)
UnicastDelegate
.
This is intended for use on the client side.
objID
- the identifier of the target objectconnection
- the connection used to make invocationsMethod Detail |
public java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object[] args, long methodID) throws java.lang.Throwable
invoke
in interface Delegate
method
- the method to invokeargs
- the arguments to passmethodID
- the unique identifier for the methodjava.lang.Throwable
- for any errorpublic void dispose()
It is an error to invoke any method other than this, after the delegate has been disposed.
dispose
in interface Delegate
protected Connection getConnection() throws InvalidURIException, ResourceException
InvalidURIException
- if the URI is invalidResourceException
- if a connection cannot be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |