Package org.apache.felix.gogo.runtime
Class Pipe
java.lang.Object
org.apache.felix.gogo.runtime.Pipe
- All Implemented Interfaces:
Callable<Pipe.Result>,Process
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.felix.service.command.Process
Process.Utils -
Constructor Summary
ConstructorsConstructorDescriptionPipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe) -
Method Summary
Modifier and TypeMethodDescriptioncall()err()voiderror(int error) Set the error code for the currently running pipe.static Pipein()booleanisTty(int fd) Check if the given descriptor for the currently running pipe is the terminal or not.job()Get the job controlling this processout()toString()
-
Constructor Details
-
Pipe
public Pipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe)
-
-
Method Details
-
getCurrentPipe
-
toString
-
in
-
out
-
err
-
job
Description copied from interface:ProcessGet the job controlling this process -
isTty
public boolean isTty(int fd) Description copied from interface:ProcessCheck if the given descriptor for the currently running pipe is the terminal or not. -
error
public void error(int error) Description copied from interface:ProcessSet the error code for the currently running pipe. -
call
- Specified by:
callin interfaceCallable<Pipe.Result>
-