org.opensourcephysics.tools
Class RemoteTool
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.opensourcephysics.tools.RemoteTool
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Tool
public class RemoteTool
- extends java.rmi.server.UnicastRemoteObject
- implements Tool
This is a Remote Tool implementation for osp data transfers via RMI.
- Version:
- 1.0
- Author:
- Wolfgang Christian and Doug Brown
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
send(Job job,
Tool replyTo)
Sends a job to this tool. |
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 |
RemoteTool
public RemoteTool(Tool tool)
throws java.rmi.RemoteException
- Constructs a RemoteTool.
- Parameters:
tool
- a Tool to handle forwarded jobs
- Throws:
java.rmi.RemoteException
- if this cannot be constructed
send
public void send(Job job,
Tool replyTo)
throws java.rmi.RemoteException
- Sends a job to this tool.
- Specified by:
send
in interface Tool
- Parameters:
job
- the jobreplyTo
- the tool interested in the job (may be null)
- Throws:
java.rmi.RemoteException