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