org.opensourcephysics.tools
Class RemoteJob

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by 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

Field Summary
 
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
 

Constructor Detail

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
Method Detail

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