psdi.iface.router

Class DefaultSSHExit

  • java.lang.Object
    • psdi.iface.router.DefaultSSHExit
    • Field Detail

      • document

        protected org.jdom2.Document document
    • Constructor Detail

      • DefaultSSHExit

        public DefaultSSHExit()
    • Method Detail

      • createResponse

        public byte[] createResponse(com.ibm.tivoli.remoteaccess.ProgramOutput output)
                              throws MXException
        Process the service invoke command output and returns in byte array.
        Specified by:
        createResponse in interface SSHExit
        Parameters:
        output - Response object from sevice invoke command on remote host.
        Returns:
        byte[] Returns byte array of response XML.
        Throws:
        MXException
      • getServiceInvokeCmd

        public java.lang.String getServiceInvokeCmd(byte[] data)
                                             throws MXException
        Returns the service invoke command from document.
        Specified by:
        getServiceInvokeCmd in interface SSHExit
        Parameters:
        data - input XML in byte[].
        Returns:
        service invoke cmd
        Throws:
        MXException
      • getEnvSetupCmd

        public java.lang.String getEnvSetupCmd(byte[] data)
                                        throws MXException
        Returns the Environment setup command.
        Specified by:
        getEnvSetupCmd in interface SSHExit
        Parameters:
        data - input xml in byte[].
        Returns:
        value env setup command.
        Throws:
        MXException
      • getWorkingDir

        public java.lang.String getWorkingDir(byte[] data)
                                       throws MXException
        Returns the Working directory (absolute path).
        Specified by:
        getWorkingDir in interface SSHExit
        Parameters:
        data - input xml in byte[].
        Returns:
        value env setup command.
        Throws:
        MXException