public class SftpDeployer extends Object implements Deployer
Deployer that uses SFTP to
transfer DeploymentArtifacts to a platform.
Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Constructor and Description |
|---|
SftpDeployer()
Create a
SftpDeployer. |
SftpDeployer(JSchSessionFactory sessionFactory)
Create a
SftpDeployer that will use the
specified JSchSessionFactory. |
| Modifier and Type | Method and Description |
|---|---|
DeployedArtifacts |
deploy(List<DeploymentArtifact> artifactsToDeploy,
String remoteDirectory,
Platform platform,
com.oracle.bedrock.Option... deploymentOptions)
Deploy the list of
DeploymentArtifacts to the specified Platform, returning the
DeployedArtifacts representing the actual Files deployed and their location. |
DeployedArtifacts |
undeploy(DeployedArtifacts deployedArtifacts,
Platform platform,
com.oracle.bedrock.Option... deploymentOptions)
Undeploy the
DeployedArtifacts on the specified Platform, returning the
DeployedArtifacts that were not undeployed successfully. |
public SftpDeployer()
SftpDeployer.public SftpDeployer(JSchSessionFactory sessionFactory)
SftpDeployer that will use the
specified JSchSessionFactory.sessionFactory - the JSchSocketFactorypublic DeployedArtifacts deploy(List<DeploymentArtifact> artifactsToDeploy, String remoteDirectory, Platform platform, com.oracle.bedrock.Option... deploymentOptions)
DeployerDeploymentArtifacts to the specified Platform, returning the
DeployedArtifacts representing the actual Files deployed and their location.deploy in interface DeployerartifactsToDeploy - the DeploymentArtifacts to deployremoteDirectory - the target directory to deploy the DeploymentArtifacts to if no
destination is specified for a DeploymentArtifactplatform - the target Platform to deploy the DeploymentArtifacts todeploymentOptions - the Options that can be applied to control the deploymentDeployedArtifactspublic DeployedArtifacts undeploy(DeployedArtifacts deployedArtifacts, Platform platform, com.oracle.bedrock.Option... deploymentOptions)
DeployerDeployedArtifacts on the specified Platform, returning the
DeployedArtifacts that were not undeployed successfully.undeploy in interface DeployerdeployedArtifacts - the DeployedArtifacts to undeployplatform - the PlatformdeploymentOptions - the Options used for deployment and undeploymentDeployedArtifacts that were failed to undeployCopyright © 2017. All rights reserved.