org.apache.geronimo.jetty6.cluster.wadi.builder
Class WADIJettyClusteringBuilder

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

public class WADIJettyClusteringBuilder
extends Object
implements NamespaceDrivenBuilder


Field Summary
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_SWEEP_INTERVAL
           
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
WADIJettyClusteringBuilder(int defaultSweepInterval, int defaultNumPartitions, AbstractNameQuery defaultBackingStrategyFactoryName, AbstractNameQuery defaultClusterName, Environment defaultEnvironment)
           
 
Method Summary
protected  void addAbstractNameQueries(Set patterns, GerPatternType[] patternTypes)
           
protected  AbstractName addPreHandlerFactory(DeploymentContext moduleContext, GBeanData webModuleData, AbstractName sessionManagerName)
           
protected  AbstractName addSessionHandlerFactory(DeploymentContext moduleContext, GBeanData webModuleData, AbstractName sessionManagerName)
           
protected  AbstractName addSessionManager(GerClusteringWadiType 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 createJettyWebAppContextNameQuery(DeploymentContext moduleContext)
           
protected  GBeanData extractWebModule(DeploymentContext moduleContext)
           
static GBeanInfo getGBeanInfo()
           
protected  int getNumberOfPartitions(GerClusteringWadiType clustering)
           
 org.apache.xmlbeans.QNameSet getPlanQNameSet()
           
protected  Integer getSessionTimeout(GBeanData webModuleData)
           
 org.apache.xmlbeans.QNameSet getSpecQNameSet()
           
protected  int getSweepInterval(GerClusteringWadiType clustering)
           
protected  GerClusteringWadiType getWadiClusterConfig(org.apache.xmlbeans.XmlObject container)
           
protected  boolean isDeltaReplication(GerClusteringWadiType clustering)
           
protected  boolean isDisableReplication(GerClusteringWadiType clustering)
           
protected  void setBackingStrategyFactory(GerClusteringWadiType clustering, GBeanData beanData)
           
protected  void setCluster(GerClusteringWadiType clustering, GBeanData beanData)
           
protected  void setConfigInfo(GerClusteringWadiType 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_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_DFT_ENVIRONMENT

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

WADIJettyClusteringBuilder

public WADIJettyClusteringBuilder(int defaultSweepInterval,
                                  int defaultNumPartitions,
                                  AbstractNameQuery defaultBackingStrategyFactoryName,
                                  AbstractNameQuery defaultClusterName,
                                  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

extractWebModule

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

createJettyWebAppContextNameQuery

protected AbstractNameQuery createJettyWebAppContextNameQuery(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 GerClusteringWadiType getWadiClusterConfig(org.apache.xmlbeans.XmlObject container)
                                              throws DeploymentException
Throws:
DeploymentException

addSessionManager

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

setConfigInfo

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

getSessionTimeout

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

isDeltaReplication

protected boolean isDeltaReplication(GerClusteringWadiType clustering)

isDisableReplication

protected boolean isDisableReplication(GerClusteringWadiType clustering)

getNumberOfPartitions

protected int getNumberOfPartitions(GerClusteringWadiType clustering)

getSweepInterval

protected int getSweepInterval(GerClusteringWadiType clustering)

setCluster

protected void setCluster(GerClusteringWadiType clustering,
                          GBeanData beanData)

setBackingStrategyFactory

protected void setBackingStrategyFactory(GerClusteringWadiType clustering,
                                         GBeanData beanData)

addPreHandlerFactory

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

addSessionHandlerFactory

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

addAbstractNameQueries

protected void addAbstractNameQueries(Set patterns,
                                      GerPatternType[] patternTypes)

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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