public class JschRemoteApplicationProcess extends Object implements RemoteApplicationProcess
ApplicationProcess that is securely executing
or executed remotely.
Typically application developers would not use this interface directly as
the Application interface provides both higher-level concepts and
increased functionality over that of which is defined here.
Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Field and Description |
|---|---|
protected com.jcraft.jsch.ChannelExec |
channel
The
ChannelExec for the remote application. |
protected com.jcraft.jsch.Session |
session
The
Session for the remote application. |
| Constructor and Description |
|---|
JschRemoteApplicationProcess(com.jcraft.jsch.Session session,
com.jcraft.jsch.ChannelExec channel)
Constructs an
JschRemoteApplicationProcess |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
exitValue() |
InputStream |
getErrorStream() |
long |
getId() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
int |
waitFor(com.oracle.bedrock.Option... options) |
protected com.jcraft.jsch.Session session
Session for the remote application.protected com.jcraft.jsch.ChannelExec channel
ChannelExec for the remote application.public JschRemoteApplicationProcess(com.jcraft.jsch.Session session,
com.jcraft.jsch.ChannelExec channel)
JschRemoteApplicationProcesssession - the Session for the remote applicationchannel - the ChannelExec for the remote applicationRuntimeException - when the JschRemoteApplicationProcess can't establish
the necessary input/output streamspublic long getId()
getId in interface ApplicationProcesspublic void close()
close in interface ApplicationProcessclose in interface Closeableclose in interface AutoCloseablepublic int waitFor(com.oracle.bedrock.Option... options)
waitFor in interface ApplicationProcesspublic OutputStream getOutputStream()
getOutputStream in interface ApplicationProcesspublic InputStream getInputStream()
getInputStream in interface ApplicationProcesspublic InputStream getErrorStream()
getErrorStream in interface ApplicationProcesspublic int exitValue()
exitValue in interface ApplicationProcessCopyright © 2017. All rights reserved.