|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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. The client passes the
ping method a callback object implementing the
ReceiveReady interface that is executing in the client.
The server's ping method notifies the client that the
method is executing by calling the callback object's ready
method. When the ready method is invoked by the
server, the client cancels the ping remote call.
The application uses the following system properties:
Configuration.Provider.get to
create the configuration used by the application. If not set, the value
null will be used. Exporter,
no default) Ping
interface under the name "com.sun.jini.example.cancellation.Ping" in the
registry running on the server host.
| Constructor Summary | |
Client()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
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. |
void |
ready()
Notifies the signal that the client has been called back by the server's ping method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Client()
| Method Detail |
public void ready()
ready in interface ReceiveReady
public static void main(java.lang.String[] args)
throws java.lang.Exception
Ping.ping method and cancels the remote call executing
in that thread.
args - ignored
java.lang.Exception - if something bad happens
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||