Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.gbean
Class ActiveMQContainerGBean  view ActiveMQContainerGBean download ActiveMQContainerGBean.java

java.lang.Object
  extended byorg.activemq.gbean.ActiveMQContainerGBean
All Implemented Interfaces:
ActiveMQBroker, ActiveMQContainer, org.apache.geronimo.gbean.GBeanLifecycle

public class ActiveMQContainerGBean
extends java.lang.Object
implements org.apache.geronimo.gbean.GBeanLifecycle, ActiveMQContainer

Default implementation of the ActiveMQ Message Server

Version:
$Revision: 1.1.1.1 $

Field Summary
private  java.lang.String brokerName
           
private  org.activemq.broker.BrokerContainer container
           
private  org.activemq.broker.BrokerContext context
           
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
private  java.lang.String jaasConfiguration
           
private  org.apache.commons.logging.Log log
           
private  org.activemq.store.PersistenceAdapter persistenceAdapter
           
private  java.util.Properties securityRoles
           
 
Constructor Summary
ActiveMQContainerGBean()
           
ActiveMQContainerGBean(java.lang.String brokerName, org.activemq.store.PersistenceAdapter persistenceAdapter, java.lang.String jaasConfiguration, java.util.Properties securityRoles)
           
 
Method Summary
protected  org.activemq.broker.BrokerContainer createContainer()
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 org.activemq.broker.BrokerAdmin getBrokerAdmin()
           
 org.activemq.broker.BrokerContainer getBrokerContainer()
           
 java.lang.String getBrokerName()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 java.lang.String getJaasConfiguration()
           
 java.util.Properties getSecurityRoles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.apache.commons.logging.Log log

brokerName

private final java.lang.String brokerName

context

private org.activemq.broker.BrokerContext context

container

private org.activemq.broker.BrokerContainer container

persistenceAdapter

private final org.activemq.store.PersistenceAdapter persistenceAdapter

jaasConfiguration

private final java.lang.String jaasConfiguration

securityRoles

private final java.util.Properties securityRoles

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

ActiveMQContainerGBean

public ActiveMQContainerGBean()

ActiveMQContainerGBean

public ActiveMQContainerGBean(java.lang.String brokerName,
                              org.activemq.store.PersistenceAdapter persistenceAdapter,
                              java.lang.String jaasConfiguration,
                              java.util.Properties securityRoles)
Method Detail

getBrokerContainer

public org.activemq.broker.BrokerContainer getBrokerContainer()
Specified by:
getBrokerContainer in interface ActiveMQContainer

getBrokerAdmin

public org.activemq.broker.BrokerAdmin getBrokerAdmin()
Specified by:
getBrokerAdmin in interface ActiveMQContainer

doStart

public void doStart()
             throws java.lang.Exception
Description copied from interface: org.apache.geronimo.gbean.GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle

doStop

public void doStop()
            throws java.lang.Exception
Description copied from interface: org.apache.geronimo.gbean.GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle

doFail

public void doFail()
Description copied from interface: org.apache.geronimo.gbean.GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

createContainer

protected org.activemq.broker.BrokerContainer createContainer()
                                                       throws java.lang.Exception

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()

getBrokerName

public java.lang.String getBrokerName()
Specified by:
getBrokerName in interface ActiveMQContainer

getJaasConfiguration

public java.lang.String getJaasConfiguration()
Specified by:
getJaasConfiguration in interface ActiveMQContainer

getSecurityRoles

public java.util.Properties getSecurityRoles()
Specified by:
getSecurityRoles in interface ActiveMQContainer