|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configuration
Configuration represents deployable components (e.g., service and vm components), components definitions, 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 | |
---|---|
static java.lang.String |
COMPONENT_TYPE_NAME
|
static ComponentTypeID |
CONFIG_COMPONENT_TYPE_ID
|
static java.lang.String |
NEXT_STARTUP
|
static ConfigurationID |
NEXT_STARTUP_ID
These configuration ID's can be used to determine which Configuration a ConfigurationID represents using equals. |
Method Summary | |
---|---|
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 for 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()
Returns a Map of the component definitions that have been created for this configuration. |
java.util.Collection |
getComponentObjectDependencies(BaseID componentObjectID)
Returns a Collection of component objects that are dependent on the
specified component object. |
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 componentDefnID)
Returns a Collection of deployed components that have been deployed for
that specified component definition. |
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 |
getDeployedServicesForVM(VMComponentDefn vm)
Returns a Collection of DeployedComponents that
represent services deployed on the indicated deployed VM |
java.util.Collection |
getDeployedServicesForVM(VMComponentDefnID vmComponentID)
This method is technically incorrect, because deployed services should be returned for the deployed vm that they are deployed to, not the vm component definition which may itself be deployed many times. |
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. |
ConfigurationInfo |
getInfo()
Returns the ConfigurationInfo that provides basic information
about this configuration. |
LogConfiguration |
getLogConfiguration()
Returns the LogConfiguration |
java.lang.String |
getName()
Returns the name |
java.util.Properties |
getProperties()
Returns a UnmodifiableProperties object containing the current configuration properties. |
java.lang.String |
getProperty(java.lang.String name)
Returns the property value for the specified property name. |
ServiceComponentDefn |
getServiceComponentDefn(ComponentDefnID defnID)
Returns a ServiceComponentDefn |
ServiceComponentDefn |
getServiceComponentDefn(java.lang.String name)
Returns a ServiceComponentDefn based on the service 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 |
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 |
isReleased()
Returns a boolean true if the configuration is released and ready for deployment. |
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 |
---|
clone, getFullName, getID |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final java.lang.String NEXT_STARTUP
static final ConfigurationID NEXT_STARTUP_ID
static final java.lang.String COMPONENT_TYPE_NAME
static final ComponentTypeID CONFIG_COMPONENT_TYPE_ID
Method Detail |
---|
java.lang.String getName()
ComponentObject
getName
in interface BaseObject
getName
in interface ComponentObject
getFullName
ConfigurationInfo getInfo()
ConfigurationInfo
that provides basic information
about this configuration.
java.util.Properties getProperties()
UnmodifiableProperties
object containing the current configuration properties.
getProperties
in interface ComponentObject
java.lang.String getProperty(java.lang.String name)
getProperty
in interface ComponentObject
name
- of the property value to obtain
java.util.Map getComponentDefns()
Map
of the component definitions that have been created for this configuration.
ComponentDefn getComponentDefn(ComponentDefnID componentID)
componentID
- ID of the ComponentDefn to retrieve from
this configuration object
java.util.Collection getComponentDefnIDs(ComponentTypeID componentTypeID)
componentTypeID
- ComponentTypeID of desired ComponentDefns
contained in this Configuration
getComponentDefn(com.metamatrix.common.config.api.ComponentDefnID)
method to retrieve the full
ComponentDefn objectjava.util.Properties getDependentPropsForComponent(BaseID componentObjectID)
componentObjectID
- is the component object for which all properties it inherits will be returned
getAllPropertiesForComponent(com.metamatrix.common.namedobject.BaseID)
java.util.Properties getAllPropertiesForComponent(BaseID componentObjectID)
componentObjectID
- is the id for the component object which all properties will be returned.
getDependentPropsForComponent
java.util.Collection getDeployedComponents()
Collection
of deployed components, keyed by the component id.
java.util.Collection getDeployedComponents(ComponentDefnID componentDefnID)
Collection
of deployed components that have been deployed for
that specified component definition.
componentDefnID
- is the definition that has been deployed
DeployedComponent getDeployedComponent(DeployedComponentID deployedComponentID)
deployedComponentID
- for the deployed component
VMComponentDefn getVMForHost(VMComponentDefnID vmID, HostID hostID)
vmID
- identifies the VM definition that was deployedhostID
- is the host the VM was deployed to.
VMComponentDefn getVMForHost(java.lang.String hostname, java.lang.String processName)
vmID
- identifies the VM definition that was deployedhostID
- is the host the VM was deployed to.
DeployedComponent getDeployedServiceForVM(ServiceComponentDefnID serviceID, VMComponentDefn vmComponent)
serviceID
- identifies the service definition that was deployedvmDeployedComponent
- is the deployed VM the service was deployed to.
DeployedComponent getDeployedServiceForVM(ServiceComponentDefnID serviceID, VMComponentDefnID vmID, HostID hostID)
serviceID
- identifies the service definition that was deployedvmID
- is the VM the service was deployed to.hostID
- is the Host the service was deployed to.
java.util.Collection getVMsForHost(java.lang.String name)
Collection
of deployed components that are VM's deployed
on the specified host name
name
- of the Host the vm's were deployed on
java.util.Collection getVMsForHost(HostID id)
Collection
of type DeployeComponent
that
represent VMs.
id
- of the Host the vm's were deployed on
java.util.Collection getHostIDs()
Collection
of type HostID
that were deployed for this configuration.
java.util.Collection getDeployedServicesForVM(VMComponentDefnID vmComponentID)
java.util.Collection getDeployedServicesForVM(VMComponentDefn vm)
Collection
of DeployedComponents that
represent services deployed on the indicated deployed VM
vm
- component represents the deployed vm for which the services
have been deployed.
java.util.Collection getComponentObjectDependencies(BaseID componentObjectID)
Collection
of component objects that are dependent on the
specified component object.
componentObjectID
- to check for dependencies
java.util.Collection getHosts()
Collection
of type Host
that exist for this configuration.
java.util.Collection getConnectorBindings()
Collection
of type ConnectorBinding
that exist for this configuration.
java.util.Collection getAuthenticationProviders()
Collection
of type AuthenticationProvider
that exist for this configuration.
AuthenticationProvider getAuthenticationProvider(java.lang.String name)
AuthenticationProvider
for the specified name.
name
-
AuthenticationProvider getAuthenticationProvider(ComponentDefnID componentID)
AuthenticationProvider
for the specified componentID.
componentID
-
ConnectorBinding getConnectorBinding(java.lang.String name)
ConnectorBinding
based on the specified name.
ConnectorBinding getConnectorBindingByRoutingID(java.lang.String routingID)
ConnectorBinding
based on the specified routing ID..
ConnectorBinding getConnectorBinding(ComponentDefnID componentID)
ConnectorBinding
based on the specified compoentID
Host getHost(java.lang.String hostName)
Host
for the specified host name
ServiceComponentDefn getServiceComponentDefn(ComponentDefnID defnID)
ServiceComponentDefn
ServiceComponentDefn getServiceComponentDefn(java.lang.String name)
ServiceComponentDefn
based on the service name.
java.util.Collection getServiceComponentDefns()
Collection
of type ServiceComponentDefn
that represent
all the ServiceComponentDefn defined.
ServiceComponentDefn
VMComponentDefn getVMComponentDefn(ComponentDefnID componentID)
VMComponentDefn
java.util.Collection getVMComponentDefns()
Collection
of type VMComponentDefn
that represent
all the VMComponentDefn defined.
VMComponentDefn
LogConfiguration getLogConfiguration()
LogConfiguration
boolean isDeployed()
boolean isLocked()
boolean isReleased()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |