|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationObjectEditor
Field Summary |
---|
Fields inherited from interface com.metamatrix.common.actions.ObjectEditor |
---|
ADD, REMOVE, SET |
Method Summary | |
---|---|
void |
addAuthenticationProvider(Configuration configuration,
AuthenticationProvider provider)
|
ComponentObject |
addProperty(ComponentObject t,
java.lang.String name,
java.lang.String value)
Adds the property value for the specified name on the ComponentObject . |
ProductServiceConfig |
addServiceComponentDefn(Configuration configuration,
ProductServiceConfig psc,
ServiceComponentDefnID serviceComponentDefnID)
Adds an existing ServiceComponentDefn to indicated PSC; the ServiceComponentDefn is assumed to already belong to the indicated Configuration. |
ProductServiceConfig |
addServiceComponentDefn(ProductServiceConfig psc,
ServiceComponentDefnID serviceComponentDefnID)
Adds an existing ServiceComponentDefn to indicated PSC. |
ProductType |
addServiceComponentType(ProductType productType,
ComponentType serviceComponentType)
Adds the service type represented by the indicated ComponentType to the list of legal service types of the indicated ProductType. |
AuthenticationProvider |
createAuthenticationProviderComponent(Configuration configuration,
AuthenticationProvider original,
java.lang.String newName)
This method will create a provider component from the original provider and give a new name. |
AuthenticationProvider |
createAuthenticationProviderComponent(ConfigurationID configurationID,
AuthenticationProvider original,
java.lang.String newName)
This method will create a provider component from the original provider and give a new name. |
AuthenticationProvider |
createAuthenticationProviderComponent(ConfigurationID configuID,
ComponentTypeID typeID,
java.lang.String descriptorName)
This method will create a provider component based on the specific component type ID |
ComponentType |
createComponentType(ComponentType componentType,
java.lang.String name)
Create a new ComponentType instance from a copy of the specified ComponentType. |
ComponentType |
createComponentType(int classTypeCode,
java.lang.String name,
ComponentTypeID parentID,
ComponentTypeID superID,
boolean deployable,
boolean monitored)
Create a new ComponentType instance with the specified name. |
ComponentTypeDefn |
createComponentTypeDefn(ComponentTypeID typeID,
PropertyDefinition propertyDefinition)
Deprecated. as of v 2.0 beta 1, use createComponentTypeDefn(ComponentTypeID, PropertyDefinition, boolean) |
ComponentTypeDefn |
createComponentTypeDefn(ComponentTypeID typeID,
PropertyDefinition propertyDefinition,
boolean isEffectiveImmediately)
Create a new ComponentTypeDefn instance with the specified name. |
ComponentTypeDefn |
createComponentTypeDefn(ComponentType type,
PropertyDefinition propertyDefinition)
Deprecated. as of v 2.0 beta 1, use createComponentTypeDefn(ComponentType, PropertyDefinition, boolean) |
ComponentTypeDefn |
createComponentTypeDefn(ComponentType type,
PropertyDefinition propertyDefinition,
boolean isEffectiveImmediately)
Create a new ComponentTypeDefn and update the ComponentType with the new defintion. |
void |
createConfiguration(ConfigurationID configID,
java.util.Collection configObjects)
This method is used only for importing a complete configurtion model. |
Configuration |
createConfiguration(Configuration original,
java.lang.String newName)
Copy-create method - creates a deep-copy of the original configuration, with the new name. |
Configuration |
createConfiguration(java.lang.String configurationName)
Create a new Configuration instance with the specified name ID. |
Configuration |
createConfiguration(java.lang.String configurationName,
java.util.Date creationDate,
java.util.Date lastChangedDate)
Create a new Configuration instance with the specified name ID, and the specified Date parameters. |
ConnectorBinding |
createConnectorComponent(Configuration configuration,
ComponentTypeID typeID,
java.lang.String componentName,
ProductServiceConfigID pscID)
Creates a new ConnectorBinding for a given Configuration and ProductServiceConfig; also automatically "deploys" the service anywhere that this PSC is already deployed, by creating the necessary DeployedComponents (this will only work if the PSC parameter belongs to the Configuration parameter). |
ConnectorBinding |
createConnectorComponent(ConfigurationID configuID,
ComponentTypeID typeID,
java.lang.String descriptorName,
java.lang.String routingUUID)
This method will create a connector component based on the specific component type ID |
ConnectorBinding |
createConnectorComponent(ConfigurationID configurationID,
ConnectorBinding original,
java.lang.String newName,
java.lang.String routingUUID)
This method will create a connector component from the original connector and give a new name. |
DeployedComponent |
createDeployedServiceComponent(java.lang.String instanceName,
Configuration configuration,
HostID hostId,
VMComponentDefnID vmId,
ServiceComponentDefn serviceComponentDefn,
ProductServiceConfigID pscID)
Create a new DeployedComponent instance respresenting a deployed Service. |
DeployedComponent |
createDeployedServiceComponent(java.lang.String instanceName,
ConfigurationID configurationID,
HostID hostId,
VMComponentDefnID vmId,
ServiceComponentDefnID serviceComponentDefnID,
ProductServiceConfigID pscID,
ComponentTypeID serviceComponentTypeID)
Create a new DeployedComponent instance respresenting a deployed Service. |
Host |
createHost(ConfigurationID configurationID,
java.lang.String hostName)
|
Host |
createHost(Configuration configuration,
java.lang.String hostName)
|
Host |
createHost(java.lang.String hostName)
Create a new Host instance with the specified ID. |
ProductServiceConfig |
createProductServiceConfig(ConfigurationID configurationID,
ProductTypeID productTypeID,
java.lang.String componentName)
Allows the creation of an empty ProductServiceConfig entirely from ID objects. |
ProductServiceConfig |
createProductServiceConfig(Configuration configuration,
ProductServiceConfig originalPSC,
java.lang.String newName)
Copy-creation method, creates a new PSC from the given PSC, with the new given name, and inserts it into the given Configuration. |
ProductServiceConfig |
createProductServiceConfig(Configuration configuration,
ProductTypeID productTypeID,
java.lang.String componentName)
Allows the creation of an empty ProductServiceConfig entirely from ID objects. |
ProductType |
createProductType(java.lang.String name,
boolean deployable,
boolean monitored)
Create a new ProductType instance with the specified name. |
ProductType |
createProductType(java.lang.String name,
java.util.Collection serviceComponentTypes,
boolean deployable,
boolean monitored)
Create a new ProductType instance with the specified name. |
PropDefnAllowedValue |
createPropDefnAllowedValue(ComponentTypeDefn typeDefn,
PropertyDefinition propDefn,
java.lang.String value)
Create a new PropDefnAllowedValue that will be added to the modifiable (cloned) PropertyDefinition that was obtained from the ComponentTypeDefn. |
ResourceDescriptor |
createResourceDescriptor(Configuration configuration,
ComponentTypeID typeID,
java.lang.String descriptorName)
Create a new ResourceDescriptor Component Definition instance with a specified configuration |
ResourceDescriptor |
createResourceDescriptor(ConfigurationID configurationID,
ComponentTypeID typeID,
java.lang.String descriptorName)
Create a new ResourceDescriptor Component Definition instance with a specified configuration |
ServiceComponentDefn |
createServiceComponentDefn(Configuration configuration,
ComponentTypeID typeID,
java.lang.String componentName)
Create a new Service Component Definition instance with a specified configuration |
ServiceComponentDefn |
createServiceComponentDefn(Configuration configuration,
ComponentTypeID typeID,
java.lang.String componentName,
ProductServiceConfigID pscID)
Creates a new ServiceComponentDefn for a given Configuration and ProductServiceConfig; also automatically "deploys" the service anywhere that this PSC is already deployed, by creating the necessary DeployedComponents (this will only work if the PSC parameter belongs to the Configuration parameter). |
ServiceComponentDefn |
createServiceComponentDefn(Configuration configuration,
ComponentTypeID typeID,
java.lang.String componentName,
java.lang.String routingUUID)
Create a new Service Component Definition instance with a specified configuration |
ServiceComponentDefn |
createServiceComponentDefn(ConfigurationID configurationID,
ComponentTypeID typeID,
java.lang.String componentName)
Create a new Service Component Definition instance with a specified configuration |
ServiceComponentDefn |
createServiceComponentDefn(ConfigurationID configurationID,
ComponentTypeID typeID,
java.lang.String componentName,
java.lang.String routingUUID)
Create a new Service Component Definition instance with a specified configuration |
SharedResource |
createSharedResource(ComponentTypeID typeID,
java.lang.String resourceName)
Create a new SharedResource instance |
VMComponentDefn |
createVMComponentDefn(Configuration configuration,
HostID hostID,
ComponentTypeID typeID,
java.lang.String componentName)
Create a new VM Component Definition instance with a specified configuration |
VMComponentDefn |
createVMComponentDefn(ConfigurationID configurationID,
HostID hostID,
ComponentTypeID typeID,
java.lang.String componentName)
Create a new VM Component Definition instance with a specified configuration |
Configuration |
delete(ComponentObject target,
Configuration configuration)
Removes the component object from the specified configuration if no dependent objects exist and returns an updated configuration. |
Configuration |
delete(ComponentObject target,
Configuration configuration,
boolean deleteDependencies)
Removes the component object from the specified configuration if no dependent objects exist. |
void |
delete(ComponentType target)
Call to delete a component type and all its definitions. |
void |
delete(ComponentTypeDefn target,
ComponentType type)
Call to delete a ComponentTypeDefn and remove it from the ComponentType. |
void |
delete(Configuration target)
Call to delete a configuration, which is assumed to have no dependencies. |
void |
delete(Configuration target,
boolean deleteDependencies)
Deletes the configuration if there exist no dependent objects. |
void |
delete(ConfigurationID targetID)
Call to delete a configuration and all its dependencies. |
void |
delete(Host target)
Call to delete a host |
SharedResource |
delete(SharedResource target)
Deletes the shared resource. |
java.util.Collection |
deployProductServiceConfig(Configuration configuration,
ProductServiceConfig psc,
HostID hostId,
VMComponentDefnID vmId)
Deploys the ServiceComponentDefns indicated by the ProductServiceConfig, contained by the Configuration, onto the specified Host and VM. |
java.util.Collection |
deployServiceDefn(Configuration configuration,
ServiceComponentDefn serviceComponentDefn,
ProductServiceConfigID pscID)
Deploys a ServiceComponentDefn anywhere that it's PSC is already deployed. |
java.util.Properties |
getEditableProperties(ComponentObject t)
Returns a modifiable properties object for the specified ComponentObject. |
ComponentTypeDefn |
modifyComponentTypeDefn(ComponentTypeDefn original,
ComponentTypeDefn updated)
Updates the target ComponentTypeDefn with the updated PropertyDefinition . |
ComponentObject |
modifyProperties(ComponentObject t,
java.util.Properties props,
int command)
call modifyProperties |
ComponentObject |
removeProperty(ComponentObject t,
java.lang.String name)
Removes the property value for the specified name on the ComponentObject . |
ProductType |
removeServiceComponentType(ProductType productType,
ComponentType serviceComponentType)
Removes the service type represented by the indicated ComponentType from the list of legal service types of the indicated ProductType. |
ProductServiceConfig |
renamePSC(ProductServiceConfig psc,
java.lang.String name)
Change the name of a previously defined PSC. |
VMComponentDefn |
renameVM(VMComponentDefn vm,
java.lang.String name)
Change the name of a previously defined VM. |
void |
setBootStrapConfiguration(ConfigurationID configurationID)
Deprecated. as of v 2.0 beta 1, use setNextStartupConfiguration(com.metamatrix.common.config.api.ConfigurationID) |
ComponentObject |
setComponentType(ComponentObject t,
ComponentTypeID componentType)
Sets the component type on the specifice component object. |
ComponentType |
setComponentTypeDefinitions(ComponentType t,
java.util.Collection defns)
Set the list of ComponentTypeDefn s for a local ComponentType
object. |
ComponentObject |
setCreationChangedHistory(ComponentObject compObject,
java.lang.String createdBy,
java.lang.String creationDate)
|
ComponentType |
setCreationChangedHistory(ComponentType type,
java.lang.String createdBy,
java.lang.String creationDate)
|
java.util.Collection |
setEnabled(Configuration configuration,
ServiceComponentDefn serviceComponentDefn,
ProductServiceConfig psc,
boolean enabled,
boolean deleteDeployedComps)
Sets whether the indicated ServiceComponentDefn is enabled for deployment (when the PSC which contains it is deployed ) or not. |
ProductServiceConfig |
setEnabled(ServiceComponentDefnID serviceComponentDefnID,
ProductServiceConfig psc,
boolean enabled)
It simply modifies the ProductServiceConfig by setting the specified service enabled value and creates the necessary change object. |
ComponentType |
setIsDeployable(ComponentType t,
boolean newValue)
|
Configuration |
setIsDeployed(Configuration t,
boolean newValue)
|
ComponentType |
setIsDeprecated(ComponentType t,
boolean newValue)
|
ComponentType |
setIsMonitored(ComponentType t,
boolean newValue)
|
Configuration |
setIsReleased(Configuration t,
boolean newValue)
|
ComponentObject |
setLastChangedHistory(ComponentObject compObject,
java.lang.String lastChangedBy,
java.lang.String lastChangedDate)
|
ComponentType |
setLastChangedHistory(ComponentType type,
java.lang.String lastChangedBy,
java.lang.String lastChangedDate)
|
Configuration |
setLogConfiguration(Configuration t,
LogConfiguration logConfiguration)
Sets the LogConfiguration in effect for the Configuration |
void |
setNextStartupConfiguration(ConfigurationID configurationID)
Sets the system next startup configuration |
ComponentType |
setParentComponentTypeID(ComponentType t,
ComponentTypeID parentID)
Sets the parent component type, null is allowed; |
ComponentObject |
setProperty(ComponentObject t,
java.lang.String name,
java.lang.String value)
Set the property value for the specified name on the ComponentObject . |
ComponentTypeDefn |
setPropertyDefinition(ComponentTypeDefn t,
PropertyDefinition defn)
Set the PropertyDefinition on the ComponentTypeDefn |
void |
setRoutingUUID(ServiceComponentDefn serviceComponentDefn,
java.lang.String newRoutingUUID)
Sets this ServiceComponentDefn's String routing UUID. |
ComponentType |
setSuperComponentTypeID(ComponentType t,
ComponentTypeID superID)
Sets the super component type, null is allowed; |
ProductServiceConfig |
updateProductServiceConfig(Configuration config,
ProductServiceConfig psc,
java.util.Collection newServiceIDList)
This method will update a PSC by adding the new service list of ID's and removing the service ID's from the PSC that are not in the service list. |
Methods inherited from interface com.metamatrix.common.actions.ObjectEditor |
---|
getDestination, setDestination |
Method Detail |
---|
Host createHost(java.lang.String hostName)
hostName
- for the new Host (may not be null).
java.lang.IllegalArgumentException
- if the hostName is nullHost createHost(ConfigurationID configurationID, java.lang.String hostName)
Host createHost(Configuration configuration, java.lang.String hostName)
void createConfiguration(ConfigurationID configID, java.util.Collection configObjects)
Configuration createConfiguration(java.lang.String configurationName)
configurationName
- for the new configuration (may not be null).
java.lang.IllegalArgumentException
- if the configurationName is nullConfiguration createConfiguration(java.lang.String configurationName, java.util.Date creationDate, java.util.Date lastChangedDate)
createConfiguration(String)
configurationName
- for the new configuration (may not be null).creationDate
- Date the configuration was created.creationDate
- Date the configuration was last modified.
java.lang.IllegalArgumentException
- if the configurationName is nullConfiguration createConfiguration(Configuration original, java.lang.String newName)
Copy-create method - creates a deep-copy of the original configuration, with the new name. The new name cannot be the same as the original configuration's name.
All service component definitions, all deployed components, and all property values will also be copied. The copies will all retain their original short names; their full names will reflect the new configuration name.
ComponentType createComponentType(int classTypeCode, java.lang.String name, ComponentTypeID parentID, ComponentTypeID superID, boolean deployable, boolean monitored)
classTypeCode
- identifies the type of class this component type should representname
- is the name of the ComponentTypeparentID
- is the component type that is the parent, can be nullsuperID
- is the component type that is a super type of this component type, can be nulldeployable
- is a boolean indicating if the type can be deployed in a configurationmonitored
- is a boolean insdicating if the type is to be monitored
for type codes
ComponentType createComponentType(ComponentType componentType, java.lang.String name)
componentType
- is the original component type to copy fromname
- is the name of the ComponentType
ProductType createProductType(java.lang.String name, boolean deployable, boolean monitored)
createProductType(String, Collection, boolean, boolean)
to
also assign legal service types to this product type.
name
- is the name of the ProductTypedeployable
- is a boolean indicating if the type can be deployed in a configurationmonitored
- is a boolean insdicating if the type is to be monitored
ProductType createProductType(java.lang.String name, java.util.Collection serviceComponentTypes, boolean deployable, boolean monitored)
name
- is the name of the ProductTypeserviceComponentTypeIDs
- Collection of ComponentType objects which
indicate the service types that belong to this product typedeployable
- is a boolean indicating if the type can be deployed in a configurationmonitored
- is a boolean insdicating if the type is to be monitored
ComponentTypeDefn createComponentTypeDefn(ComponentType type, PropertyDefinition propertyDefinition, boolean isEffectiveImmediately)
type
- is the ComponentType the definition will be added topropertyDefinition
- are the attributes describing this definitionisEffectiveImmediately
- indicates that a change to a property
value for this definition can have an immediate effect (as opposed to
not taking effect until server reboots)
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullComponentTypeDefn createComponentTypeDefn(ComponentType type, PropertyDefinition propertyDefinition)
createComponentTypeDefn(ComponentType, PropertyDefinition, boolean)
ComponentTypeDefn createComponentTypeDefn(ComponentTypeID typeID, PropertyDefinition propertyDefinition, boolean isEffectiveImmediately)
typeID
- for the parent component type this definitions is used bypropertyDefinition
- are the attributes describing this definitionisEffectiveImmediately
- indicates that a change to a property
value for this definition can have an immediate effect (as opposed to
not taking effect until server reboots)
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullcreateComponentTypeDefn(ComponentType, PropertyDefinition)
ComponentTypeDefn createComponentTypeDefn(ComponentTypeID typeID, PropertyDefinition propertyDefinition)
createComponentTypeDefn(ComponentTypeID, PropertyDefinition, boolean)
PropDefnAllowedValue createPropDefnAllowedValue(ComponentTypeDefn typeDefn, PropertyDefinition propDefn, java.lang.String value) throws InvalidComponentException
typeDefn
- is the ComponentTypeDefn the allowed value will be added topropDefn
- is the PropertyDefinition that the new create PropDefnAllowedValue will
be added to.value
- is the allowed value
InvalidComponentException
- if the existing allowed values in the typeDefn are not
of type PropDefnAllowedValue
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullVMComponentDefn createVMComponentDefn(ConfigurationID configurationID, HostID hostID, ComponentTypeID typeID, java.lang.String componentName)
id
- the ID for this object (may not be null).typeID
- is the type of component definition to createcomponentName
- is the name of the component
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullcreateVMComponentDefn(Configuration, ComponentTypeID, String)
VMComponentDefn createVMComponentDefn(Configuration configuration, HostID hostID, ComponentTypeID typeID, java.lang.String componentName)
configuration
- that will contain the new created component definitiontypeID
- is the type of component definition to createcomponentName
- is the name of the component
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullServiceComponentDefn createServiceComponentDefn(ConfigurationID configurationID, ComponentTypeID typeID, java.lang.String componentName)
id
- the ID for this object (may not be null).typeID
- is the type of component definition to createcomponentName
- is the name of the component
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullcreateServiceComponentDefn(Configuration, ComponentTypeID, String)
ServiceComponentDefn createServiceComponentDefn(ConfigurationID configurationID, ComponentTypeID typeID, java.lang.String componentName, java.lang.String routingUUID)
id
- the ID for this object (may not be null).typeID
- is the type of component definition to createcomponentName
- is the name of the componentroutingUUID
- the globally unique routing UUID of the Service Component Defn
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullcreateServiceComponentDefn(Configuration, ComponentTypeID, String)
ServiceComponentDefn createServiceComponentDefn(Configuration configuration, ComponentTypeID typeID, java.lang.String componentName)
configuration
- that will contain the new created component definitiontypeID
- is the type of component definition to createcomponentName
- is the name of the component
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullServiceComponentDefn createServiceComponentDefn(Configuration configuration, ComponentTypeID typeID, java.lang.String componentName, java.lang.String routingUUID)
configuration
- that will contain the new created component definitiontypeID
- is the type of component definition to createcomponentName
- is the name of the componentroutingUUID
- the globally unique routing UUID of the Service Component Defn
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullServiceComponentDefn createServiceComponentDefn(Configuration configuration, ComponentTypeID typeID, java.lang.String componentName, ProductServiceConfigID pscID)
configuration
- the Configuration containing the PSC; this will
have the new ServiceComponentDefn added to it, plus any DeployedComponents
created for the ServiceComponentDefntypeID
- type of the new ServiceComponentDefncomponentName
- name for the new ServiceComponentDefnpscID
- ID of the ProductServiceConfig which this ServiceComponentDefn
will belong to
ResourceDescriptor createResourceDescriptor(ConfigurationID configurationID, ComponentTypeID typeID, java.lang.String descriptorName)
configurationID
- that the new created component definition will be a part oftypeID
- is the type of component definition to createcomponentName
- is the name of the component
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullResourceDescriptor createResourceDescriptor(Configuration configuration, ComponentTypeID typeID, java.lang.String descriptorName)
configuration
- that will contain the new created component definitiontypeID
- is the type of component definition to createcomponentName
- is the name of the component
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullSharedResource createSharedResource(ComponentTypeID typeID, java.lang.String resourceName)
typeID
- is the type of component definition to createresourceName
- is the name of the shared resource
java.lang.IllegalArgumentException
- if either of the ID or data source ID is nullDeployedComponent createDeployedServiceComponent(java.lang.String instanceName, ConfigurationID configurationID, HostID hostId, VMComponentDefnID vmId, ServiceComponentDefnID serviceComponentDefnID, ProductServiceConfigID pscID, ComponentTypeID serviceComponentTypeID)
instanceName
- is the name assigned to this instanceconfigurationID
- the configuration the vm is deployed within.hostId
- the host the vm is deployed in.vmId
- the VM that the service is deployed in.serviceComponentDefnID
- is the service component definition to be deployedpscID
- the ID of the ProductServiceConfig of the
ServiceComponentDefn which is to be deployed.serviceComponentTypeID
- is type of the service to be deployed
java.lang.IllegalArgumentException
- if either of the IDs nullcreateDeployedServiceComponent(String, Configuration, HostID, VMComponentDefn)
DeployedComponent createDeployedServiceComponent(java.lang.String instanceName, Configuration configuration, HostID hostId, VMComponentDefnID vmId, ServiceComponentDefn serviceComponentDefn, ProductServiceConfigID pscID)
instanceName
- is the name assigned to this instanceconfiguration
- the vm is deployed within.hostId
- the host the vm is deployed in.vmId
- the VM that the service is deployed in.serviceComponentDefnID
- is the service component definition to be deployedcomponentTypeID
- is the type of the service to be deployed
java.lang.IllegalArgumentException
- if either of the IDs nullProductServiceConfig createProductServiceConfig(Configuration configuration, ProductServiceConfig originalPSC, java.lang.String newName)
configuration
- which the originalPSC is from, and
which the new PSC will be put in; this will be modifiedoriginalPSC
- the PSC to copy fromnewName
- new String name for the new PSC
ProductServiceConfig createProductServiceConfig(ConfigurationID configurationID, ProductTypeID productTypeID, java.lang.String componentName)
addServiceComponentDefn(com.metamatrix.common.config.api.Configuration, com.metamatrix.common.config.api.ProductServiceConfig, com.metamatrix.common.config.api.ServiceComponentDefnID)
or
#removeServiceComponentDefn
in conjuncture with this method.
ProductServiceConfig createProductServiceConfig(Configuration configuration, ProductTypeID productTypeID, java.lang.String componentName)
addServiceComponentDefn(com.metamatrix.common.config.api.Configuration, com.metamatrix.common.config.api.ProductServiceConfig, com.metamatrix.common.config.api.ServiceComponentDefnID)
or
#removeServiceComponentDefn
in conjuncture with this method.
java.util.Collection deployProductServiceConfig(Configuration configuration, ProductServiceConfig psc, HostID hostId, VMComponentDefnID vmId)
configuration
- the Configuration which contains the
ServiceComponentDefns, the ProductServiceConfig, and the VMComponentDefnpsc
- the ProductServiceConfig which groups the ServiceComponentDefns
to be deployedhostId
- ID of the host on which the services will be deployedvmId
- ID of the VMComponentDefn on which the services will be
deployed
java.util.Collection deployServiceDefn(Configuration configuration, ServiceComponentDefn serviceComponentDefn, ProductServiceConfigID pscID)
configuration
- must be the Configuration containing both
the ServiceComponentDefn and PSC ID parameters (but this is not
checked for in this method)serviceComponentDefn
- to be deployedpscID
- PSC ID that may already be deployed somewhere in the
Configuration parameter
void setRoutingUUID(ServiceComponentDefn serviceComponentDefn, java.lang.String newRoutingUUID)
serviceComponentDefn
- ServiceComponentDefn to have it's routing
UUID modified - this instance will be locally modified, and an action
will also be created for execution as a transaction later onnewRoutingUUID
- new String routing UUID for the indicated
ServiceComponentDefnjava.util.Collection setEnabled(Configuration configuration, ServiceComponentDefn serviceComponentDefn, ProductServiceConfig psc, boolean enabled, boolean deleteDeployedComps) throws ConfigurationException
Sets whether the indicated ServiceComponentDefn is enabled for deployment
(when the PSC which contains it is
deployed
) or not. This method
can also either automatically create the necessary
DeployedComponents
(if the service
is being enabled) or (optionally) delete the related
DeployedComponents (if the service defn is being disabled).
ServiceComponentDefn
is being
enabled:
enabled
attribute to
true.PSC
has been deployed on any vms, and, if
so, will automatically create a DeployedComponent object for this
newly-enabled ServiceComponentDefn for each different VM the psc is deployed;
these objects will be returned in the returned Collectionenabled
attribute to
false.DeployedComponents
will be deleted
from the Configuration; these same objects will be returned in the
returned Collection. Note: This method will do nothing and return an
empty Collection if the enabled
parameter supplied is
already the same as the enabled status of the ServiceComponentDefn
parameter. This prevents unnecessary work for nothing.
configuration
- Configuration which the ServiceComponentDefn
belongs to. This object will be updated with the changed
ServiceComponentDefn, and if any DeployedComponent objects are deleted.deployedComponent
- to have its enabled attribute set; it
must belong to the indicated Configuration parameter. This object
will have it's enabled
field updated.enabled
- whether this service definition should be enabled for
deployment or not.deleteDeployedComps
- With this parameter the client can control
whether any deployed service components of the ServiceComponentDefn
parameter are deleted automatically. If false
is passed
in, and one or more deployed services do exist for the
ServiceComponentDefn parameter, a ConfigurationException will be thrown.
If true
is passed in, any deployed service components
in the indicated configuration will be automatically deleted.
DeployedComponents
; either the newly-created
DeployedComponents, or the newly-deleted DeployedComponents. If
none were affected, a non-null empty Collection will be returned.
ConfigurationException
- if false
was passed in for
the deleteDeployedComps parameter, and any
DeployedComponents
exist for the
ServiceComponentDefn parameter.deployProductServiceConfig
ProductServiceConfig setEnabled(ServiceComponentDefnID serviceComponentDefnID, ProductServiceConfig psc, boolean enabled)
ProductServiceConfig updateProductServiceConfig(Configuration config, ProductServiceConfig psc, java.util.Collection newServiceIDList) throws ConfigurationException
config
- psc
- newServiceIDList
- is the new list of ID's that the psc will contain
ConfigurationException
ProductServiceConfig addServiceComponentDefn(Configuration configuration, ProductServiceConfig psc, ServiceComponentDefnID serviceComponentDefnID)
configuration
- the Configuration containing the
ServiceComponentDefnpsc
- ProductServiceConfig to have service comp defn added toserviceComponentDefnID
- will be added to the indicated
ProductServiceConfiguration (and removed from any PSC it previously
belonged to).ProductServiceConfig addServiceComponentDefn(ProductServiceConfig psc, ServiceComponentDefnID serviceComponentDefnID)
psc
- ProductServiceConfig to have service comp defn added toserviceComponentDefnID
- will be added to the indicated
ProductServiceConfiguration (and removed from any PSC it previously
belonged to).ProductType addServiceComponentType(ProductType productType, ComponentType serviceComponentType)
productType
- ProductType to have a new service type added toserviceComponentType
- ComponentType to be added to the
ProductTypeProductType removeServiceComponentType(ProductType productType, ComponentType serviceComponentType)
productType
- ProductType to have the service type taken fromserviceComponentType
- ComponentType to be taken from the
ProductTypejava.util.Properties getEditableProperties(ComponentObject t)
t
- is the component object to obtain the properties from
ProductServiceConfig renamePSC(ProductServiceConfig psc, java.lang.String name) throws ConfigurationException
psc
- The psc whose name to change.name
- The new name.
ConfigurationException
VMComponentDefn renameVM(VMComponentDefn vm, java.lang.String name) throws ConfigurationException
vm
- The VM whose name to change.name
- The new name.
ConfigurationException
Configuration setIsReleased(Configuration t, boolean newValue)
Configuration setIsDeployed(Configuration t, boolean newValue)
Configuration setLogConfiguration(Configuration t, LogConfiguration logConfiguration)
ComponentObject setProperty(ComponentObject t, java.lang.String name, java.lang.String value)
ComponentObject
.
This method will replace the current property by the same name.
t
- is the ComponentObject
to set the value onname
- is the name of the propertyvalue
- is the value for the property
ComponentObject
ComponentObject addProperty(ComponentObject t, java.lang.String name, java.lang.String value)
ComponentObject
.
This method assumes the named property does not exist.
t
- is the ComponentObject
to set the value onname
- is the name of the propertyvalue
- is the value for the property
ComponentObject
ComponentObject removeProperty(ComponentObject t, java.lang.String name)
ComponentObject
.
t
- is the ComponentObject
to set the value onname
- is the name of the propertyvalue
- is the value for the property
ComponentObject
ComponentObject modifyProperties(ComponentObject t, java.util.Properties props, int command)
t
- is the ComponentObject
to set the value onprops
- are the properties that will be used based on the commandcommand
- the object editor command (ADD, REMOVE, or SET) that defines the operation to be
performed.
ComponentObject
ComponentTypeDefn modifyComponentTypeDefn(ComponentTypeDefn original, ComponentTypeDefn updated)
ComponentTypeDefn
with the updated PropertyDefinition
.
original
- is the original ComponentTypeDefn to be updated.updated
- is the updated ComponentTypeDefn to replace the original.defn
- is the PropertyDefinition
ComponentType setParentComponentTypeID(ComponentType t, ComponentTypeID parentID)
t
- is the ComponentTypeparentID
- is the parent component type (null allowed)
ComponentType setSuperComponentTypeID(ComponentType t, ComponentTypeID superID)
t
- is the ComponentTypesuperID
- is the super component type (null allowed)
ComponentType setIsDeployable(ComponentType t, boolean newValue)
ComponentType setIsDeprecated(ComponentType t, boolean newValue)
ComponentType setIsMonitored(ComponentType t, boolean newValue)
ComponentType setLastChangedHistory(ComponentType type, java.lang.String lastChangedBy, java.lang.String lastChangedDate)
ComponentType setCreationChangedHistory(ComponentType type, java.lang.String createdBy, java.lang.String creationDate)
ComponentObject setLastChangedHistory(ComponentObject compObject, java.lang.String lastChangedBy, java.lang.String lastChangedDate)
ComponentObject setCreationChangedHistory(ComponentObject compObject, java.lang.String createdBy, java.lang.String creationDate)
ComponentObject setComponentType(ComponentObject t, ComponentTypeID componentType)
t
- is the ComponentObject to have its type setcomponentType
- is the ComponentType to set
ComponentType setComponentTypeDefinitions(ComponentType t, java.util.Collection defns)
ComponentTypeDefn
s for a local ComponentType
object. This method will not generate actions because the definitions
should have been created using the
createComponentTypeDefn
method, which would set the ComponentType properly on the remote system;
it is intended only to modify a local copy of a ComponentType object.
t
- is the ComponentType to set ondefns
- Collection of new definitions
createComponentTypeDefn(ComponentTypeID, PropertyDefinition, boolean)
ComponentTypeDefn setPropertyDefinition(ComponentTypeDefn t, PropertyDefinition defn)
PropertyDefinition
on the ComponentTypeDefn
t
- is the component type definition to update with the defintiondefn
- is the property defn that will be applied.
void setBootStrapConfiguration(ConfigurationID configurationID) throws ConfigurationException
setNextStartupConfiguration(com.metamatrix.common.config.api.ConfigurationID)
configurationID
- for the Configuration
to use on the next system reboot.
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.void setNextStartupConfiguration(ConfigurationID configurationID) throws ConfigurationException
configurationID
- for the Configuration
to use on the next system reboot.
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.void delete(ComponentType target) throws ConfigurationException
target
- ComponentType and all its ComponentTypeDefns to delete
ConfigurationException
- if unable to delete the ComponentType
java.lang.IllegalArgumentException
- if target is nullvoid delete(Host target) throws ConfigurationException
target
- Host to delete
ConfigurationException
- if unable to delete the host
java.lang.IllegalArgumentException
- if target is nullvoid delete(ComponentTypeDefn target, ComponentType type) throws ConfigurationException
target
- is the ComponentTypeDefn to deletetype
- is the ComponentType that it should be removed from.
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullvoid delete(Configuration target) throws ConfigurationException
target
- Configuration to delete
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullto delete a configuration and all its
dependencies.
void delete(ConfigurationID targetID) throws ConfigurationException
targetID
- ConfigurationID to delete
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullvoid delete(Configuration target, boolean deleteDependencies) throws ConfigurationException
target
- configuration to be deleted.boolean
- true will also delete all other objects that depend on the target object
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullSharedResource delete(SharedResource target) throws ConfigurationException
target
- configuration to be deleted.
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullConfiguration delete(ComponentObject target, Configuration configuration) throws ConfigurationException
target
- component object to be removedconfiguration
- that the object is to be removed from
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullConfiguration delete(ComponentObject target, Configuration configuration, boolean deleteDependencies) throws ConfigurationException
target
- component object to be removed.configuration
- that the object is to be removed fromboolean
- true will delete all dependent objects
ConfigurationException
- if unable to delete the configuration
java.lang.IllegalArgumentException
- if target is nullConnectorBinding createConnectorComponent(ConfigurationID configuID, ComponentTypeID typeID, java.lang.String descriptorName, java.lang.String routingUUID)
typeID
- is the component type of the definitioncomponentName
- is the name of the definition
ConnectorBinding createConnectorComponent(ConfigurationID configurationID, ConnectorBinding original, java.lang.String newName, java.lang.String routingUUID)
configurationID
- Identifies which configuration this belongs tooriginal
- is the connector to copy the new connector fromnewName
- is the name to be given to the new connectorroutingUUID
- is the routingUUID to use in the copied connector
ConnectorBinding createConnectorComponent(Configuration configuration, ComponentTypeID typeID, java.lang.String componentName, ProductServiceConfigID pscID)
configuration
- the Configuration containing the PSC; this will
have the new ServiceComponentDefn added to it, plus any DeployedComponents
created for the ServiceComponentDefntypeID
- type of the new ServiceComponentDefncomponentName
- name for the new ServiceComponentDefnpscID
- ID of the ProductServiceConfig which this ServiceComponentDefn
will belong to
void addAuthenticationProvider(Configuration configuration, AuthenticationProvider provider)
AuthenticationProvider createAuthenticationProviderComponent(ConfigurationID configuID, ComponentTypeID typeID, java.lang.String descriptorName)
typeID
- is the component type of the definitioncomponentName
- is the name of the definition
AuthenticationProvider createAuthenticationProviderComponent(ConfigurationID configurationID, AuthenticationProvider original, java.lang.String newName)
configurationID
- Identifies which configuration this belongs tooriginal
- is the connector to copy the new provider fromnewName
- is the name to be given to the new provider
AuthenticationProvider createAuthenticationProviderComponent(Configuration configuration, AuthenticationProvider original, java.lang.String newName)
configurationID
- Identifies which configuration this belongs tooriginal
- is the connector to copy the new provider fromnewName
- is the name to be given to the new provider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |