org.apache.geronimo.farm.deployment
Class MasterConfigurationStore

java.lang.Object
  extended by org.apache.geronimo.farm.deployment.MasterConfigurationStore
All Implemented Interfaces:
org.apache.geronimo.kernel.config.ConfigurationStore

@GBean(j2eeType="ConfigurationStore")
public class MasterConfigurationStore
extends Object
implements org.apache.geronimo.kernel.config.ConfigurationStore

Version:
$Rev:$ $Date:$

Field Summary
static String GBEAN_ATTR_DEFAULT_ENV
           
static String GBEAN_J2EE_TYPE
           
static String GBEAN_REF_CLUSTER_CONF_STORE_CLIENT
           
static String GBEAN_REF_CLUSTER_INFO
           
static String GBEAN_REF_REPOSITORY
           
 
Constructor Summary
MasterConfigurationStore(org.apache.geronimo.kernel.Kernel kernel, String objectName, org.apache.geronimo.gbean.AbstractName abstractName, org.apache.geronimo.kernel.repository.WritableListableRepository repository, org.apache.geronimo.kernel.repository.Environment defaultEnvironment, org.apache.geronimo.farm.config.ClusterInfo clusterInfo, ClusterConfigurationStoreClient storeDelegate)
           
 
Method Summary
protected  org.apache.geronimo.gbean.GBeanData buildControllerGBean(org.apache.geronimo.kernel.repository.Artifact configId, org.apache.geronimo.farm.config.NodeInfo nodeInfo, org.apache.geronimo.kernel.repository.Artifact slaveConfigId)
           
protected  List<org.apache.geronimo.gbean.GBeanData> buildControllerGBeans(org.apache.geronimo.kernel.repository.Artifact configId, org.apache.geronimo.kernel.repository.Artifact slaveConfigId)
           
protected  org.apache.geronimo.gbean.AbstractName buildControllerName(org.apache.geronimo.kernel.repository.Artifact configId, org.apache.geronimo.farm.config.NodeInfo nodeInfo)
           
protected  org.apache.geronimo.kernel.repository.Environment buildEnvironment(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
           
protected  org.apache.geronimo.kernel.config.ConfigurationData buildMasterConfigurationData(org.apache.geronimo.kernel.config.ConfigurationData configurationData, org.apache.geronimo.kernel.repository.Artifact slaveConfigId)
           
 boolean containsConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
 File createNewConfigurationDir(org.apache.geronimo.kernel.repository.Artifact configId)
           
protected  void ensureArtifactForMasterConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
 void exportConfiguration(org.apache.geronimo.kernel.repository.Artifact configId, OutputStream output)
           
 org.apache.geronimo.gbean.AbstractName getAbstractName()
           
 String getObjectName()
           
 void install(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
           
protected  void installMasterConfiguration(org.apache.geronimo.kernel.config.ConfigurationData configurationData, org.apache.geronimo.kernel.repository.Artifact slaveConfigId)
           
protected  void installSlaveConfiguration(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
           
 boolean isInPlaceConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
 List<org.apache.geronimo.kernel.config.ConfigurationInfo> listConfigurations()
           
 org.apache.geronimo.kernel.config.ConfigurationData loadConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
protected  org.apache.geronimo.kernel.config.ConfigurationStore newConfigurationStore(org.apache.geronimo.kernel.Kernel kernel, String objectName, org.apache.geronimo.gbean.AbstractName abstractName, org.apache.geronimo.kernel.repository.WritableListableRepository repository)
           
protected  ConfigurationNameBuilder newMasterConfigurationNameBuilder()
           
 Set<URL> resolve(org.apache.geronimo.kernel.repository.Artifact configId, String moduleName, String path)
           
 void uninstall(org.apache.geronimo.kernel.repository.Artifact configId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_J2EE_TYPE

public static final String GBEAN_J2EE_TYPE
See Also:
Constant Field Values

GBEAN_ATTR_DEFAULT_ENV

public static final String GBEAN_ATTR_DEFAULT_ENV
See Also:
Constant Field Values

GBEAN_REF_REPOSITORY

public static final String GBEAN_REF_REPOSITORY
See Also:
Constant Field Values

GBEAN_REF_CLUSTER_INFO

public static final String GBEAN_REF_CLUSTER_INFO
See Also:
Constant Field Values

GBEAN_REF_CLUSTER_CONF_STORE_CLIENT

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

MasterConfigurationStore

public MasterConfigurationStore(@ParamSpecial(type=kernel)
                                org.apache.geronimo.kernel.Kernel kernel,
                                @ParamSpecial(type=objectName)
                                String objectName,
                                @ParamSpecial(type=abstractName)
                                org.apache.geronimo.gbean.AbstractName abstractName,
                                @ParamReference(name="Repository",namingType="Repository")
                                org.apache.geronimo.kernel.repository.WritableListableRepository repository,
                                @ParamAttribute(name="defaultEnvironment")
                                org.apache.geronimo.kernel.repository.Environment defaultEnvironment,
                                @ParamReference(name="ClusterInfo")
                                org.apache.geronimo.farm.config.ClusterInfo clusterInfo,
                                @ParamReference(name="ClusterConfigurationStoreClient")
                                ClusterConfigurationStoreClient storeDelegate)
Method Detail

containsConfiguration

public boolean containsConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
Specified by:
containsConfiguration in interface org.apache.geronimo.kernel.config.ConfigurationStore

createNewConfigurationDir

public File createNewConfigurationDir(org.apache.geronimo.kernel.repository.Artifact configId)
                               throws org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException
Specified by:
createNewConfigurationDir in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException

exportConfiguration

public void exportConfiguration(org.apache.geronimo.kernel.repository.Artifact configId,
                                OutputStream output)
                         throws IOException,
                                org.apache.geronimo.kernel.config.NoSuchConfigException
Specified by:
exportConfiguration in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
IOException
org.apache.geronimo.kernel.config.NoSuchConfigException

getAbstractName

public org.apache.geronimo.gbean.AbstractName getAbstractName()
Specified by:
getAbstractName in interface org.apache.geronimo.kernel.config.ConfigurationStore

getObjectName

public String getObjectName()
Specified by:
getObjectName in interface org.apache.geronimo.kernel.config.ConfigurationStore

install

public void install(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
             throws IOException,
                    org.apache.geronimo.kernel.config.InvalidConfigException
Specified by:
install in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
IOException
org.apache.geronimo.kernel.config.InvalidConfigException

isInPlaceConfiguration

public boolean isInPlaceConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
                               throws org.apache.geronimo.kernel.config.NoSuchConfigException,
                                      IOException
Specified by:
isInPlaceConfiguration in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
org.apache.geronimo.kernel.config.NoSuchConfigException
IOException

listConfigurations

public List<org.apache.geronimo.kernel.config.ConfigurationInfo> listConfigurations()
Specified by:
listConfigurations in interface org.apache.geronimo.kernel.config.ConfigurationStore

loadConfiguration

public org.apache.geronimo.kernel.config.ConfigurationData loadConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
                                                                      throws org.apache.geronimo.kernel.config.NoSuchConfigException,
                                                                             IOException,
                                                                             org.apache.geronimo.kernel.config.InvalidConfigException
Specified by:
loadConfiguration in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
org.apache.geronimo.kernel.config.NoSuchConfigException
IOException
org.apache.geronimo.kernel.config.InvalidConfigException

resolve

public Set<URL> resolve(org.apache.geronimo.kernel.repository.Artifact configId,
                        String moduleName,
                        String path)
                 throws org.apache.geronimo.kernel.config.NoSuchConfigException,
                        MalformedURLException
Specified by:
resolve in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
org.apache.geronimo.kernel.config.NoSuchConfigException
MalformedURLException

uninstall

public void uninstall(org.apache.geronimo.kernel.repository.Artifact configId)
               throws org.apache.geronimo.kernel.config.NoSuchConfigException,
                      IOException
Specified by:
uninstall in interface org.apache.geronimo.kernel.config.ConfigurationStore
Throws:
org.apache.geronimo.kernel.config.NoSuchConfigException
IOException

ensureArtifactForMasterConfiguration

protected void ensureArtifactForMasterConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
                                             throws org.apache.geronimo.kernel.config.NoSuchConfigException
Throws:
org.apache.geronimo.kernel.config.NoSuchConfigException

newConfigurationStore

protected org.apache.geronimo.kernel.config.ConfigurationStore newConfigurationStore(org.apache.geronimo.kernel.Kernel kernel,
                                                                                     String objectName,
                                                                                     org.apache.geronimo.gbean.AbstractName abstractName,
                                                                                     org.apache.geronimo.kernel.repository.WritableListableRepository repository)

newMasterConfigurationNameBuilder

protected ConfigurationNameBuilder newMasterConfigurationNameBuilder()

installMasterConfiguration

protected void installMasterConfiguration(org.apache.geronimo.kernel.config.ConfigurationData configurationData,
                                          org.apache.geronimo.kernel.repository.Artifact slaveConfigId)
                                   throws IOException,
                                          org.apache.geronimo.kernel.config.InvalidConfigException
Throws:
IOException
org.apache.geronimo.kernel.config.InvalidConfigException

installSlaveConfiguration

protected void installSlaveConfiguration(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
                                  throws IOException,
                                         org.apache.geronimo.kernel.config.InvalidConfigException
Throws:
IOException
org.apache.geronimo.kernel.config.InvalidConfigException

buildMasterConfigurationData

protected org.apache.geronimo.kernel.config.ConfigurationData buildMasterConfigurationData(org.apache.geronimo.kernel.config.ConfigurationData configurationData,
                                                                                           org.apache.geronimo.kernel.repository.Artifact slaveConfigId)

buildEnvironment

protected org.apache.geronimo.kernel.repository.Environment buildEnvironment(org.apache.geronimo.kernel.config.ConfigurationData configurationData)

buildControllerGBeans

protected List<org.apache.geronimo.gbean.GBeanData> buildControllerGBeans(org.apache.geronimo.kernel.repository.Artifact configId,
                                                                          org.apache.geronimo.kernel.repository.Artifact slaveConfigId)

buildControllerGBean

protected org.apache.geronimo.gbean.GBeanData buildControllerGBean(org.apache.geronimo.kernel.repository.Artifact configId,
                                                                   org.apache.geronimo.farm.config.NodeInfo nodeInfo,
                                                                   org.apache.geronimo.kernel.repository.Artifact slaveConfigId)

buildControllerName

protected org.apache.geronimo.gbean.AbstractName buildControllerName(org.apache.geronimo.kernel.repository.Artifact configId,
                                                                     org.apache.geronimo.farm.config.NodeInfo nodeInfo)


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