org.opensourcephysics.tools
Class RemoteJob
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.opensourcephysics.tools.RemoteJob
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Job
public class RemoteJob
- extends java.rmi.server.UnicastRemoteObject
- implements Job
This is a Remote Job implementation for osp data transfers via RMI.
- Version:
- 1.0
- Author:
- Douglas Brown
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
RemoteJob(Job job)
Constructs a RemoteJob that wraps a source job. |
Method Summary |
java.lang.String |
getXML()
Gets the xml string. |
void |
setXML(java.lang.String xml)
Sets the xml string. |
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 |
RemoteJob
public RemoteJob(Job job)
throws java.rmi.RemoteException
- Constructs a RemoteJob that wraps a source job.
- Parameters:
job
- the LocalJob
- Throws:
java.rmi.RemoteException
- if object cannot be constructed
getXML
public java.lang.String getXML()
throws java.rmi.RemoteException
- Gets the xml string.
- Specified by:
getXML
in interface Job
- Returns:
- the xml string
- Throws:
java.rmi.RemoteException
setXML
public void setXML(java.lang.String xml)
throws java.rmi.RemoteException
- Sets the xml string.
- Specified by:
setXML
in interface Job
- Parameters:
xml
- the xml string
- Throws:
java.rmi.RemoteException