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()
void
error
(int error) Set the error code for the currently running pipe.static Pipe
in()
boolean
isTty
(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:Process
Get the job controlling this process -
isTty
public boolean isTty(int fd) Description copied from interface:Process
Check if the given descriptor for the currently running pipe is the terminal or not. -
error
public void error(int error) Description copied from interface:Process
Set the error code for the currently running pipe. -
call
- Specified by:
call
in interfaceCallable<Pipe.Result>
-