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 ClassesModifier and TypeClassDescriptionprivate classprivate classstatic classNested classes/interfaces inherited from interface org.apache.felix.service.command.Process
Process.Utils -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Closureprivate static final ThreadLocal<Pipe>(package private) final boolean(package private) PrintStream(package private) int(package private) InputStream(package private) final Job(package private) PrintStreamprivate static final int(package private) final Parser.Statement(package private) final Channel[](package private) final boolean[]private static final int -
Constructor Summary
ConstructorsConstructorDescriptionPipe(Closure closure, CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe) -
Method Summary
Modifier and TypeMethodDescriptioncall()private Pipe.ResultdoCall()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()private static PipesetCurrentPipe(Pipe pipe) private voidprivate PathtoString()private Channel
-
Field Details
-
CURRENT
-
closure
-
job
-
statement
-
streams
-
toclose
final boolean[] toclose -
endOfPipe
final boolean endOfPipe -
error
int error -
in
InputStream in -
out
PrintStream out -
err
PrintStream err -
READ
private static final int READ- See Also:
-
WRITE
private static final int WRITE- See Also:
-
-
Constructor Details
-
Pipe
public Pipe(Closure closure, CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe)
-
-
Method Details
-
getCurrentPipe
-
setCurrentPipe
-
toString
-
setStream
-
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>
-
doCall
-
toPaths
- Throws:
IOException
-
toPath
-
wrap
-