jist.runtime
Class RemoteJist.JistClient

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by jist.runtime.RemoteJist.JistClient
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteJist.JistClientRemote, RemoteJist.PingRemote, RemoteJist.ResourceFinderRemote
Enclosing class:
RemoteJist

public static class RemoteJist.JistClient
extends java.rmi.server.UnicastRemoteObject
implements RemoteJist.JistClientRemote

Remote JiST client RMI "server".

See Also:
Serialized Form

Field Summary
private  RemoteIO.RemoteOutputStreamRemote rerr
          Remote stub for local stderr.
private  RemoteIO.RemoteOutputStreamRemote rout
          Remote stub for local stdout.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteJist.JistClient()
          Create new Jist client RMI "server".
 
Method Summary
 void done()
          Signal client that simulation is done.
 byte[] getResourceBytes(java.lang.String name)
          Get bytes of a remote resource.
 long getResourceLastModificationDate(java.lang.String name)
          Get modification time of resource.
 RemoteIO.RemoteOutputStreamRemote getStdErr()
          Return remote stderr.
 RemoteIO.RemoteOutputStreamRemote getStdOut()
          Return remote stdout.
 void ping()
          Ping does not nothing, except check that destination is alive.
 
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
 

Field Detail

rout

private RemoteIO.RemoteOutputStreamRemote rout
Remote stub for local stdout.


rerr

private RemoteIO.RemoteOutputStreamRemote rerr
Remote stub for local stderr.

Constructor Detail

RemoteJist.JistClient

public RemoteJist.JistClient()
                      throws java.rmi.RemoteException
Create new Jist client RMI "server".

Throws:
java.rmi.RemoteException - rpc failure
Method Detail

getStdOut

public RemoteIO.RemoteOutputStreamRemote getStdOut()
                                            throws java.rmi.RemoteException
Return remote stdout.

Specified by:
getStdOut in interface RemoteJist.JistClientRemote
Returns:
remote stdout
Throws:
java.rmi.RemoteException - rpc failure

getStdErr

public RemoteIO.RemoteOutputStreamRemote getStdErr()
                                            throws java.rmi.RemoteException
Return remote stderr.

Specified by:
getStdErr in interface RemoteJist.JistClientRemote
Returns:
remote stderr
Throws:
java.rmi.RemoteException - rpc failure

done

public void done()
          throws java.rmi.RemoteException
Signal client that simulation is done.

Specified by:
done in interface RemoteJist.JistClientRemote
Throws:
java.rmi.RemoteException - rpc failure

getResourceBytes

public byte[] getResourceBytes(java.lang.String name)
                        throws java.rmi.RemoteException
Get bytes of a remote resource.

Specified by:
getResourceBytes in interface RemoteJist.ResourceFinderRemote
Parameters:
name - resource name
Returns:
bytes of resource
Throws:
java.rmi.RemoteException - rpc failure

getResourceLastModificationDate

public long getResourceLastModificationDate(java.lang.String name)
                                     throws java.rmi.RemoteException
Get modification time of resource.

Specified by:
getResourceLastModificationDate in interface RemoteJist.ResourceFinderRemote
Parameters:
name - resource name
Returns:
modification time of resource
Throws:
java.rmi.RemoteException - rpc failure

ping

public void ping()
          throws java.rmi.RemoteException
Ping does not nothing, except check that destination is alive.

Specified by:
ping in interface RemoteJist.PingRemote
Throws:
java.rmi.RemoteException - rpc failure