|
||||||||||
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. |
boolean |
checkDecryptable(java.util.List bindings)
Check whether the encrypted properties for the specified ConnectorBindings can be decrypted. |
void |
commitImportedObjects(java.util.Collection theImportedObjects)
Changes the deployed PSC for a given process. |
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. |
void |
deleteHost(Host theHost,
ConfigurationID theConfigId)
|
void |
deleteProcess(VMComponentDefn theProcess,
ConfigurationID theConfigId)
|
java.util.Collection |
getAllCachedComponentTypeDefinitions(ComponentTypeID componentTypeID)
|
ComponentTypeDefn |
getComponentTypeDefn(PropertyDefinition propertyDefinition,
ComponentObject componentObject)
|
Configuration |
getConfig(ConfigurationID theId)
|
ConfigurationModelContainer |
getConfigModel(ConfigurationID theId)
|
java.util.Collection |
getConfigObjects(ConfigurationID theConfigId)
|
java.util.Collection |
getDeployedServices(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()
|
ConfigurationPropertiedObjectEditor |
getPropertiedObjectEditor()
|
PropertiedObject |
getPropertiedObjectForComponentObject(ComponentObject componentObject)
Returns a PropertiedObject representation of a ComponentObject |
java.util.Collection |
getServiceDefinitions(VMComponentDefn theVM,
Configuration theConfiguration)
|
java.util.Collection |
importObjects(java.lang.String theFileName)
|
boolean |
isRefreshNeeded()
|
void |
modelChanged(ModelChangedEvent e)
|
Host |
modifyHost(Host theHost,
java.util.Properties theProperties)
|
VMComponentDefn |
modifyProcess(VMComponentDefn theProcess,
java.util.Properties theProperties)
|
void |
modifyPropertiedObject(ConfigurationPropertiedObjectEditor editor)
|
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(DeployedComponent thedeployed,
boolean theEnableFlag,
Configuration theConfig)
|
void |
setRefreshNeeded()
To indicate a refresh is needed. |
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 commitImportedObjects(java.util.Collection theImportedObjects) 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 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 void deleteHost(Host theHost, ConfigurationID theConfigId) throws ExternalException
ExternalException
public void deleteProcess(VMComponentDefn theProcess, 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 getDeployedServices(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 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 getServiceDefinitions(VMComponentDefn theVM, Configuration theConfiguration) throws ExternalException
ExternalException
public java.util.Collection importObjects(java.lang.String theFileName) throws ExternalException
ExternalException
public boolean isRefreshNeeded()
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 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(DeployedComponent thedeployed, 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 |