|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.console.models.Manager
com.metamatrix.console.models.ConfigurationManager
public final class ConfigurationManager
The ConfigurationManager
is used as an abstraction layer between
the GUI and the ConfigurationAdminAPI
.
Field Summary |
---|
Fields inherited from class com.metamatrix.console.models.Manager |
---|
MODEL_CHANGED, MODEL_STALE |
Constructor Summary | |
---|---|
ConfigurationManager(ConnectionInfo connection)
Constructs a ConfigurationManager . |
Method Summary | |
---|---|
void |
addConfigurationChangeListener(ConfigurationChangeListener theListener)
Adds the given listener to those being notified. |
void |
changeDeployedPsc(ProductServiceConfig theOldPsc,
ProductServiceConfig theNewPsc,
VMComponentDefn theProcess,
Host theHost,
ConfigurationID theConfigId)
Changes the deployed PSC for a given process. |
boolean |
checkDecryptable(java.util.List bindings)
Check whether the encrypted properties for the specified ConnectorBindings can be decrypted. |
void |
commitImportedObjects(java.util.Collection theImportedObjects)
|
ProductServiceConfig |
copyPscDef(java.lang.String thePscDefName,
ProductServiceConfig thePscBeingCopied,
ConfigurationID theConfigId)
Creates a PSC definition. |
Host |
createHost(java.lang.String theHostName)
Creates a host. |
VMComponentDefn |
createProcess(java.lang.String theProcessName,
java.lang.String portNumber,
Host theHost,
ConfigurationID theConfigId)
Creates a process. |
ProductServiceConfig |
createPscDef(java.lang.String thePscDefName,
ProductTypeID thePscProdTypeID,
java.util.Collection theServiceIds,
ConfigurationID theConfigId)
Creates a PSC definition. |
void |
deleteDeployedPsc(ProductServiceConfig thePsc,
VMComponentDefn theProcess,
Host theHost,
ConfigurationID theConfigId)
|
void |
deleteHost(Host theHost,
ConfigurationID theConfigId)
|
void |
deleteProcess(VMComponentDefn theProcess,
ConfigurationID theConfigId)
|
void |
deletePscDefinition(ProductServiceConfig thePsc,
ProductType theProduct,
ConfigurationID theConfigId)
|
void |
deployPsc(ProductServiceConfig thePsc,
VMComponentDefn theProcess,
Host theHost,
ConfigurationID theConfigId)
|
java.util.Collection |
getAllCachedComponentTypeDefinitions(ComponentTypeID componentTypeID)
|
java.util.Map |
getAllProductPscs(ConfigurationID theConfigId)
|
ComponentTypeDefn |
getComponentTypeDefn(PropertyDefinition propertyDefinition,
ComponentObject componentObject)
|
Configuration |
getConfig(ConfigurationID theId)
|
ConfigurationModelContainer |
getConfigModel(ConfigurationID theId)
|
java.util.Collection |
getConfigObjects(ConfigurationID theConfigId)
|
java.util.Collection |
getDeployedPscs(VMComponentDefn theProcess)
|
java.util.Collection |
getDeployedServices(ProductServiceConfig thePsc,
VMComponentDefn theProcess)
|
ConfigurationObjectEditor |
getEditor()
|
Host |
getHost(java.lang.String hostFullName,
ConfigurationID configID)
|
Host |
getHost(VMComponentDefn theProcess)
|
java.util.Collection |
getHostProcesses(Host theHost,
ConfigurationID theConfigId)
|
java.util.Collection |
getHosts(ConfigurationID configID)
|
java.util.ArrayList |
getListeners()
|
ProductType |
getProduct(ProductServiceConfig thePsc)
|
ProductType |
getProduct(ProductTypeID theId)
|
java.util.Collection |
getProducts()
|
ConfigurationPropertiedObjectEditor |
getPropertiedObjectEditor()
|
PropertiedObject |
getPropertiedObjectForComponentObject(ComponentObject componentObject)
Returns a PropertiedObject representation of a ComponentObject |
java.util.Collection |
getPscDefinitions(ProductType theProduct,
Configuration theConfiguration)
|
java.util.Collection |
getServiceDefinitions(ProductServiceConfig thePsc,
Configuration theConfiguration)
|
java.util.Collection |
importObjects(java.lang.String theFileName)
|
boolean |
isEditable(ConfigurationID theId)
Indicates if the configuration can be edited. |
boolean |
isNextStartUpConfig(ConfigurationID theId)
Indicates if the given parameter is the identifier of the next startup configuration. |
boolean |
isRefreshNeeded()
|
boolean |
isStartUpConfig(ConfigurationID theId)
Indicates if the given parameter is the identifier of the startup configuration. |
void |
modelChanged(ModelChangedEvent e)
|
Host |
modifyHost(Host theHost,
java.util.Properties theProperties)
|
VMComponentDefn |
modifyProcess(VMComponentDefn theProcess,
java.util.Properties theProperties)
|
void |
modifyPropertiedObject(ConfigurationPropertiedObjectEditor editor)
|
ProductServiceConfig |
modifyPsc(ProductServiceConfig thePscDef,
java.util.Properties theProperties)
|
ServiceComponentDefn |
modifyService(ServiceComponentDefn theService,
java.util.Properties theProperties)
|
void |
refresh()
Refresh tells a manager that it's data is stale and it should retrieve real data (rather than cached data) the next time data is requested. |
void |
refreshImpl()
|
void |
removeConfigurationChangeListener(ConfigurationChangeListener theListener)
Removes the given listener from those being notified. |
void |
setEnabled(ServiceComponentDefn theService,
ProductServiceConfig psc,
boolean theEnableFlag,
Configuration theConfig)
|
void |
setRefreshNeeded()
To indicate a refresh is needed. |
ProductServiceConfig |
updatePscDef(ProductServiceConfig thePscDef,
java.util.Collection theServiceIds)
Updates a PSC definition. |
ResourceDescriptor |
updateResourcePropertyValue(ResourceDescriptor resourceDescriptor,
java.lang.String propertyKey,
java.lang.String propertyValue)
Updates the resourceDescriptor with the new propertyValue and returns the updated resourceDescriptor. |
Methods inherited from class com.metamatrix.console.models.Manager |
---|
addManagerListener, fireModelChangedEvent, fireModelChangedEvent, getConnection, getConnection, getEncryptor, getEventListeners, getIsStale, init, removeManagerListener, setIsStale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationManager(ConnectionInfo connection) throws ExternalException
ConfigurationManager
.
ExternalException
- if a problem occurs during construction.Method Detail |
---|
public void modelChanged(ModelChangedEvent e)
modelChanged
in interface ManagerListener
ManagerListener.modelChanged(com.metamatrix.console.models.ModelChangedEvent)
public void addConfigurationChangeListener(ConfigurationChangeListener theListener)
theListener
- the listener who wants to be notifiedpublic void changeDeployedPsc(ProductServiceConfig theOldPsc, ProductServiceConfig theNewPsc, VMComponentDefn theProcess, Host theHost, ConfigurationID theConfigId) throws ExternalException
theOldPsc
- the deployed PSC being deletedtheNewPsc
- the PSC being deployedtheProcess
- the process the PSCs belong totheConfigId
- the ID of the configuration
ExternalException
public void commitImportedObjects(java.util.Collection theImportedObjects) throws ExternalException
ExternalException
public Host createHost(java.lang.String theHostName) throws ExternalException
theHostName
- the name of the new host
null
if host already exists
ExternalException
- if problem occurs creating the hostpublic VMComponentDefn createProcess(java.lang.String theProcessName, java.lang.String portNumber, Host theHost, ConfigurationID theConfigId) throws ExternalException
theProcessName
- the name of the new processtheHost
- the host to add the process totheConfigId
- the ID of the Configuration
to add the
process to.
ExternalException
- if problem occurs creating the processpublic ProductServiceConfig copyPscDef(java.lang.String thePscDefName, ProductServiceConfig thePscBeingCopied, ConfigurationID theConfigId) throws ExternalException
thePscDefName
- the name of the new PSC definitionthePscBeingCopied
- the PSC being copiedtheConfigId
- the ID of the Configuration
the PSC
definition is contained in.
ExternalException
- if problem occurs creating the PSC definitionpublic ProductServiceConfig updatePscDef(ProductServiceConfig thePscDef, java.util.Collection theServiceIds) throws ExternalException
thePscDef
- the PSC definition to be updatedtheServiceIds
- the service IDs to replace current service IDs
ExternalException
- if problem occurs updating the PSC definitionpublic ProductServiceConfig createPscDef(java.lang.String thePscDefName, ProductTypeID thePscProdTypeID, java.util.Collection theServiceIds, ConfigurationID theConfigId) throws ExternalException
thePscDefName
- the name of the new PSC definitionthePscBeingCopied
- the PSC being copiedtheConfigId
- the ID of the Configuration
the PSC
definition is contained in.
ExternalException
- if problem occurs creating the PSC definitionpublic void deleteDeployedPsc(ProductServiceConfig thePsc, VMComponentDefn theProcess, Host theHost, ConfigurationID theConfigId) throws ExternalException
ExternalException
public void deleteHost(Host theHost, ConfigurationID theConfigId) throws ExternalException
ExternalException
public void deleteProcess(VMComponentDefn theProcess, ConfigurationID theConfigId) throws ExternalException
ExternalException
public void deletePscDefinition(ProductServiceConfig thePsc, ProductType theProduct, ConfigurationID theConfigId) throws ExternalException
ExternalException
public void deployPsc(ProductServiceConfig thePsc, VMComponentDefn theProcess, Host theHost, ConfigurationID theConfigId) throws ExternalException
ExternalException
public Configuration getConfig(ConfigurationID theId)
public ConfigurationModelContainer getConfigModel(ConfigurationID theId)
public java.util.Collection getConfigObjects(ConfigurationID theConfigId) throws ExternalException
ExternalException
public java.util.Collection getDeployedPscs(VMComponentDefn theProcess) throws ExternalException
ExternalException
public java.util.Collection getDeployedServices(ProductServiceConfig thePsc, VMComponentDefn theProcess) throws ExternalException
ExternalException
public ConfigurationObjectEditor getEditor() throws ExternalException
ExternalException
public java.util.Collection getHosts(ConfigurationID configID)
public Host getHost(java.lang.String hostFullName, ConfigurationID configID)
public Host getHost(VMComponentDefn theProcess)
public java.util.Collection getHostProcesses(Host theHost, ConfigurationID theConfigId) throws ExternalException
ExternalException
public ProductType getProduct(ProductTypeID theId)
public ProductType getProduct(ProductServiceConfig thePsc)
public java.util.Map getAllProductPscs(ConfigurationID theConfigId) throws ExternalException
ExternalException
public java.util.Collection getProducts()
public ConfigurationPropertiedObjectEditor getPropertiedObjectEditor() throws ExternalException
ExternalException
public PropertiedObject getPropertiedObjectForComponentObject(ComponentObject componentObject)
componentObject
- ComponentObject for which PropertiedObject representation is sought
MetaMatrixRuntimeException
- if parameter can not be expressed as a PropertiedObjectpublic ResourceDescriptor updateResourcePropertyValue(ResourceDescriptor resourceDescriptor, java.lang.String propertyKey, java.lang.String propertyValue) throws ConfigurationException, InvalidSessionException, AuthorizationException, MetaMatrixComponentException
resourceDescriptor
- is the resource to be updatedpropertyKey
- is the name of the property to changepropertyValue
- is the new value for the propertyKey
ConfigurationException
- if the propertyKey does not exist as a property on the descriptor.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.public java.util.Collection getPscDefinitions(ProductType theProduct, Configuration theConfiguration) throws ExternalException
ExternalException
public java.util.Collection getServiceDefinitions(ProductServiceConfig thePsc, Configuration theConfiguration) throws ExternalException
ExternalException
public java.util.Collection importObjects(java.lang.String theFileName) throws ExternalException
ExternalException
public boolean isEditable(ConfigurationID theId)
theId
- the configuration identifier whose mode is being requested
true
if configuration can be edited;
false
otherwise.public boolean isNextStartUpConfig(ConfigurationID theId)
theId
- the identifier being compared
true
if equal to the next startup configuration;
false
otherwise.public boolean isRefreshNeeded()
public boolean isStartUpConfig(ConfigurationID theId)
theId
- the identifier being compared
true
if equal to the startup configuration;
false
otherwise.public Host modifyHost(Host theHost, java.util.Properties theProperties) throws ExternalException
ExternalException
public VMComponentDefn modifyProcess(VMComponentDefn theProcess, java.util.Properties theProperties) throws ExternalException
ExternalException
public void modifyPropertiedObject(ConfigurationPropertiedObjectEditor editor) throws ExternalException
ExternalException
public ProductServiceConfig modifyPsc(ProductServiceConfig thePscDef, java.util.Properties theProperties) throws ExternalException
ExternalException
public ServiceComponentDefn modifyService(ServiceComponentDefn theService, java.util.Properties theProperties) throws ExternalException
ExternalException
public void refresh()
Manager
Currently this method simply calls setIsStale(false)
refresh
in class Manager
Manager.setIsStale(boolean)
public void refreshImpl() throws ExternalException
ExternalException
public void removeConfigurationChangeListener(ConfigurationChangeListener theListener)
theListener
- the listener being removedpublic void setEnabled(ServiceComponentDefn theService, ProductServiceConfig psc, boolean theEnableFlag, Configuration theConfig) throws ExternalException
ExternalException
public void setRefreshNeeded()
public java.util.ArrayList getListeners()
public boolean checkDecryptable(java.util.List bindings) throws ConfigurationException, AuthorizationException, InvalidSessionException, MetaMatrixComponentException
bindings
- ListConfigurationException
AuthorizationException
InvalidSessionException
MetaMatrixComponentException
public java.util.Collection getAllCachedComponentTypeDefinitions(ComponentTypeID componentTypeID) throws ConfigurationException, InvalidSessionException, AuthorizationException, MetaMatrixComponentException
ConfigurationException
InvalidSessionException
AuthorizationException
MetaMatrixComponentException
public ComponentTypeDefn getComponentTypeDefn(PropertyDefinition propertyDefinition, ComponentObject componentObject) throws ConfigurationException, InvalidSessionException, AuthorizationException, MetaMatrixComponentException
ConfigurationException
InvalidSessionException
AuthorizationException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |