public class JSchRemoteTerminal extends AbstractRemoteTerminal
RemoteTerminal based on SSH (uses JSch) for a RemotePlatform.
Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
RemoteTerminal.Launchable| Modifier and Type | Field and Description |
|---|---|
protected JSchSessionFactory |
sessionFactory
The
JSch framework. |
| Constructor and Description |
|---|
JSchRemoteTerminal(RemotePlatform platform)
Create a
JSchRemoteTerminal that will connect to a remote
platform with the specified connection details. |
JSchRemoteTerminal(RemotePlatform platform,
JSchSessionFactory sessionFactory)
Create a
JSchRemoteTerminal that will connect to a remote
platform with the specified connection details. |
| Modifier and Type | Method and Description |
|---|---|
RemoteApplicationProcess |
launch(RemoteTerminal.Launchable launchable,
Class<? extends Application> applicationClass,
com.oracle.bedrock.OptionsByType optionsByType)
Launches an
Application, represented as a RemoteApplicationProcess,
according to the information provided by the RemoteTerminal.Launchable and specified OptionsByType. |
void |
makeDirectories(String directoryName,
com.oracle.bedrock.OptionsByType optionsByType)
Ensure that the specified directory exists on the
RemotePlatform. |
void |
moveFile(String source,
String destination,
com.oracle.bedrock.OptionsByType optionsByType) |
getRemotePlatformprotected JSchSessionFactory sessionFactory
JSch framework.public JSchRemoteTerminal(RemotePlatform platform)
JSchRemoteTerminal that will connect to a remote
platform with the specified connection details.platform - the RemotePlatformpublic JSchRemoteTerminal(RemotePlatform platform, JSchSessionFactory sessionFactory)
JSchRemoteTerminal that will connect to a remote
platform with the specified connection details.platform - the RemotePlatformsessionFactory - the JSchSessionFactory to use to obtain a JSch Sessionpublic RemoteApplicationProcess launch(RemoteTerminal.Launchable launchable, Class<? extends Application> applicationClass, com.oracle.bedrock.OptionsByType optionsByType)
RemoteTerminalApplication, represented as a RemoteApplicationProcess,
according to the information provided by the RemoteTerminal.Launchable and specified OptionsByType.launchable - the RemoteTerminal.Launchable defining how to launch the ApplicationapplicationClass - the Class of the Application being launchedoptionsByType - the OptionsByType to use when launching the ApplicationRemoteApplicationProcess representing the launched Applicationpublic void makeDirectories(String directoryName, com.oracle.bedrock.OptionsByType optionsByType)
RemoteTerminalRemotePlatform.directoryName - the directory to createoptionsByType - the OptionsByTypeCopyright © 2017. All rights reserved.