public interface IApplicationSSHSession
Modifier and Type | Method and Description |
---|---|
List<String> |
getEnvironmentProperties()
Retrieves the list of environment properties.
|
List<IApplicationPortForwarding> |
getForwardablePorts()
Returns the list of forwardable ports on OpenShift for this application.
|
boolean |
isConnected()
Returns true if the SSH session provided to the application
is still valid (connected).
|
boolean |
isPortFowardingStarted()
Returns true if the port-forwarding has been started, false otherwise.
|
List<IApplicationPortForwarding> |
refreshForwardablePorts()
Refreshes the list of port-forwarding.
|
void |
setSSHSession(com.jcraft.jsch.Session session)
Sets the SSH session that this application will use to connect to
OpenShift to perform some operations.
|
List<IApplicationPortForwarding> |
startPortForwarding() |
List<IApplicationPortForwarding> |
stopPortForwarding()
Stop the port-forwarding for all ports.
|
List<IApplicationPortForwarding> refreshForwardablePorts() throws OpenShiftSSHOperationException
OpenShiftSSHOperationException
boolean isConnected()
List<IApplicationPortForwarding> getForwardablePorts() throws OpenShiftSSHOperationException
OpenShiftSSHOperationException
List<IApplicationPortForwarding> stopPortForwarding() throws OpenShiftSSHOperationException
OpenShiftSSHOperationException
List<IApplicationPortForwarding> startPortForwarding() throws OpenShiftSSHOperationException
com.jcraft.jsch.JSchException
OpenShiftSSHOperationException
void setSSHSession(com.jcraft.jsch.Session session)
session
- the SSH sessionList<String> getEnvironmentProperties() throws OpenShiftSSHOperationException
OpenShiftSSHOperationException
boolean isPortFowardingStarted() throws OpenShiftSSHOperationException
OpenShiftSSHOperationException
Copyright © 2015 JBoss by Red Hat. All rights reserved.