Package org.wso2.carbon.event.sink
Class EventSinkDeployer
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractDeployer
-
- org.wso2.carbon.event.sink.EventSinkDeployer
-
- All Implemented Interfaces:
org.apache.axis2.deployment.Deployer
public class EventSinkDeployer extends org.apache.axis2.deployment.AbstractDeployerAxis2 deployer which deploys event sinks
-
-
Constructor Summary
Constructors Constructor Description EventSinkDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voiddeploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)Deploys event sink specified by deploymentFileData.voidinit(org.apache.axis2.context.ConfigurationContext configurationContext)voidsetDirectory(String s)voidsetExtension(String s)voidundeploy(String fileName)Undeploys previously deployed event sink artifact.
-
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext)
-
deploy
public void deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData) throws org.apache.axis2.deployment.DeploymentExceptionDeploys event sink specified by deploymentFileData. This is called whenever an event sink artifact is added, modified, deleted from the event sink artifact directory- Specified by:
deployin interfaceorg.apache.axis2.deployment.Deployer- Overrides:
deployin classorg.apache.axis2.deployment.AbstractDeployer- Parameters:
deploymentFileData- File data about the event sink artifact to be deployed- Throws:
org.apache.axis2.deployment.DeploymentException
-
setDirectory
public void setDirectory(String s)
-
setExtension
public void setExtension(String s)
-
undeploy
public void undeploy(String fileName) throws org.apache.axis2.deployment.DeploymentException
Undeploys previously deployed event sink artifact. This is called whenever an event sink artifact is deleted from event sink artifact directory. Also, this is called when an already existing artifact is modified, followed by a call to deploy()- Specified by:
undeployin interfaceorg.apache.axis2.deployment.Deployer- Overrides:
undeployin classorg.apache.axis2.deployment.AbstractDeployer- Parameters:
fileName- File name of the artifact to be undeployed- Throws:
org.apache.axis2.deployment.DeploymentException
-
cleanup
public void cleanup() throws org.apache.axis2.deployment.DeploymentException- Specified by:
cleanupin interfaceorg.apache.axis2.deployment.Deployer- Overrides:
cleanupin classorg.apache.axis2.deployment.AbstractDeployer- Throws:
org.apache.axis2.deployment.DeploymentException
-
-