|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.config.model.ConfigurationModelContainerImpl
public class ConfigurationModelContainerImpl
| Constructor Summary | |
|---|---|
ConfigurationModelContainerImpl()
|
|
ConfigurationModelContainerImpl(java.util.ArrayList configObjects)
|
|
ConfigurationModelContainerImpl(java.util.Collection configObjects)
|
|
ConfigurationModelContainerImpl(Configuration config)
|
|
| Method Summary | |
|---|---|
void |
addComponentType(ComponentType type)
NOTE: The following 2 methods are provided here because the editor does not interact with the ConfiguratonModelContainer. |
void |
addObject(java.lang.Object obj)
|
void |
addObjects(java.util.Collection objects)
|
void |
addProductType(ProductType type)
|
void |
addResource(SharedResource rd)
|
java.lang.Object |
clone()
|
ConfigurationModelContainer |
copyAs(ConfigurationID configID)
|
java.util.Collection |
getAllComponentTypeDefinitions(ComponentTypeID typeID)
Return a collection of the ComponentTypeDefinition |
java.util.Collection |
getAllObjects()
Return all the objects that make up this model. |
ComponentType |
getComponentType(java.lang.String fullName)
Return the ComponentType for the specified name |
ComponentTypeDefn |
getComponentTypeDefinition(ComponentTypeID typeID,
java.lang.String defnName)
Return a ComponentTypeDefn for a give typeID and defnName. |
java.util.Map |
getComponentTypes()
Return a map of the component types. |
Configuration |
getConfiguration()
|
ConfigurationID |
getConfigurationID()
|
java.util.Collection |
getConnectionPools()
Return a collection of objects of type ResourceDescriptor. |
java.util.Properties |
getDefaultPropertyValues(ComponentTypeID componentTypeID)
Return a properties object that contains the default properties defined for the specified component type |
protected ConfigurationObjectEditorHelper |
getEditor()
|
Host |
getHost(java.lang.String fullName)
Return a host based on the host name. |
java.util.Collection |
getHosts()
Return a collection of objects of type Host. |
ProductType |
getProductType(java.lang.String name)
Return a ProductType based on the specified name. |
java.util.Collection |
getProductTypes()
Return a collection of objects of type ProductType. |
SharedResource |
getResource(java.lang.String resourceName)
|
java.util.Collection |
getResources()
|
boolean |
isConfigurationModel()
Method indicates if this configuration model was loaded with a complete configuration or not. |
void |
remove(BaseID objID)
|
void |
setComponentTypes(java.util.Map newCompTypes)
|
void |
setConfigurationObjects(java.util.Collection objects)
Method used when the XMLConfiguration is initialized for the first time. |
void |
setProductTypes(java.util.Collection newProdTypes)
|
void |
setResources(java.util.Collection theResources)
|
void |
setResources(java.util.Map theResources)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationModelContainerImpl()
public ConfigurationModelContainerImpl(java.util.ArrayList configObjects)
throws ConfigurationException
ConfigurationException
public ConfigurationModelContainerImpl(java.util.Collection configObjects)
throws ConfigurationException
ConfigurationExceptionpublic ConfigurationModelContainerImpl(Configuration config)
| Method Detail |
|---|
protected ConfigurationObjectEditorHelper getEditor()
public Configuration getConfiguration()
getConfiguration in interface ConfigurationModelContainerpublic boolean isConfigurationModel()
public ConfigurationID getConfigurationID()
getConfigurationID in interface ConfigurationModelContainerpublic java.util.Collection getAllObjects()
ConfigurationModelContainer
getAllObjects in interface ConfigurationModelContainerpublic java.util.Map getComponentTypes()
ConfigurationModelContainer
getComponentTypes in interface ConfigurationModelContainer
public ComponentTypeDefn getComponentTypeDefinition(ComponentTypeID typeID,
java.lang.String defnName)
ComponentTypeDefn for a give typeID and defnName.
getComponentTypeDefinition in interface ConfigurationModelContainertypeID - identifies the specific @link ComponentType to look fordefnName - idenfities the @link ComponentTypeDefn to look for
in the componentType.
public java.util.Collection getAllComponentTypeDefinitions(ComponentTypeID typeID)
ConfigurationModelContainerComponentTypeDefinitions for
the request component type
- Specified by:
getAllComponentTypeDefinitions in interface ConfigurationModelContainer
- Returns:
- Collection of ComponentTypeDefinitions
public ComponentType getComponentType(java.lang.String fullName)
ConfigurationModelContainer
getComponentType in interface ConfigurationModelContainerpublic java.util.Properties getDefaultPropertyValues(ComponentTypeID componentTypeID)
ConfigurationModelContainer
getDefaultPropertyValues in interface ConfigurationModelContainerpublic java.util.Collection getHosts()
ConfigurationModelContainerHost.
These are all the hosts defined in this configuration.
getHosts in interface ConfigurationModelContainerpublic Host getHost(java.lang.String fullName)
ConfigurationModelContainer
getHost in interface ConfigurationModelContainerpublic java.util.Collection getConnectionPools()
ConfigurationModelContainerResourceDescriptor.
These are all the hosts defined in this configuration.
getConnectionPools in interface ConfigurationModelContainerpublic ProductType getProductType(java.lang.String name)
ConfigurationModelContainerProductType based on the specified name.
getProductType in interface ConfigurationModelContainerpublic java.util.Collection getProductTypes()
ConfigurationModelContainerProductType.
These are all the hosts defined in this configuration.
getProductTypes in interface ConfigurationModelContainerpublic SharedResource getResource(java.lang.String resourceName)
getResource in interface ConfigurationModelContainerpublic java.util.Collection getResources()
getResources in interface ConfigurationModelContainer
public ConfigurationModelContainer copyAs(ConfigurationID configID)
throws ConfigurationException
copyAs in interface ConfigurationModelContainerConfigurationException
public void setComponentTypes(java.util.Map newCompTypes)
throws ConfigurationLockException
ConfigurationLockException
public void setProductTypes(java.util.Collection newProdTypes)
throws ConfigurationLockException
ConfigurationLockExceptionpublic void setResources(java.util.Map theResources)
public void setResources(java.util.Collection theResources)
public void addComponentType(ComponentType type)
public void addProductType(ProductType type)
public void addResource(SharedResource rd)
public void addObjects(java.util.Collection objects)
throws ConfigurationException
ConfigurationException
public void addObject(java.lang.Object obj)
throws ConfigurationException
ConfigurationException
public void setConfigurationObjects(java.util.Collection objects)
throws ConfigurationException
ConfigurationException
public void remove(BaseID objID)
throws ConfigurationException
ConfigurationExceptionpublic java.lang.Object clone()
clone in interface ConfigurationModelContainerclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||