mandala.jacob.remote.rmi
Class RMICancelable

java.lang.Object
  extended bymandala.jacob.remote.AbstractRemote
      extended bymandala.jacob.remote.rmi.RMIAbstractRemoteProxy
          extended bymandala.jacob.remote.rmi.RMICancelable
All Implemented Interfaces:
Cancelable, java.rmi.Remote, Remote, RemoteCancelable, java.io.Serializable

public class RMICancelable
extends mandala.jacob.remote.rmi.RMIAbstractRemoteProxy
implements RemoteCancelable, java.rmi.Remote, java.io.Serializable

Java-RMI Cancelable implementation.

Version:
$Revision: 1.5 $
Author:
eipi
See Also:
AbstractRemote, RemoteCancelable, ExceptionHandler, Serialized Form

Nested Class Summary
 
Nested classes inherited from class mandala.jacob.remote.RemoteCancelable
RemoteCancelable.RemoteCancelableMethods
 
Field Summary
 
Fields inherited from class mandala.jacob.remote.AbstractRemote
defaultExceptionHandler, exceptionHandler, syslog
 
Method Summary
 boolean cancel()
          Cancel the operation related to this cancelable object.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean interrupt()
          Interrupt the operation related to this cancelable object.
static RMICancelable newServer(Cancelable cancelable)
           
 java.lang.String toString()
           
 
Methods inherited from class mandala.jacob.remote.AbstractRemote
getDefaultExceptionHandler, getExceptionHandler, getSyslog, handleException, setDefaultExceptionHandler, setExceptionHandler, setSyslog
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mandala.jacob.remote.Remote
getExceptionHandler, setExceptionHandler
 

Method Detail

newServer

public static RMICancelable newServer(Cancelable cancelable)
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

cancel

public boolean cancel()
Description copied from interface: Cancelable

Cancel the operation related to this cancelable object.

This method does nothing if the related operation is already started or terminated.

This method returns true if the related operation has been succesfully cancelled, false otherwise.

Specified by:
cancel in interface Cancelable
Returns:
true if the related operation has been succesfully cancelled, false otherwise

interrupt

public boolean interrupt()
Description copied from interface: Cancelable

Interrupt the operation related to this cancelable object.

Interruption of an operation means that the thread which is running the related operation is interrupted. It is the responsibilty of the operation to check the interrupt status of the current thread (see Thread.interrupted() in order to be able to return as soon as possible on interruption.

This method does nothing if the related operation is not started yet or if it is already terminated.

This method returns true if the related operation has been succesfully interrupted, false otherwise.

Specified by:
interrupt in interface Cancelable
Returns:
true if the related operation has been succesfully interrupted, false otherwise.

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

toString

public java.lang.String toString()


Mandala help mailing list