org.gridkit.vicluster.telecontrol.ssh
Class RemoteSshProcess

java.lang.Object
  extended by java.lang.Process
      extended by org.gridkit.vicluster.telecontrol.ssh.RemoteSshProcess

public class RemoteSshProcess
extends Process

An implementation of Process representing process executed via SSH facility.

Author:
Alexey Ragozin (alexey.ragozin@gmail.com)

Constructor Summary
RemoteSshProcess(Session session, ExecCommand command)
           
 
Method Summary
 void destroy()
           
 int exitValue()
           
 InputStream getErrorStream()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 int waitFor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteSshProcess

public RemoteSshProcess(Session session,
                        ExecCommand command)
                 throws JSchException,
                        IOException
Throws:
JSchException
IOException
Method Detail

exitValue

public int exitValue()
Specified by:
exitValue in class Process

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in class Process

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in class Process

getErrorStream

public InputStream getErrorStream()
Specified by:
getErrorStream in class Process

waitFor

public int waitFor()
            throws InterruptedException
Specified by:
waitFor in class Process
Throws:
InterruptedException

destroy

public void destroy()
Specified by:
destroy in class Process


Copyright © 2017. All Rights Reserved.