Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.emory.mathcs.util.remote.server.impl
Class RemoteProcessSrvImpl  view RemoteProcessSrvImpl download RemoteProcessSrvImpl.java

java.lang.Object
  extended byedu.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

Field Summary
(package private)  java.lang.Process process
           
(package private)  edu.emory.mathcs.util.remote.io.server.RemoteInputStreamSrv srverr
           
(package private)  edu.emory.mathcs.util.remote.io.server.RemoteInputStreamSrv srvin
           
(package private)  edu.emory.mathcs.util.remote.io.server.RemoteOutputStreamSrv srvout
           
 
Constructor Summary
RemoteProcessSrvImpl(java.lang.Process process)
          Creates a new handle to the specified process.
 
Method Summary
 int availableInErr()
           
 int availableInIn()
           
 void closeErr()
           
 void closeIn()
           
 void closeOut()
           
 void destroy()
           
 int exitValue()
           
 void flushOut()
           
 byte[] readFromErr(int maxbytes)
           
 byte[] readFromIn(int maxbytes)
           
 long skipInErr(long n)
           
 long skipInIn(long n)
           
 int waitFor()
           
 void writeToOut(byte[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

RemoteProcessSrvImpl

public RemoteProcessSrvImpl(java.lang.Process process)
Creates a new handle to the specified process.

Method Detail

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