org.gridkit.vicluster.telecontrol.ssh
Class RemoteSshProcess
java.lang.Object
java.lang.Process
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteSshProcess
public RemoteSshProcess(Session session,
ExecCommand command)
throws JSchException,
IOException
- Throws:
JSchException
IOException
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.