org.jboss.soa.esb.listeners.deployers.mc
Class EsbDeployment

java.lang.Object
  extended by org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment
All Implemented Interfaces:
EsbDeploymentMBean

public class EsbDeployment
extends java.lang.Object
implements EsbDeploymentMBean

EsbDeployment for the Microcontainer.

Microcontainer will call the lifecycle methods:

  • create will create the ESB deployment.
  • start will start the ESB deployment.
  • stop will stop the ESB deployment.
  • destroy will destroy the ESB deployment.

    Author:
    Daniel Bevenius, Magesh Kumar B

    Field Summary
     
    Fields inherited from interface org.jboss.soa.esb.listeners.deployers.mc.EsbDeploymentMBean
    CREATED, CREATING, DESTROYED, DESTROYING, FAILED, INITIALIZED, INITIALIZING, STARTED, STARTING, states, STOPPED, STOPPING, UNREGISTERED
     
    Constructor Summary
    EsbDeployment(EsbMetaData esbMetaData, java.lang.String mbeanName, org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit deploymentUnit, java.io.File esbWarFiles)
               
     
    Method Summary
     void create()
               
     void destroy()
               
     ManagedLifecycleController getController()
               
     java.lang.String getDeploymentName()
               
     java.lang.String getJbossEsbXml()
              Gets the jboss-esb.xml configuration.
     java.lang.String getJbossEsbXmlAsHtml()
              Gets the jboss-esb.xml configuration as html.
     java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> getPublishers()
               
     java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> getServlets()
               
     int getState()
               
     java.lang.String getStateString()
               
     boolean isStarted()
              Is the deployment started.
     void setDeploymentName(java.lang.String deploymentName)
               
     void setMainDeployer(org.jboss.deployers.client.spi.DeployerClient mainDeployer)
               
     void setPublishers(java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)
               
     void setServlets(java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> servlets)
               
     void start()
              Start a deployment.
     void stop()
              Stop a deployment.
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    EsbDeployment

    public EsbDeployment(EsbMetaData esbMetaData,
                         java.lang.String mbeanName,
                         org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit deploymentUnit,
                         java.io.File esbWarFiles)
                  throws java.lang.Exception
    Throws:
    java.lang.Exception
    Method Detail

    getJbossEsbXml

    public java.lang.String getJbossEsbXml()
    Description copied from interface: EsbDeploymentMBean
    Gets the jboss-esb.xml configuration.

    Specified by:
    getJbossEsbXml in interface EsbDeploymentMBean
    Returns:
    String The jboss-esb.xml files content.

    getJbossEsbXmlAsHtml

    public java.lang.String getJbossEsbXmlAsHtml()
    Description copied from interface: EsbDeploymentMBean
    Gets the jboss-esb.xml configuration as html.

    Specified by:
    getJbossEsbXmlAsHtml in interface EsbDeploymentMBean
    Returns:
    String The jboss-esb.xml files content as html.

    setPublishers

    public void setPublishers(java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)

    setServlets

    public void setServlets(java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> servlets)

    getServlets

    public java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> getServlets()

    setMainDeployer

    public void setMainDeployer(org.jboss.deployers.client.spi.DeployerClient mainDeployer)

    getController

    public ManagedLifecycleController getController()

    getDeploymentName

    public java.lang.String getDeploymentName()

    setDeploymentName

    public void setDeploymentName(java.lang.String deploymentName)

    getPublishers

    public java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> getPublishers()

    create

    public void create()
                throws java.lang.Exception
    Throws:
    java.lang.Exception

    start

    public void start()
               throws java.lang.Exception
    Description copied from interface: EsbDeploymentMBean
    Start a deployment.

    Specified by:
    start in interface EsbDeploymentMBean
    Throws:
    java.lang.Exception - If an exception occurs while starting.

    isStarted

    public boolean isStarted()
    Description copied from interface: EsbDeploymentMBean
    Is the deployment started.

    Specified by:
    isStarted in interface EsbDeploymentMBean
    Returns:
    True if the deployment is started, otherwise false.

    getStateString

    public java.lang.String getStateString()
    Specified by:
    getStateString in interface EsbDeploymentMBean

    getState

    public int getState()
    Specified by:
    getState in interface EsbDeploymentMBean

    stop

    public void stop()
              throws java.lang.Exception
    Description copied from interface: EsbDeploymentMBean
    Stop a deployment.

    Specified by:
    stop in interface EsbDeploymentMBean
    Throws:
    java.lang.Exception - If an exeption occurs while stoping.

    destroy

    public void destroy()
                 throws java.lang.Exception
    Throws:
    java.lang.Exception