Class Pipe

    • Constructor Detail

      • Pipe

        public Pipe​(Closure closure,
                    org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job,
                    Parser.Statement statement,
                    Channel[] streams,
                    boolean[] toclose,
                    boolean endOfPipe)
    • Method Detail

      • getCurrentPipe

        public static Pipe getCurrentPipe()
      • job

        public Job job()
        Description copied from interface: Process
        Get the job controlling this process
        Specified by:
        job in interface 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.
        Specified by:
        isTty in interface Process
      • error

        public void error​(int error)
        Description copied from interface: Process
        Set the error code for the currently running pipe.
        Specified by:
        error in interface Process