|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.namedobject.BasicObject
com.metamatrix.common.config.model.BasicComponentObject
com.metamatrix.common.config.model.BasicConfiguration
public class BasicConfiguration
Configuration represents a single named set of deployable components (e.g., service and system components), a deployed set of components, global properties, and additional information. Once the configuration is flagged as "Released", it is then available to be deployed. Once it is flagged as "Deployed", it cannot be changed. The configuration must be versioned, and then changes can be made to the new versioned copy.
| Field Summary |
|---|
| Fields inherited from interface com.metamatrix.common.config.api.Configuration |
|---|
COMPONENT_TYPE_NAME, CONFIG_COMPONENT_TYPE_ID, NEXT_STARTUP, NEXT_STARTUP_ID, STARTUP, STARTUP_ID |
| Constructor Summary | |
|---|---|
BasicConfiguration(ConfigurationInfo configInfo,
ComponentTypeID typeID)
Construct a new Configuration using the name and component type; |
|
| Method Summary | |
|---|---|
void |
addComponentDefn(ComponentDefn component)
Add a component to list of available components that can be deployed for this configuration. |
void |
addDeployedComponent(DeployedComponent component)
Add a Component to the list of deployed components. |
void |
addHost(Host component)
|
java.lang.Object |
clone()
Return a deep cloned instance of this object. |
boolean |
doesExist(ComponentDefnID componentID)
|
java.util.Properties |
getAllPropertiesForComponent(BaseID componentObjectID)
Returns the all properites for the specified component object. |
AuthenticationProvider |
getAuthenticationProvider(ComponentDefnID componentID)
Returns a AuthenticationProvider for the specified componentID. |
AuthenticationProvider |
getAuthenticationProvider(java.lang.String name)
Returns a AuthenticationProvider based on the specified name. |
java.util.Collection |
getAuthenticationProviders()
Returns a Collection of type AuthenticationProvider that exist for this configuration. |
ComponentDefn |
getComponentDefn(ComponentDefnID componentID)
This method returns a ComponentDefn implementation, given a ComponentDefnID. |
java.util.Collection |
getComponentDefnIDs(ComponentTypeID componentTypeID)
Returns a Collection of ComponentDefnID objects that are of the indicated type. |
java.util.Map |
getComponentDefns()
return a clone of the Map of ComponentDefns so that no one can add directly to this objects Map of component definitions |
java.util.Collection |
getComponentObjectDependencies(BaseID componentObjectID)
Returns a Collection of component objects that are dependent on the
specified component object. |
ResourceDescriptor |
getConnectionPool(ComponentDefnID componentID)
|
ConnectorBinding |
getConnectorBinding(ComponentDefnID componentID)
Returns a ConnectorBinding based on the specified compoentID |
ConnectorBinding |
getConnectorBinding(java.lang.String name)
Returns a ConnectorBinding based on the specified name. |
ConnectorBinding |
getConnectorBindingByRoutingID(java.lang.String routingID)
Returns a ConnectorBinding based on the specified routing ID.. |
java.util.Collection |
getConnectorBindings()
Returns a Collection of type ConnectorBinding that exist for this configuration. |
java.util.Properties |
getDependentPropsForComponent(BaseID componentObjectID)
Returns only the dependent properites for the specified component object. |
DeployedComponent |
getDeployedComponent(DeployedComponentID deployedComponentID)
Returns the deployed component for the specified id |
java.util.Collection |
getDeployedComponents()
Returns a Collection of deployed components, keyed by the component id. |
java.util.Collection |
getDeployedComponents(ComponentDefnID componentID)
Returns a Collection of deployed components that have been deployed for
that specified component definition. |
java.util.Collection |
getDeployedComponents(ComponentDefnID componentDefnID,
ProductServiceConfigID pscID)
Returns a Collection of deployed components that have been deployed for
that specified component definition and belong to a specific ProductServiceConfiguration. |
DeployedComponent |
getDeployedServiceForVM(ServiceComponentDefnID serviceID,
VMComponentDefn vmComponent)
Returns a deployed Service component that was deployed on the specified VM. |
DeployedComponent |
getDeployedServiceForVM(ServiceComponentDefnID serviceID,
VMComponentDefnID vmID,
HostID hostID)
Returns a deployed Service component that was deployed on the specified VM and Host. |
java.util.Collection |
getDeployedServices(VMComponentDefn vm,
ProductServiceConfig psc)
Returns a Collection of DeployedComponents that
represent ServiceComponentDefns deployed on the indicated deployed VM,
and originating from the indicated ProductServiceConfig |
java.util.Collection |
getDeployedServicesForVM(VMComponentDefn vm)
Returns a Collection of DeployedComponents that
represent services deployed on the indicated deployed VM |
java.util.Collection |
getDeployedServicesForVM(VMComponentDefnID vmComponentID)
Deprecated. As of v2.0, replaced by #getDeployedServicesForVM(DeployedComponent) |
Host |
getHost(ComponentDefnID hostID)
|
Host |
getHost(java.lang.String hostName)
Returns a Host for the specified host name |
java.util.Collection |
getHostIDs()
Returns a Collection of type HostID that were deployed for this configuration. |
java.util.Collection |
getHosts()
Returns a Collection of type Host that exist for this configuration. |
BaseID |
getID()
Get the ID for this metadata object. |
ConfigurationInfo |
getInfo()
Returns the ConfigurationInfo that provides basic information
about this configuration. |
LogConfiguration |
getLogConfiguration()
Returns a clone of this Configuration's LogConfiguration (the LogConfiguration can only be changed through a com.metamatrix.common.config.api.service.ConfigurationObjectEditor). |
java.lang.String |
getName()
Override this method to obtain the name from the ConfigurationInfo. |
java.util.Collection |
getProductServiceConfigIDs(ProductTypeID productTypeID)
Deprecated. As of GG, please use getComponentDefnIDs(ComponentTypeID) |
ProductServiceConfig |
getPSC(ComponentDefnID componentID)
Returns the ProductServiceConfig for the specificed id. |
java.util.Collection |
getPSCs()
Returns a Collection of type ProductServiceConfig that represent
all the ProductServiceConfig defined. |
java.util.Collection |
getPSCsForServiceDefn(ServiceComponentDefnID serviceDefnID)
Returns all the PSC ID's that
contains the indicated ServiceComponentDefnID,
or returns an emtpy collection if none is found. |
java.util.Collection |
getPSCsForVM(VMComponentDefn vm)
Returns a Collection of ProductServiceConfig objects which have ServiceComponentDefns which are deployed to the indicated VM. |
ResourceDescriptor |
getResourcePool(java.lang.String poolName)
Returns a ResourceDescriptor for the specified descriptorName |
java.util.Collection |
getResourcePools()
Returns a Collection of type ComponentType that represent
all the ComponentTypes defined. |
ServiceComponentDefn |
getServiceComponentDefn(ComponentDefnID componentID)
Returns a ServiceComponentDefn |
ServiceComponentDefn |
getServiceComponentDefn(java.lang.String name)
Returns a ConnectorBinding based on the specified name. |
java.util.Collection |
getServiceComponentDefns()
Returns a Collection of type ServiceComponentDefn that represent
all the ServiceComponentDefn defined. |
VMComponentDefn |
getVMComponentDefn(ComponentDefnID componentID)
Returns a VMComponentDefn |
java.util.Collection |
getVMComponentDefns()
Returns a Collection of type VMComponentDefn that represent
all the VMComponentDefn defined. |
VMComponentDefn |
getVMDefn(ComponentDefnID componentID)
|
VMComponentDefn |
getVMForHost(java.lang.String hostname,
java.lang.String processName)
Returns a deployed VM component that was deployed on the specified host. |
VMComponentDefn |
getVMForHost(VMComponentDefnID vmID,
HostID hostID)
Returns a deployed VM component that was deployed on the specified host. |
java.util.Collection |
getVMsForHost(HostID id)
Returns a Collection of type DeployeComponent that
represent VMs. |
java.util.Collection |
getVMsForHost(java.lang.String name)
Returns a Collection of deployed components that are VM's deployed
on the specified host name |
boolean |
isDeployed()
Returns a boolean true if the configuration is deployed for current use. |
boolean |
isLocked()
Returns a boolean true if the configuration is locked for current modifications. |
boolean |
isNextStartUp()
Does this config represent the Next Startup config? |
boolean |
isPSCDeployed(ProductServiceConfigID pscID)
Returns true if the PSC is deployed to any host. |
boolean |
isReleased()
Returns a boolean true if the configuration is released and ready for deployment. |
boolean |
isStartUp()
Does this config represent the Startup config? |
void |
removeComponentObject(ComponentObjectID componentID)
Remove the component from this list of available components that can be deployed. |
void |
setComponentDefns(java.util.Map components)
|
void |
setConnectors(java.util.Map components)
|
void |
setDeployedComponents(java.util.Map components)
|
void |
setHosts(java.util.Map newHosts)
|
| Methods inherited from class com.metamatrix.common.config.model.BasicComponentObject |
|---|
accept, getComponentTypeID, getCreatedBy, getCreatedDate, getCreatedDateString, getDescription, getLastChangedBy, getLastChangedDate, getLastChangedDateString, getProperties, getProperty, isDependentUpon, setCreatedBy, setCreatedDate, setDescription, setLastChangedBy, setLastChangedDate, toString |
| Methods inherited from class com.metamatrix.common.namedobject.BasicObject |
|---|
compareTo, equals, getFullName, hashCode, setID |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.metamatrix.common.config.api.Configuration |
|---|
getProperties, getProperty |
| Methods inherited from interface com.metamatrix.common.config.api.ComponentObject |
|---|
accept, getComponentTypeID, getCreatedBy, getCreatedDate, getDescription, getLastChangedBy, getLastChangedDate, isDependentUpon |
| Methods inherited from interface com.metamatrix.common.namedobject.BaseObject |
|---|
getFullName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public BasicConfiguration(ConfigurationInfo configInfo,
ComponentTypeID typeID)
| Method Detail |
|---|
public BaseID getID()
BasicObject
getID in interface BaseObjectgetID in class BasicObjectpublic java.lang.String getName()
getName in interface ComponentObjectgetName in interface ConfigurationgetName in interface BaseObjectgetName in class BasicObjectgetFullNamepublic boolean isNextStartUp()
public boolean isStartUp()
public ConfigurationInfo getInfo()
ConfigurationConfigurationInfo that provides basic information
about this configuration.
getInfo in interface Configurationpublic java.util.Map getComponentDefns()
getComponentDefns in interface Configurationpublic boolean doesExist(ComponentDefnID componentID)
public ComponentDefn getComponentDefn(ComponentDefnID componentID)
Configuration
getComponentDefn in interface ConfigurationcomponentID - ID of the ComponentDefn to retrieve from
this configuration object
public VMComponentDefn getVMComponentDefn(ComponentDefnID componentID)
ConfigurationVMComponentDefn
getVMComponentDefn in interface Configurationpublic VMComponentDefn getVMDefn(ComponentDefnID componentID)
public AuthenticationProvider getAuthenticationProvider(java.lang.String name)
AuthenticationProvider based on the specified name.
getAuthenticationProvider in interface Configurationpublic AuthenticationProvider getAuthenticationProvider(ComponentDefnID componentID)
ConfigurationAuthenticationProvider for the specified componentID.
getAuthenticationProvider in interface Configurationpublic ProductServiceConfig getPSC(ComponentDefnID componentID)
Configuration
getPSC in interface ConfigurationcomponentID - is the id for specific ProductServiceConfig
public ResourceDescriptor getConnectionPool(ComponentDefnID componentID)
public ConnectorBinding getConnectorBinding(ComponentDefnID componentID)
ConfigurationConnectorBinding based on the specified compoentID
getConnectorBinding in interface Configurationpublic ConnectorBinding getConnectorBinding(java.lang.String name)
ConnectorBinding based on the specified name.
getConnectorBinding in interface Configurationpublic ConnectorBinding getConnectorBindingByRoutingID(java.lang.String routingID)
ConnectorBinding based on the specified routing ID..
getConnectorBindingByRoutingID in interface Configurationpublic ServiceComponentDefn getServiceComponentDefn(ComponentDefnID componentID)
ConfigurationServiceComponentDefn
getServiceComponentDefn in interface Configurationpublic ServiceComponentDefn getServiceComponentDefn(java.lang.String name)
ConnectorBinding based on the specified name.
getServiceComponentDefn in interface Configurationpublic java.util.Collection getComponentDefnIDs(ComponentTypeID componentTypeID)
getComponentDefnIDs in interface ConfigurationcomponentTypeID - ComponentTypeID of desired ComponentDefns
contained in this Configuration
getComponentDefn(com.metamatrix.common.config.api.ComponentDefnID) method to retrieve the full
ComponentDefn objectpublic java.util.Collection getProductServiceConfigIDs(ProductTypeID productTypeID)
getComponentDefnIDs(ComponentTypeID)
productTypeID - of product type
public java.util.Properties getDependentPropsForComponent(BaseID componentObjectID)
Configuration
getDependentPropsForComponent in interface ConfigurationcomponentObjectID - is the component object for which all properties it inherits will be returned
Configuration.getAllPropertiesForComponent(com.metamatrix.common.namedobject.BaseID)public java.util.Properties getAllPropertiesForComponent(BaseID componentObjectID)
Configuration
getAllPropertiesForComponent in interface ConfigurationcomponentObjectID - is the id for the component object which all properties will be returned.
getDependentPropsForComponentpublic java.util.Collection getDeployedComponents()
ConfigurationCollection of deployed components, keyed by the component id.
getDeployedComponents in interface Configurationpublic DeployedComponent getDeployedComponent(DeployedComponentID deployedComponentID)
Configuration
getDeployedComponent in interface ConfigurationdeployedComponentID - for the deployed component
public java.util.Collection getDeployedComponents(ComponentDefnID componentID)
ConfigurationCollection of deployed components that have been deployed for
that specified component definition.
getDeployedComponents in interface ConfigurationcomponentID - is the definition that has been deployed
public boolean isPSCDeployed(ProductServiceConfigID pscID)
Configuration
isPSCDeployed in interface Configuration
public java.util.Collection getDeployedComponents(ComponentDefnID componentDefnID,
ProductServiceConfigID pscID)
ConfigurationCollection of deployed components that have been deployed for
that specified component definition and belong to a specific ProductServiceConfiguration.
There can be multiple deployed components because the ProductServiceConfig could be
deployed to multiple VMs and/or Hosts.
getDeployedComponents in interface ConfigurationcomponentDefnID - is the definition that has been deployedpscID - is the ProductServiceConfig for which the component belongs
public VMComponentDefn getVMForHost(VMComponentDefnID vmID,
HostID hostID)
Configuration
getVMForHost in interface ConfigurationvmID - identifies the VM definition that was deployedhostID - is the host the VM was deployed to.
public DeployedComponent getDeployedServiceForVM(ServiceComponentDefnID serviceID,
VMComponentDefn vmComponent)
Configuration
getDeployedServiceForVM in interface ConfigurationserviceID - identifies the service definition that was deployed
public DeployedComponent getDeployedServiceForVM(ServiceComponentDefnID serviceID,
VMComponentDefnID vmID,
HostID hostID)
Configuration
getDeployedServiceForVM in interface ConfigurationserviceID - identifies the service definition that was deployedvmID - is the VM the service was deployed to.hostID - is the Host the service was deployed to.
public java.util.Collection getVMsForHost(java.lang.String name)
ConfigurationCollection of deployed components that are VM's deployed
on the specified host name
getVMsForHost in interface Configurationname - of the Host the vm's were deployed on
public VMComponentDefn getVMForHost(java.lang.String hostname,
java.lang.String processName)
Configuration
getVMForHost in interface Configurationpublic java.util.Collection getVMsForHost(HostID id)
Collection of type DeployeComponent that
represent VMs.
getVMsForHost in interface Configurationid - of the Host the vm's were deployed on
public java.util.Collection getHostIDs()
Collection of type HostID that were deployed for this configuration.
getHostIDs in interface Configurationpublic java.util.Collection getConnectorBindings()
ConfigurationCollection of type ConnectorBinding that exist for this configuration.
getConnectorBindings in interface Configurationpublic java.util.Collection getAuthenticationProviders()
ConfigurationCollection of type AuthenticationProvider that exist for this configuration.
getAuthenticationProviders in interface Configurationpublic java.util.Collection getHosts()
ConfigurationCollection of type Host that exist for this configuration.
getHosts in interface Configurationpublic Host getHost(ComponentDefnID hostID)
public Host getHost(java.lang.String hostName)
Host for the specified host name
getHost in interface Configurationpublic java.util.Collection getDeployedServicesForVM(VMComponentDefnID vmComponentID)
#getDeployedServicesForVM(DeployedComponent)
getDeployedServicesForVM in interface Configurationpublic java.util.Collection getDeployedServicesForVM(VMComponentDefn vm)
ConfigurationCollection of DeployedComponents that
represent services deployed on the indicated deployed VM
getDeployedServicesForVM in interface Configurationvm - component represents the deployed vm for which the services
have been deployed.
public java.util.Collection getDeployedServices(VMComponentDefn vm,
ProductServiceConfig psc)
Collection of DeployedComponents that
represent ServiceComponentDefns deployed on the indicated deployed VM,
and originating from the indicated ProductServiceConfig
getDeployedServices in interface ConfigurationdeployedVM - represents the deployed vm for which the services
have been deployed.psc - ProductServiceConfig which the desired deployed
ServiceComponentDefns belong to
InvalidArgumentException - if either parameter is nullpublic java.util.Collection getPSCsForVM(VMComponentDefn vm)
getPSCsForVM in interface ConfigurationdeployedVM - DeployedComponent representing a deployed
VMComponentDefn
InvalidArgumentException - if the parameter is nullpublic java.util.Collection getPSCsForServiceDefn(ServiceComponentDefnID serviceDefnID)
ConfigurationPSC ID's that
contains the indicated ServiceComponentDefnID,
or returns an emtpy collection if none is found. This is a potentially expensive
method call, and involves iterating through all component defns
of this Configuration and looking for the right one.
getPSCsForServiceDefn in interface ConfigurationserviceDefnID - ID of the ServiceComponentDefn, which must exist
in this Configuration instance
PSCID that contain the
ServiceComponentDefnID, or empty collection if none is foundpublic java.util.Collection getComponentObjectDependencies(BaseID componentObjectID)
ConfigurationCollection of component objects that are dependent on the
specified component object.
getComponentObjectDependencies in interface ConfigurationcomponentObjectID - to check for dependencies
public java.util.Collection getResourcePools()
Collection of type ComponentType that represent
all the ComponentTypes defined.
ComponentType
ConfigurationException - if an error occurred within or during communication with the Configuration Service.#ComponentTypepublic java.util.Collection getPSCs()
Collection of type ProductServiceConfig that represent
all the ProductServiceConfig defined.
getPSCs in interface ConfigurationProductServiceConfig
ConfigurationException - if an error occurred within or during communication with the Configuration Service.#ProductServiceConfigpublic java.util.Collection getServiceComponentDefns()
Collection of type ServiceComponentDefn that represent
all the ServiceComponentDefn defined.
getServiceComponentDefns in interface ConfigurationServiceComponentDefn
ConfigurationException - if an error occurred within or during communication with the Configuration Service.#ProductServiceConfigpublic java.util.Collection getVMComponentDefns()
Collection of type VMComponentDefn that represent
all the VMComponentDefn defined.
getVMComponentDefns in interface ConfigurationVMComponentDefn
ConfigurationException - if an error occurred within or during communication with the Configuration Service.#ProductServiceConfigpublic ResourceDescriptor getResourcePool(java.lang.String poolName)
ResourceDescriptor for the specified descriptorName
descriptorName - is the name of the resource descriptor to return
ConfigurationException - if an error occurred within or during communication with the Configuration Service.public LogConfiguration getLogConfiguration()
Returns a clone of this Configuration's LogConfiguration
(the LogConfiguration can only be changed through a
com.metamatrix.common.config.api.service.ConfigurationObjectEditor).
getLogConfiguration in interface Configurationcom.metamatrix.common.config.api.service.ConfigurationObjectEditorpublic boolean isDeployed()
Configuration
isDeployed in interface Configurationpublic boolean isLocked()
Configuration
isLocked in interface Configurationpublic boolean isReleased()
Configuration
isReleased in interface Configurationpublic void addComponentDefn(ComponentDefn component)
public void addDeployedComponent(DeployedComponent component)
Component to the list of deployed components.
public void addHost(Host component)
public void removeComponentObject(ComponentObjectID componentID)
public void setDeployedComponents(java.util.Map components)
public void setConnectors(java.util.Map components)
public void setComponentDefns(java.util.Map components)
public void setHosts(java.util.Map newHosts)
public java.lang.Object clone()
BaseObject
clone in interface BaseObjectclone in class BasicObjectDefaults cannot be cloned).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||