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.AbstractDeployer
Axis2 deployer which deploys event sinks
  • Field Summary

    Fields inherited from class org.apache.axis2.deployment.AbstractDeployer

    deploymentFileDataMap
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)
    Deploys event sink specified by deploymentFileData.
    void
    init(org.apache.axis2.context.ConfigurationContext configurationContext)
     
    void
     
    void
     
    void
    undeploy(String fileName)
    Undeploys previously deployed event sink artifact.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.axis2.deployment.Deployer

    sort
  • Constructor Details

    • EventSinkDeployer

      public EventSinkDeployer()
  • Method Details

    • 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.DeploymentException
      Deploys 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:
      deploy in interface org.apache.axis2.deployment.Deployer
      Overrides:
      deploy in class org.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:
      undeploy in interface org.apache.axis2.deployment.Deployer
      Overrides:
      undeploy in class org.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:
      cleanup in interface org.apache.axis2.deployment.Deployer
      Overrides:
      cleanup in class org.apache.axis2.deployment.AbstractDeployer
      Throws:
      org.apache.axis2.deployment.DeploymentException