Package org.apache.synapse.deployers
Class ProxyServiceDeployer
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractDeployer
-
- org.apache.synapse.deployers.AbstractSynapseArtifactDeployer
-
- org.apache.synapse.deployers.ProxyServiceDeployer
-
- All Implemented Interfaces:
org.apache.axis2.deployment.Deployer
public class ProxyServiceDeployer extends AbstractSynapseArtifactDeployer
Handles theProxyService
deployment and undeployment tasks- See Also:
AbstractSynapseArtifactDeployer
-
-
Field Summary
Fields Modifier and Type Field Description static String
failSafeStr
-
Fields inherited from class org.apache.synapse.deployers.AbstractSynapseArtifactDeployer
cfgCtx, customLogContent, deployerLog
-
-
Constructor Summary
Constructors Constructor Description ProxyServiceDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
deploySynapseArtifact(org.apache.axiom.om.OMElement artifactConfig, String filePath, Properties properties)
All synapse artifact deployers MUST implement this method and it handles artifact specific deployment tasks of those artifacts.void
restoreSynapseArtifact(String artifactName)
All synapse artifact deployers MUST implement this method and it handles artifact specific restore tasks of those artifacts upon a failure of an update or undeployment.void
undeploySynapseArtifact(String artifactName)
All synapse artifact deployers MUST implement this method and it handles artifact specific undeployment tasks of those artifacts.String
updateSynapseArtifact(org.apache.axiom.om.OMElement artifactConfig, String fileName, String existingArtifactName, Properties properties)
All synapse artifact deployers MUST implement this method and it handles artifact specific update tasks of those artifacts.-
Methods inherited from class org.apache.synapse.deployers.AbstractSynapseArtifactDeployer
deploy, executeExtendedSynapseHandlerOnArtifactDeployment, executeSynapseHandlerOnArtifactUnDeployment, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, handleSynapseArtifactDeploymentError, handleSynapseArtifactDeploymentError, init, setCustomLog, setDirectory, setExtension, undeploy, waitForCompletion, writeToFile
-
-
-
-
Field Detail
-
failSafeStr
public static String failSafeStr
-
-
Method Detail
-
deploySynapseArtifact
public String deploySynapseArtifact(org.apache.axiom.om.OMElement artifactConfig, String filePath, Properties properties)
Description copied from class:AbstractSynapseArtifactDeployer
All synapse artifact deployers MUST implement this method and it handles artifact specific deployment tasks of those artifacts.- Specified by:
deploySynapseArtifact
in classAbstractSynapseArtifactDeployer
- Parameters:
artifactConfig
- built element representing the artifact to be deployed loaded from the filefilePath
- file name from which this artifact is being loadedproperties
- Properties associated with the artifact- Returns:
- String artifact name created by the deployment task
- See Also:
AbstractSynapseArtifactDeployer.deploy( org.apache.axis2.deployment.repository.util.DeploymentFileData)
-
updateSynapseArtifact
public String updateSynapseArtifact(org.apache.axiom.om.OMElement artifactConfig, String fileName, String existingArtifactName, Properties properties)
Description copied from class:AbstractSynapseArtifactDeployer
All synapse artifact deployers MUST implement this method and it handles artifact specific update tasks of those artifacts.- Specified by:
updateSynapseArtifact
in classAbstractSynapseArtifactDeployer
- Parameters:
artifactConfig
- built element representing the artifact to be deployed loaded from the filefileName
- file name from which this artifact is being loadedexistingArtifactName
- name of the artifact that was being deployed using the updated fileproperties
- bag of properties with the additional information- Returns:
- String artifact name created by the update task
-
undeploySynapseArtifact
public void undeploySynapseArtifact(String artifactName)
Description copied from class:AbstractSynapseArtifactDeployer
All synapse artifact deployers MUST implement this method and it handles artifact specific undeployment tasks of those artifacts.- Specified by:
undeploySynapseArtifact
in classAbstractSynapseArtifactDeployer
- Parameters:
artifactName
- name of the artifact to be undeployed- See Also:
AbstractSynapseArtifactDeployer.undeploy(String)
-
restoreSynapseArtifact
public void restoreSynapseArtifact(String artifactName)
Description copied from class:AbstractSynapseArtifactDeployer
All synapse artifact deployers MUST implement this method and it handles artifact specific restore tasks of those artifacts upon a failure of an update or undeployment.- Specified by:
restoreSynapseArtifact
in classAbstractSynapseArtifactDeployer
- Parameters:
artifactName
- name of the artifact to be restored
-
-