|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jini.jeri.AbstractILFactory
com.sun.jini.example.cancellation.CancelILFactory
A factory for creating proxies and invocation dispatchers that support call cancellation.
CallCancellation| Nested Class Summary |
| Nested classes inherited from class net.jini.jeri.InvocationLayerFactory |
net.jini.jeri.InvocationLayerFactory.Instances |
| Constructor Summary | |
CancelILFactory(java.lang.ClassLoader loader)
Constructs a new factory with the specified class loader. |
|
| Method Summary | |
protected net.jini.jeri.InvocationDispatcher |
createInvocationDispatcher(java.util.Collection methods,
java.rmi.Remote impl,
net.jini.jeri.ServerCapabilities caps)
Returns an invocation dispatcher that supports call cancellation. |
protected java.lang.reflect.InvocationHandler |
createInvocationHandler(java.lang.Class[] interfaces,
java.rmi.Remote impl,
net.jini.jeri.ObjectEndpoint oe)
Returns an invocation handler that supports call cancellation. |
static boolean |
getCancellationStatus()
Returns the cancellation status for the current thread: true if the call associated with the current
thread should be cancelled and false otherwise. |
protected java.lang.Class[] |
getExtraProxyInterfaces(java.rmi.Remote impl)
Returns an array containing the two interfaces needed to support call cancellation , |
protected java.util.Collection |
getInvocationDispatcherMethods(java.rmi.Remote impl)
Returns a new collection of Method objects, containing all
remote methods for which the the invocation dispatcher should accept
incoming remote calls. |
| Methods inherited from class net.jini.jeri.AbstractILFactory |
createInstances, equals, getClassLoader, getProxyInterfaces, getRemoteInterfaces, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CancelILFactory(java.lang.ClassLoader loader)
| Method Detail |
protected java.lang.reflect.InvocationHandler createInvocationHandler(java.lang.Class[] interfaces,
java.rmi.Remote impl,
net.jini.jeri.ObjectEndpoint oe)
throws java.rmi.server.ExportException
interfaces - a non-null array of proxy interfacesimpl - a non-null remote object this invocation
handler is being created to handleoe - an non-null object endpoint used to
communicate with the remote object
java.rmi.server.ExportException - if there is a problem creating the
invocation handler
protected net.jini.jeri.InvocationDispatcher createInvocationDispatcher(java.util.Collection methods,
java.rmi.Remote impl,
net.jini.jeri.ServerCapabilities caps)
throws java.rmi.server.ExportException
java.lang.NullPointerException
java.rmi.server.ExportException
protected java.lang.Class[] getExtraProxyInterfaces(java.rmi.Remote impl)
throws java.rmi.server.ExportException
, CallCancellation and
CancelMessage.
- Throws:
java.lang.NullPointerException
java.rmi.server.ExportException
protected java.util.Collection getInvocationDispatcherMethods(java.rmi.Remote impl)
throws java.rmi.server.ExportException
Method objects, containing all
remote methods for which the the invocation dispatcher should accept
incoming remote calls. This implementation returns a collection
containing all of the methods obtained by invoking the getInvocationDispatcherMethods
method on super passing impl as well as
the the additional cancelRequest
method.
java.lang.NullPointerException
java.lang.SecurityException
java.rmi.server.ExportException
public static boolean getCancellationStatus()
throws NoSuchCallException
true if the call associated with the current
thread should be cancelled and false otherwise.
NoSuchCallException - if there is no cancellable call
associated with the current thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||