org.apache.geronimo.tomcat.cluster.wadi.builder
Class WADITomcatClusteringBuilder

java.lang.Object
  extended by org.apache.geronimo.tomcat.cluster.wadi.builder.WADITomcatClusteringBuilder
All Implemented Interfaces:
AbstractNamespaceBuilder, NamespaceDrivenBuilder

public class WADITomcatClusteringBuilder
extends Object
implements NamespaceDrivenBuilder


Field Summary
static String GBEAN_ATTR_ARTIFACT_TO_REMOVE
           
static String GBEAN_ATTR_DFT_BACKING_STRATEGY_FACTORY_NAME
           
static String GBEAN_ATTR_DFT_CLUSTER_NAME
           
static String GBEAN_ATTR_DFT_ENVIRONMENT
           
static String GBEAN_ATTR_DFT_NUM_PARTITIONS
           
static String GBEAN_ATTR_DFT_SESSION_TIMEOUT
           
static String GBEAN_ATTR_DFT_SWEEP_INTERVAL
           
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
WADITomcatClusteringBuilder(int defaultSweepInterval, int defaultSessionTimeout, int defaultNumPartitions, AbstractNameQuery defaultBackingStrategyFactoryName, AbstractNameQuery defaultClusterName, Artifact artifactToRemoveFromEnvironment, Environment defaultEnvironment)
           
 
Method Summary
protected  void addAbstractNameQueries(Set patterns, GerPatternType patternType)
           
protected  AbstractName addClusteredManagerRetriever(DeploymentContext moduleContext, GBeanData webModuleData, AbstractName sessionManagerName)
           
protected  AbstractName addClusteredValveRetriever(DeploymentContext moduleContext, GBeanData webModuleData, AbstractName sessionManagerName)
           
protected  void addGBean(DeploymentContext moduleContext, GBeanData beanData)
           
protected  AbstractName addSessionManager(GerTomcatClusteringWadiType clustering, GBeanData webModuleData, DeploymentContext moduleContext)
           
 void build(org.apache.xmlbeans.XmlObject container, DeploymentContext applicationContext, DeploymentContext moduleContext)
           
 void buildEnvironment(org.apache.xmlbeans.XmlObject container, Environment environment)
           
protected  AbstractNameQuery createTomcatWebAppContextNameQuery(DeploymentContext moduleContext)
           
protected  GBeanData extractWebModule(DeploymentContext moduleContext)
           
protected  void filterDependencies(Environment environment)
           
static GBeanInfo getGBeanInfo()
           
protected  int getNumberOfPartitions(GerTomcatClusteringWadiType clustering)
           
 org.apache.xmlbeans.QNameSet getPlanQNameSet()
           
protected  Integer getSessionTimeout(GBeanData webModuleData)
           
 org.apache.xmlbeans.QNameSet getSpecQNameSet()
           
protected  int getSweepInterval(GerTomcatClusteringWadiType clustering)
           
protected  GerTomcatClusteringWadiType getWadiClusterConfig(org.apache.xmlbeans.XmlObject container)
           
protected  boolean isDeltaReplication(GerTomcatClusteringWadiType clustering)
           
protected  boolean isDisableReplication(GerTomcatClusteringWadiType clustering)
           
protected  AbstractName newGBeanName(DeploymentContext moduleContext, String name)
           
protected  void setBackingStrategyFactory(GerTomcatClusteringWadiType clustering, GBeanData beanData)
           
protected  void setCluster(GerTomcatClusteringWadiType clustering, GBeanData beanData)
           
protected  void setConfigInfo(GerTomcatClusteringWadiType clustering, GBeanData webModuleData, GBeanData beanData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO

GBEAN_ATTR_DFT_SWEEP_INTERVAL

public static final String GBEAN_ATTR_DFT_SWEEP_INTERVAL
See Also:
Constant Field Values

GBEAN_ATTR_DFT_SESSION_TIMEOUT

public static final String GBEAN_ATTR_DFT_SESSION_TIMEOUT
See Also:
Constant Field Values

GBEAN_ATTR_DFT_NUM_PARTITIONS

public static final String GBEAN_ATTR_DFT_NUM_PARTITIONS
See Also:
Constant Field Values

GBEAN_ATTR_DFT_BACKING_STRATEGY_FACTORY_NAME

public static final String GBEAN_ATTR_DFT_BACKING_STRATEGY_FACTORY_NAME
See Also:
Constant Field Values

GBEAN_ATTR_DFT_CLUSTER_NAME

public static final String GBEAN_ATTR_DFT_CLUSTER_NAME
See Also:
Constant Field Values

GBEAN_ATTR_ARTIFACT_TO_REMOVE

public static final String GBEAN_ATTR_ARTIFACT_TO_REMOVE
See Also:
Constant Field Values

GBEAN_ATTR_DFT_ENVIRONMENT

public static final String GBEAN_ATTR_DFT_ENVIRONMENT
See Also:
Constant Field Values
Constructor Detail

WADITomcatClusteringBuilder

public WADITomcatClusteringBuilder(int defaultSweepInterval,
                                   int defaultSessionTimeout,
                                   int defaultNumPartitions,
                                   AbstractNameQuery defaultBackingStrategyFactoryName,
                                   AbstractNameQuery defaultClusterName,
                                   Artifact artifactToRemoveFromEnvironment,
                                   Environment defaultEnvironment)
Method Detail

buildEnvironment

public void buildEnvironment(org.apache.xmlbeans.XmlObject container,
                             Environment environment)
                      throws DeploymentException
Specified by:
buildEnvironment in interface NamespaceDrivenBuilder
Throws:
DeploymentException

build

public void build(org.apache.xmlbeans.XmlObject container,
                  DeploymentContext applicationContext,
                  DeploymentContext moduleContext)
           throws DeploymentException
Specified by:
build in interface NamespaceDrivenBuilder
Throws:
DeploymentException

filterDependencies

protected void filterDependencies(Environment environment)

extractWebModule

protected GBeanData extractWebModule(DeploymentContext moduleContext)
                              throws DeploymentException
Throws:
DeploymentException

createTomcatWebAppContextNameQuery

protected AbstractNameQuery createTomcatWebAppContextNameQuery(DeploymentContext moduleContext)

getSpecQNameSet

public org.apache.xmlbeans.QNameSet getSpecQNameSet()
Specified by:
getSpecQNameSet in interface AbstractNamespaceBuilder

getPlanQNameSet

public org.apache.xmlbeans.QNameSet getPlanQNameSet()
Specified by:
getPlanQNameSet in interface AbstractNamespaceBuilder

getWadiClusterConfig

protected GerTomcatClusteringWadiType getWadiClusterConfig(org.apache.xmlbeans.XmlObject container)
                                                    throws DeploymentException
Throws:
DeploymentException

addSessionManager

protected AbstractName addSessionManager(GerTomcatClusteringWadiType clustering,
                                         GBeanData webModuleData,
                                         DeploymentContext moduleContext)
                                  throws GBeanAlreadyExistsException
Throws:
GBeanAlreadyExistsException

setConfigInfo

protected void setConfigInfo(GerTomcatClusteringWadiType clustering,
                             GBeanData webModuleData,
                             GBeanData beanData)

getSessionTimeout

protected Integer getSessionTimeout(GBeanData webModuleData)
                             throws AssertionError
Throws:
AssertionError

isDeltaReplication

protected boolean isDeltaReplication(GerTomcatClusteringWadiType clustering)

isDisableReplication

protected boolean isDisableReplication(GerTomcatClusteringWadiType clustering)

getNumberOfPartitions

protected int getNumberOfPartitions(GerTomcatClusteringWadiType clustering)

getSweepInterval

protected int getSweepInterval(GerTomcatClusteringWadiType clustering)

setCluster

protected void setCluster(GerTomcatClusteringWadiType clustering,
                          GBeanData beanData)

setBackingStrategyFactory

protected void setBackingStrategyFactory(GerTomcatClusteringWadiType clustering,
                                         GBeanData beanData)

addClusteredValveRetriever

protected AbstractName addClusteredValveRetriever(DeploymentContext moduleContext,
                                                  GBeanData webModuleData,
                                                  AbstractName sessionManagerName)
                                           throws GBeanAlreadyExistsException
Throws:
GBeanAlreadyExistsException

addClusteredManagerRetriever

protected AbstractName addClusteredManagerRetriever(DeploymentContext moduleContext,
                                                    GBeanData webModuleData,
                                                    AbstractName sessionManagerName)
                                             throws GBeanAlreadyExistsException
Throws:
GBeanAlreadyExistsException

addGBean

protected void addGBean(DeploymentContext moduleContext,
                        GBeanData beanData)
                 throws GBeanAlreadyExistsException
Throws:
GBeanAlreadyExistsException

newGBeanName

protected AbstractName newGBeanName(DeploymentContext moduleContext,
                                    String name)

addAbstractNameQueries

protected void addAbstractNameQueries(Set patterns,
                                      GerPatternType patternType)

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.