edu.emory.mathcs.util.remote.server.impl
Class RemoteProcessSrvImpl
java.lang.Object
edu.emory.mathcs.util.remote.server.impl.RemoteProcessSrvImpl
- All Implemented Interfaces:
- java.rmi.Remote, RemoteProcessSrv
- public class RemoteProcessSrvImpl
- extends java.lang.Object
- implements RemoteProcessSrv
Server-side remote handle to the native process.
- Version:
- 1.0
- Author:
- Dawid Kurzyniec
- See Also:
RemoteProcess
|
Constructor Summary |
RemoteProcessSrvImpl(java.lang.Process process)
Creates a new handle to the specified process. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteProcessSrvImpl
public RemoteProcessSrvImpl(java.lang.Process process)
- Creates a new handle to the specified process.
- Parameters:
process - the process to create handle to
destroy
public void destroy()
- Specified by:
destroy in interface RemoteProcessSrv
waitFor
public int waitFor()
throws java.lang.InterruptedException
- Specified by:
waitFor in interface RemoteProcessSrv
- Throws:
java.lang.InterruptedException
exitValue
public int exitValue()
- Specified by:
exitValue in interface RemoteProcessSrv
readFromIn
public byte[] readFromIn(int maxbytes)
throws java.io.IOException
- Specified by:
readFromIn in interface RemoteProcessSrv
- Throws:
java.io.IOException
availableInIn
public int availableInIn()
throws java.io.IOException
- Specified by:
availableInIn in interface RemoteProcessSrv
- Throws:
java.io.IOException
skipInIn
public long skipInIn(long n)
throws java.io.IOException
- Specified by:
skipInIn in interface RemoteProcessSrv
- Throws:
java.io.IOException
closeIn
public void closeIn()
throws java.io.IOException
- Specified by:
closeIn in interface RemoteProcessSrv
- Throws:
java.io.IOException
readFromErr
public byte[] readFromErr(int maxbytes)
throws java.io.IOException
- Specified by:
readFromErr in interface RemoteProcessSrv
- Throws:
java.io.IOException
availableInErr
public int availableInErr()
throws java.io.IOException
- Specified by:
availableInErr in interface RemoteProcessSrv
- Throws:
java.io.IOException
skipInErr
public long skipInErr(long n)
throws java.io.IOException
- Specified by:
skipInErr in interface RemoteProcessSrv
- Throws:
java.io.IOException
closeErr
public void closeErr()
throws java.io.IOException
- Specified by:
closeErr in interface RemoteProcessSrv
- Throws:
java.io.IOException
writeToOut
public void writeToOut(byte[] buf)
throws java.io.IOException
- Specified by:
writeToOut in interface RemoteProcessSrv
- Throws:
java.io.IOException
flushOut
public void flushOut()
throws java.io.IOException
- Specified by:
flushOut in interface RemoteProcessSrv
- Throws:
java.io.IOException
closeOut
public void closeOut()
throws java.io.IOException
- Specified by:
closeOut in interface RemoteProcessSrv
- Throws:
java.io.IOException