vishnu.life
Class AbstractCommand
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
vishnu.life.AbstractCommand
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Command
public abstract class AbstractCommand
- extends java.rmi.server.UnicastRemoteObject
- implements Command
TODO check thread safe demand for has* methods
BEWARE - MORE THAN ONCE RUNNING !!!
- Author:
- cesare
- See Also:
- Serialized Form
-
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractCommand
public AbstractCommand(Session s)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
perform
public void perform()
- Specified by:
perform
in interface Command
hasStarted
public boolean hasStarted()
- Specified by:
hasStarted
in interface Command
hasFinished
public boolean hasFinished()
session
public Session session()
- Specified by:
session
in interface Command