C G M N P R S

C

CallCancellation - interface com.sun.jini.example.cancellation.CallCancellation.
CallCancellation is an abstraction to support cancelling a call executing in a thread.
CallCancelledException - exception com.sun.jini.example.cancellation.CallCancelledException.
The exception CallCancelledException is thrown as a result of a remote method execution when an attempt is made to cancel the call during its execution (typically by another thread calling the CallCancellation.cancelCall method on the proxy through which the remote call was initiated).
CallCancelledException() - Constructor for class com.sun.jini.example.cancellation.CallCancelledException
Constructs a CallCancelledException instance.
CancelILFactory - class com.sun.jini.example.cancellation.CancelILFactory.
A factory for creating proxies and invocation dispatchers that support call cancellation.
CancelILFactory(ClassLoader) - Constructor for class com.sun.jini.example.cancellation.CancelILFactory
Constructs a new factory with the specified class loader.
Client - class com.sun.jini.example.cancellation.Client.
Defines a client application that spawns a thread to invoke the Ping.ping remote method on a server and then cancels the remote call in progress in that thread.
Client() - Constructor for class com.sun.jini.example.cancellation.Client
 
cancelCall(Thread) - Method in interface com.sun.jini.example.cancellation.CallCancellation
Attempts to cancel the call executing in the given thread t.
com.sun.jini.example.cancellation - package com.sun.jini.example.cancellation
 
createInvocationDispatcher(Collection, Remote, ServerCapabilities) - Method in class com.sun.jini.example.cancellation.CancelILFactory
Returns an invocation dispatcher that supports call cancellation.
createInvocationHandler(Class[], Remote, ObjectEndpoint) - Method in class com.sun.jini.example.cancellation.CancelILFactory
Returns an invocation handler that supports call cancellation.

G

getCancellationStatus() - Static method in class com.sun.jini.example.cancellation.CancelILFactory
Returns the cancellation status for the current thread: true if the call associated with the current thread should be cancelled and false otherwise.
getExtraProxyInterfaces(Remote) - Method in class com.sun.jini.example.cancellation.CancelILFactory
Returns an array containing the two interfaces needed to support call cancellation , CallCancellation and CancelMessage.
getInvocationDispatcherMethods(Remote) - Method in class com.sun.jini.example.cancellation.CancelILFactory
Returns a new collection of Method objects, containing all remote methods for which the the invocation dispatcher should accept incoming remote calls.

M

main(String[]) - Static method in class com.sun.jini.example.cancellation.Client
Starts an application that spawns a thread to a call to a remote method Ping.ping method and cancels the remote call executing in that thread.
main(String[]) - Static method in class com.sun.jini.example.cancellation.Server
Starts and registers a server that implements the Ping remote interface.

N

NoSuchCallException - exception com.sun.jini.example.cancellation.NoSuchCallException.
The checked exception NoSuchCallException is thrown by the CallCancellation.cancelCall method if no remote call is currently executing in the given thread.
NoSuchCallException() - Constructor for class com.sun.jini.example.cancellation.NoSuchCallException
Constructs a NoSuchCallException instance.

P

Ping - interface com.sun.jini.example.cancellation.Ping.
Simple Ping remote interface.
ping(ReceiveReady) - Method in interface com.sun.jini.example.cancellation.Ping
Notifies the supplied obj by invoking its ready method, then polls for a call cancellation request.
ping(ReceiveReady) - Method in class com.sun.jini.example.cancellation.Server
Notifies the given receiver callback object by invoking its ready method and polls for call cancellation status.

R

ReceiveReady - interface com.sun.jini.example.cancellation.ReceiveReady.
Simple interface for notifying a callback object.
ready() - Method in class com.sun.jini.example.cancellation.Client
Notifies the signal that the client has been called back by the server's ping method.
ready() - Method in interface com.sun.jini.example.cancellation.ReceiveReady
Informs a callback object that the caller is ready.

S

Server - class com.sun.jini.example.cancellation.Server.
Defines an application server that provides an implementation of the Ping interface.
Server() - Constructor for class com.sun.jini.example.cancellation.Server
 

C G M N P R S

Copyright © 2003 Sun Microsystems, Inc. All Rights Reserved.