public abstract class FileShareDeployer extends Object implements Deployer
Deployer deploys to a
remote platform by copying files via a shared file system
location.
Sub-classes of this class will implement the actual remote part of the copy operation, which is specific to the remote platform O/S.
| Modifier | Constructor and Description |
|---|---|
protected |
FileShareDeployer(String localShareName,
String remoteShareName,
com.oracle.bedrock.Option... options)
Create a
FileShareDeployer that uses the
specified local and remote file share to deploy artifacts. |
| 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. |
String |
getLocalShareName() |
String |
getRemoteShareName() |
protected abstract boolean |
performRemoteCopy(String source,
String destination,
Platform platform,
com.oracle.bedrock.OptionsByType deploymentOptions)
Perform the copy of the
DeploymentArtifact from the remote share location
to the final target 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. |
protected FileShareDeployer(String localShareName, String remoteShareName, com.oracle.bedrock.Option... options)
FileShareDeployer that uses the
specified local and remote file share to deploy artifacts.localShareName - the name of the file share on the local platformremoteShareName - the name of the file share eon the remote platformoptions - the Options to control the deployerpublic String getLocalShareName()
public String getRemoteShareName()
public 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 undeployprotected abstract boolean performRemoteCopy(String source, String destination, Platform platform, com.oracle.bedrock.OptionsByType deploymentOptions) throws IOException
DeploymentArtifact from the remote share location
to the final target location.source - the file to copy in the remote share folderdestination - the remote location to copy the artifact toplatform - the Platform to perform the remote copy ondeploymentOptions - the OptionsByTypes to control the deploymentIOException - when the remote copy failsCopyright © 2017. All rights reserved.