|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.service.controller.AbstractService
com.metamatrix.platform.config.service.ConfigurationServiceImpl
public class ConfigurationServiceImpl
Caching only Hosts and ComponentTypes - but these will be updated by a scheduled thread
Field Summary |
---|
Fields inherited from interface com.metamatrix.platform.config.api.service.ConfigurationServiceInterface |
---|
NAME |
Fields inherited from interface com.metamatrix.platform.service.api.ServiceInterface |
---|
WAIT_TO_DIE_TIME |
Constructor Summary | |
---|---|
ConfigurationServiceImpl()
|
Method Summary | |
---|---|
Host |
addHost(java.lang.String hostName,
java.lang.String principalName,
java.util.Properties properties)
Add Host to Configuration Add a new Host to the System (MetaMatrix Cluster) |
VMComponentDefn |
addProcess(java.lang.String processName,
java.lang.String hostName,
java.lang.String principalName,
java.util.Properties properties)
Add Process for the specified Host to Configuration Add a new Virtuial Machine to the System (MetaMatrix Cluster) |
protected void |
addProperty(java.util.Properties source,
java.lang.String sourceName,
java.util.Properties props,
java.lang.String propName)
|
void |
baselineCurrentConfiguration(java.lang.String principalName)
Baselines the realtime portion of the current (operational) configuration into the next-startup configuration. |
java.util.List |
checkPropertiesDecryptable(java.util.List defns)
Check whether the encrypted properties for the specified ComponentDefns can be decrypted. |
boolean |
checkPropertiesDecryptable(java.util.Properties props,
java.lang.String componentTypeIdentifier)
Check whether the given properties pertaining to the given component (name and type) contain at least one value that the server cannot decrypt with its current keystore. |
void |
clearHistory()
Clear the history of all actions without undoing any of them. |
protected void |
closeService()
Close the service to new work if applicable. |
ConnectorBinding |
createConnectorBinding(java.lang.String connectorBindingName,
java.lang.String connectorType,
java.lang.String pscName,
java.lang.String principalName,
java.util.Properties properties)
Deploy a new Connector Binding into Configuration |
ConfigurationObjectEditor |
createEditor()
Returns a ConfigurationObjectEditor to perform editing operations on a configuration type object. |
void |
delete(ComponentObject theObject,
boolean theDeleteDependenciesFlag,
java.lang.String principalName)
Deletes a component object. |
void |
delete(ComponentType componentType,
java.lang.String principalName)
Delete a Component Type |
java.util.Collection |
deployPSC(Host theHost,
VMComponentDefn theProcess,
java.lang.String pscName,
java.lang.String principalName)
Deploys the ServiceComponentDefns indicated by the ProductServiceConfig, contained by the Configuration, onto the specified Host and VM. |
java.util.Set |
executeInsertTransaction(ConfigurationID assignConfigurationID,
java.util.List actions,
java.lang.String principalName)
Execute a list of insert actions and for actions on objects of type component object, it will have its configuration id resassigned, and optionally return the set of objects or object IDs that were affected/modified by the action. |
java.util.Set |
executeTransaction(ActionDefinition action,
java.lang.String principalName)
Execute as a single transaction the specified action, and optionally return the set of objects or object IDs that were affected/modified by the action. |
java.util.Set |
executeTransaction(java.util.List actions,
java.lang.String principalName)
Execute as a single transaction the specified actions, and optionally return the set of objects or object IDs that were affected/modified by the action. |
java.util.Collection |
getAllComponentTypeDefinitions(ComponentTypeID typeID)
Returns the all component type definitions for the specified ComponentTypeID . |
java.util.Collection |
getAllComponentTypes(boolean includeDeprecated)
Returns a List of type ComponentType that represents all the ComponentTypes defined. |
java.util.Collection |
getAllGlobalConfigObjects()
This method will return a Collection of objects that represent the set of global configuration objects currently represented in the configuration database. |
ComponentDefn |
getComponentDefn(ConfigurationID configurationID,
ComponentDefnID componentDefnID)
Returns a ComponentDefn for the specified ComponentDefnID . |
java.util.Collection |
getComponentDefns(java.util.Collection componentDefnIDs,
ConfigurationID configurationID)
Returns a collection of ComponentDefn s for the specified collection of ComponentDefnID s and
ConfigurationID . |
ComponentType |
getComponentType(ComponentTypeID id)
Returns a ComponentType for the specified ComponentTypeID |
java.util.Map |
getComponentTypeDefinitions(java.util.Collection componentIDs)
Returns a Map of component type definitions for each ComponentTypeID that is contained in the passed
Collection . |
java.util.Collection |
getComponentTypeDefinitions(ComponentTypeID componentTypeID)
Returns the component type definitions for the specified ComponentTypeID . |
Configuration |
getConfiguration(java.lang.String configName)
Returns the named Configuration . |
java.util.Collection |
getConfigurationAndDependents(ConfigurationID configID)
Returns a Collection containing the Configuration object for the specified ConfigurationID id, and also any dependant objects needed to fully define this configuration, such as Host objects, ComponentType objects, and ComponentTypeDefn objects. |
ConfigurationModelContainer |
getConfigurationModel(java.lang.String configName)
Returns the ConfigurationModelContainer that contains everything (i.e., ComponentTypes, Shared Resources and
ComponentDefns) that the server needs to start. |
Configuration |
getCurrentConfiguration()
Returns the operational Configuration , which should reflect
the desired runtime state of the system. |
ConfigurationID |
getCurrentConfigurationID()
Returns the ID of the operational Configuration , which should reflect
the desired runtime state of the system. |
java.util.Map |
getDependentComponentTypeDefinitions(java.util.Collection componentIDs)
Returns a Map of all component type definitions for each ComponentTypeID that is contained in the passed
Collection . |
java.util.Collection |
getDependentComponentTypeDefinitions(ComponentTypeID componentTypeID)
Returns the component type definitions for the specified ComponentTypeID . |
java.util.List |
getHistory()
Get the history of actions executed in transactions by this editor. |
int |
getHistoryLimit()
Set the limit on the number of actions in the history. |
int |
getHistorySize()
Get the number of actions that are currently in the history. |
Host |
getHost(HostID hostID)
Returns a Host for the specified HostID . |
java.util.Collection |
getHosts()
Returns a Collection of currently defined hosts. |
java.util.Collection |
getMonitoredComponentTypes(boolean includeDeprecated)
Returns a List of type ComponentType . |
Configuration |
getNextStartupConfiguration()
Returns the next startup Configuration , the Configuration
that the system will next boot up with (once it is entirely shut down). |
ConfigurationID |
getNextStartupConfigurationID()
Returns the ID of the next startup Configuration , which should reflect
the desired runtime state of the system. |
java.util.Collection |
getProductReleaseInfos()
Obtain the List of ReleaseInfo objects
which represent the products of the system. |
protected ConfigurationTransaction |
getReadTransaction()
|
java.util.Collection |
getResources()
Returns a Collection of ResourceDescriptor
for all internal resources defined to the system. |
java.util.Collection |
getResources(ComponentTypeID componentTypeID)
Returns a Collection of ResourceDescriptor
that are of the specified resource type. |
java.util.Date |
getServerStartupTime()
Return the time the server was started. |
Configuration |
getStartupConfiguration()
Returns the startup Configuration , the Configuration
that the system booted up with. |
ConfigurationID |
getStartupConfigurationID()
Returns the ID of the startup Configuration , which should reflect
the desired runtime state of the system. |
protected ConfigurationTransaction |
getWriteTransaction()
|
ConnectorBinding |
importConnectorBinding(java.io.InputStream inputStream,
java.lang.String name,
java.lang.String pscName,
java.lang.String principalName)
Import a connector Binding from InputStream, and deploy it to a PSC. |
ComponentType |
importConnectorType(java.io.InputStream inputStream,
java.lang.String name,
java.lang.String principalName)
Import a Connector Type |
void |
initializeForTesting(java.util.Properties env)
|
protected void |
initService(java.util.Properties env)
Perform initialization and commence processing. |
protected void |
killService()
Terminate all processing and reclaim resources. |
java.lang.Object |
modify(ComponentObject theObject,
java.util.Properties theProperties,
java.lang.String principalName)
Modify a Component in Configuration |
protected java.lang.String |
printActions(java.util.List actions)
|
void |
saveResources(java.util.Collection resourceDescriptors,
java.lang.String principalName)
Save the resource changes based on each ResourceDescriptor
in the collection. |
void |
setHistoryLimit(int maximumHistoryCount)
Set the limit on the number of actions in the history. |
void |
setSystemPropertyValue(java.lang.String propertyName,
java.lang.String propertyValue,
java.lang.String principalName)
Set System Property in Next Configuration |
java.util.Set |
undoActionsAsTransaction(int numberOfActions,
java.lang.String principalName)
Undo the specified number of previously-committed transactions. |
void |
updateSystemPropertyValues(java.util.Properties properties,
java.lang.String principalName)
Set System Property in Next Configuration |
protected void |
waitForServiceToClear()
Wait until the service has completed all outstanding work. |
Methods inherited from class com.metamatrix.platform.service.controller.AbstractService |
---|
checkState, die, dieNow, getCurrentState, getDeployedComponentID, getHostname, getID, getInitException, getInstanceName, getProcessName, getProperties, getQueueStatistics, getQueueStatistics, getResourceName, getServiceName, getServiceType, getStartTime, getStateChangeTime, init, isAlive, isClosed, isInitialized, isOpen, processEvent, registerForEvents, setInitException, unregisterForEvents, updateState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.metamatrix.platform.service.api.ServiceInterface |
---|
checkState, die, dieNow, getCurrentState, getHostname, getID, getInitException, getProcessName, getProperties, getQueueStatistics, getQueueStatistics, getServiceType, getStartTime, getStateChangeTime, init, isAlive, setInitException, updateState |
Constructor Detail |
---|
public ConfigurationServiceImpl()
Method Detail |
---|
public void initializeForTesting(java.util.Properties env) throws java.lang.Exception
java.lang.Exception
protected void initService(java.util.Properties env) throws java.lang.Exception
initService
in class AbstractService
java.lang.Exception
protected void closeService() throws java.lang.Exception
closeService
in class AbstractService
java.lang.Exception
protected void waitForServiceToClear() throws java.lang.Exception
waitForServiceToClear
in class AbstractService
java.lang.Exception
protected void killService()
killService
in class AbstractService
public ConfigurationObjectEditor createEditor() throws ConfigurationException
ConfigurationServiceInterface
ConfigurationObjectEditor
to perform editing operations on a configuration type object. The
editing process will create actions for each specific type of editing operation. Those actions are what need to be
submitted to the ConfigurationService
for actual updates to occur.
createEditor
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public ConfigurationID getCurrentConfigurationID() throws ConfigurationException
Configuration
, which should reflect
the desired runtime state of the system.
getCurrentConfigurationID
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public ConfigurationID getNextStartupConfigurationID() throws ConfigurationException
Configuration
, which should reflect
the desired runtime state of the system.
getNextStartupConfigurationID
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public void baselineCurrentConfiguration(java.lang.String principalName) throws ConfigurationException
baselineCurrentConfiguration
in interface ConfigurationServiceInterface
principalName
- the name of the principal that is requesting the
baselining
ConfigurationException
public ConfigurationID getStartupConfigurationID() throws ConfigurationException
Configuration
, which should reflect
the desired runtime state of the system.
getStartupConfigurationID
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public Configuration getCurrentConfiguration() throws ConfigurationException
Configuration
, which should reflect
the desired runtime state of the system.
getCurrentConfiguration
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public Configuration getNextStartupConfiguration() throws ConfigurationException
Configuration
, the Configuration
that the system will next boot up with (once it is entirely shut down).
getNextStartupConfiguration
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public Configuration getStartupConfiguration() throws ConfigurationException
Configuration
, the Configuration
that the system booted up with.
getStartupConfiguration
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public ConfigurationModelContainer getConfigurationModel(java.lang.String configName) throws InvalidConfigurationException, ConfigurationException
ConfigurationServiceInterface
ConfigurationModelContainer
that contains everything (i.e., ComponentTypes, Shared Resources and
ComponentDefns) that the server needs to start.
getConfigurationModel
in interface ConfigurationServiceInterface
configName
- if the name of the configuration model to obtain
InvalidConfigurationException
ConfigurationException
public Configuration getConfiguration(java.lang.String configName) throws InvalidConfigurationException, ConfigurationException
ConfigurationServiceInterface
Configuration
.
getConfiguration
in interface ConfigurationServiceInterface
configName
- is the name of the Configuration to obtain
InvalidConfigurationException
- if the specified name does not exist
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getConfigurationAndDependents(ConfigurationID configID) throws ConfigurationException
Returns a Collection containing the Configuration object for the specified ConfigurationID id, and also any dependant objects needed to fully define this configuration, such as Host objects, ComponentType objects, and ComponentTypeDefn objects.
A Configuration instance contains all of the
ComponentDefn
objects that "belong" to just that
Configuration model: VM component definitions, service
component definitions, product service configurations, and
deployed components. Objects such as Host objects,
ComponentType objects, ComponentTypeDefn, Resources, and
ConnectorBinding objects describe or support
ComponentDefns, but are not contained by a Configuration. Therefore,
they are included in this Collection for convenience.
The Collection will contain instances of
BaseObject
.
Specifically, this Map should contain the objects for:
one configuration object, one or more Host objects, one or more
ComponentType objects, and one or more ComponentTypeDefn objects.
This method is intended to facilitate exporting a configuration to XML.
Here is what the Collection would contain at runtime:
Configuration instance Host instance1 Host instance2 ... ConnectorBinding instance1 ConnectorBinding instance2 ... SharedResource intance1 SharedResource instance ... ComponentType instance1 ComponentType instance2 ... ComponentTypeDefn instance1 ComponentTypeDefn instance2
getConfigurationAndDependents
in interface ConfigurationServiceInterface
configID
- ID Of a Configuration
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getAllGlobalConfigObjects() throws ConfigurationException
This method will return a Collection of objects that represent the set of global configuration objects currently represented in the configuration database. This method will generally be used when attempting to import a configuration into the database as the 'Next Startup' configuration. This information is important when importing a new configuration so that any global type configuration objects that are to be imported can be resolved against the global objects that currently exist in the database.
The Collection of objects will contain the following configuration object types: ComponentTypes ProductTypes Hosts
getAllGlobalConfigObjects
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.
InvalidSessionException
- if there is not a valid administrative session
AuthorizationException
- if the administrator does not have privileges to use this method
MetaMatrixComponentException
- if a general remote system problem occurredpublic ComponentType getComponentType(ComponentTypeID id) throws ConfigurationException
ConfigurationServiceInterface
ComponentType
for the specified ComponentTypeID
getComponentType
in interface ConfigurationServiceInterface
id
- is for the requested component type.
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getAllComponentTypes(boolean includeDeprecated) throws ConfigurationException
ConfigurationServiceInterface
List
of type ComponentType
that represents all the ComponentTypes defined.
getAllComponentTypes
in interface ConfigurationServiceInterface
includeDeprecated
- true if class names that have been deprecated should be included in the returned list, or false if only
non-deprecated constants should be returned.
ComponentType
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.#ComponentType
public java.util.Collection getMonitoredComponentTypes(boolean includeDeprecated) throws ConfigurationException
ConfigurationServiceInterface
List
of type ComponentType
. that are flagged as being monitored. A component of
this type is considered to be available for monitoring statistics.
getMonitoredComponentTypes
in interface ConfigurationServiceInterface
includeDeprecated
- true if class names that have been deprecated should be included in the returned list, or false if only
non-deprecated constants should be returned.
ComponentType
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.#ComponentType
public java.util.Collection getComponentTypeDefinitions(ComponentTypeID componentTypeID) throws ConfigurationException
ConfigurationServiceInterface
ComponentTypeID
. This does not return the
dependent definitions for service type components.
getComponentTypeDefinitions
in interface ConfigurationServiceInterface
componentTypeID
- is a ComponentTypeID
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.ConfigurationServiceInterface.getDependentComponentTypeDefinitions(ComponentTypeID)
public java.util.Map getComponentTypeDefinitions(java.util.Collection componentIDs) throws ConfigurationException
ConfigurationServiceInterface
ComponentTypeID
that is contained in the passed
Collection
. This does not return the dependent definitions for service type components.
getComponentTypeDefinitions
in interface ConfigurationServiceInterface
componentIDs
- is a Collection
ComponentTypeID
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.getDependentComponentTypeDefintions(Collection)
public java.util.Map getDependentComponentTypeDefinitions(java.util.Collection componentIDs) throws ConfigurationException
ConfigurationServiceInterface
ComponentTypeID
that is contained in the passed
Collection
. This only returns the dependent definitions for service type components where the component
type is defined as having a super component type.
getDependentComponentTypeDefinitions
in interface ConfigurationServiceInterface
componentIDs
- is a Collection
ComponentTypeID
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.ConfigurationServiceInterface.getComponentTypeDefinitions(Collection)
,
getDependentComponentTypeDefinitions(ComponentType)
public java.util.Collection getDependentComponentTypeDefinitions(ComponentTypeID componentTypeID) throws ConfigurationException
ConfigurationServiceInterface
ComponentTypeID
. This only returns the dependent
definitions for service type components where the component type is defined as having a super component type.
getDependentComponentTypeDefinitions
in interface ConfigurationServiceInterface
componentTypeID
- is a ComponentTypeID
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.ConfigurationServiceInterface.getComponentTypeDefinitions(ComponentTypeID)
public java.util.Collection getAllComponentTypeDefinitions(ComponentTypeID typeID) throws ConfigurationException
ConfigurationServiceInterface
ComponentTypeID
. This includes the dependent
definitions for service type components.
getAllComponentTypeDefinitions
in interface ConfigurationServiceInterface
typeID
- is a ComponentTypeID
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.ConfigurationServiceInterface.getDependentComponentTypeDefinitions(ComponentTypeID)
public Host getHost(HostID hostID) throws ConfigurationException
ConfigurationServiceInterface
Host
for the specified HostID
.
getHost
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getHosts() throws ConfigurationException
ConfigurationServiceInterface
Collection
of currently defined hosts. This method does not cache, it re-retrieves the data
every time.
getHosts
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getComponentDefns(java.util.Collection componentDefnIDs, ConfigurationID configurationID) throws ConfigurationException
ConfigurationServiceInterface
ComponentDefn
s for the specified collection of ComponentDefnID
s and
ConfigurationID
. If the configuration is null the parent name from the componentID will be used. The
reason for adding the option to specify the configurationID is so that the same collection of componentIDs can be used to
obtain the componentDefns from the different configurations. Otherwise, the requestor would have to create a new set of
componetDefnIDs for each configuration.
getComponentDefns
in interface ConfigurationServiceInterface
componentDefnIDs
- contains all the ids for which componet defns to be returnedconfigurationID
- is the configuration from which the component defns are to be derived; optional, nullalble
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public ComponentDefn getComponentDefn(ConfigurationID configurationID, ComponentDefnID componentDefnID) throws ConfigurationException
ComponentDefn
for the specified ComponentDefnID
.
getComponentDefn
in interface ConfigurationServiceInterface
configurationID
- is the configuration for which the component existcomponentDefnID
- is the component being requested
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getResources() throws ConfigurationException
ResourceDescriptor
for all internal resources defined to the system. The internal resources are not managed with
the other configuration related information. They are not dictated based on which configuration
they will operate (i.e., next startup or operational);
getResources
in interface ConfigurationServiceInterface
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.
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getResources(ComponentTypeID componentTypeID) throws ConfigurationException
ResourceDescriptor
that are of the specified resource type.
getResources
in interface ConfigurationServiceInterface
componentType
- that identifies the type of resources to be returned
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.
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public void saveResources(java.util.Collection resourceDescriptors, java.lang.String principalName) throws ConfigurationException
ResourceDescriptor
in the collection.
saveResources
in interface ConfigurationServiceInterface
resourceDescriptors
- for the resources to be changed *
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.
ConfigurationException
- if an error occurred within or during communication with the Configuration Service.public java.util.Collection getProductReleaseInfos() throws ConfigurationException
ReleaseInfo
objects
which represent the products of the system. Each ReleaseInfo contains
the name of the product, as well as release info.
getProductReleaseInfos
in interface ConfigurationServiceInterface
ConfigurationException
- if an business error occurred within or during communication with the Configuration Service.public java.util.Set executeTransaction(ActionDefinition action, java.lang.String principalName) throws ModificationException, ConfigurationLockException, ConfigurationException
executeTransaction
in interface ConfigurationServiceInterface
action
- the definition of the action to be performed on data within
the repository.principalName
- of the person executing the transaction
ModificationException
- if the target of the action is invalid, or
if the target object is not a supported class of targets.
java.lang.IllegalArgumentException
- if the action is null
or if the result specification is invalid
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.
ConfigurationLockException
public java.util.Set executeTransaction(java.util.List actions, java.lang.String principalName) throws ModificationException, ConfigurationLockException, ConfigurationException
executeTransaction
in interface ConfigurationServiceInterface
actions
- the ordered list of actions that are to be performed on data within
the repository.principalName
- of the person executing the transaction
ModificationException
- if the target of any of the actions is invalid, or
if the target object is not a supported class of targets.
java.lang.IllegalArgumentException
- if the action is null
or if the result specification is invalid
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.
ConfigurationLockException
public java.util.Set executeInsertTransaction(ConfigurationID assignConfigurationID, java.util.List actions, java.lang.String principalName) throws ModificationException, ConfigurationLockException, ConfigurationException
executeInsertTransaction
in interface ConfigurationServiceInterface
assignConfigurationID
- the configuration for which any action for a component object will
have its configurationID set to this.actions
- the ordered list of actions that are to be performed on data within
the repository.principalName
- of the person executing the transaction
ModificationException
- if the target of any of the actions is invalid, or
if the target object is not a supported class of targets.
java.lang.IllegalArgumentException
- if the action is null
or if the result specification is invalid
ConfigurationException
- if an error occurred within or during
communication with the Metadata Service.
ConfigurationLockException
public java.util.Set undoActionsAsTransaction(int numberOfActions, java.lang.String principalName) throws ConfigurationException
undoActionsAsTransaction
in interface ConfigurationServiceInterface
numberOfActions
- the number of actions in the history that are to be undone.principalName
- of the person executing the transaction
java.lang.IllegalArgumentException
- if the number is negative.
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.public java.util.List getHistory() throws ConfigurationException
getHistory
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.public void clearHistory() throws ConfigurationException
clearHistory
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.public int getHistorySize() throws ConfigurationException
getHistorySize
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.public int getHistoryLimit() throws ConfigurationException
getHistoryLimit
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.public void setHistoryLimit(int maximumHistoryCount) throws ConfigurationException
setHistoryLimit
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.public java.util.Date getServerStartupTime() throws ConfigurationException
getServerStartupTime
in interface ConfigurationServiceInterface
ConfigurationException
- if an error occurred within or during
communication with the Configuration Service.protected void addProperty(java.util.Properties source, java.lang.String sourceName, java.util.Properties props, java.lang.String propName)
protected java.lang.String printActions(java.util.List actions)
protected ConfigurationTransaction getReadTransaction() throws ManagedConnectionException
ManagedConnectionException
protected ConfigurationTransaction getWriteTransaction() throws ManagedConnectionException
ManagedConnectionException
public Host addHost(java.lang.String hostName, java.lang.String principalName, java.util.Properties properties) throws ConfigurationException
ConfigurationServiceInterface
addHost
in interface ConfigurationServiceInterface
hostName
- Host Name of new Host being added to Configuration
ConfigurationException
com.metamatrix.platform.config.api.service.ConfigurationServiceInterface#addHost(java.lang.String,
java.util.Properties)
public VMComponentDefn addProcess(java.lang.String processName, java.lang.String hostName, java.lang.String principalName, java.util.Properties properties) throws ConfigurationException
ConfigurationServiceInterface
addProcess
in interface ConfigurationServiceInterface
processName
- Name of the New Process being Added to ConfigurationhostName
- Name of the Host that the new Process is being addedprincipalName
- User Name of user who is making the changeproperties
- name, value need to setup a Host
ConfigurationException
com.metamatrix.platform.config.api.service.ConfigurationServiceInterface#addProcess(java.lang.String,
java.lang.String, java.util.Properties)
public void setSystemPropertyValue(java.lang.String propertyName, java.lang.String propertyValue, java.lang.String principalName) throws ConfigurationException
setSystemPropertyValue
in interface ConfigurationServiceInterface
propertyName
- propertyValue
- principalName
-
ConfigurationException
InvalidSessionException
AuthorizationException
public void updateSystemPropertyValues(java.util.Properties properties, java.lang.String principalName) throws ConfigurationException
updateSystemPropertyValues
in interface ConfigurationServiceInterface
properties
- principalName
-
ConfigurationException
InvalidSessionException
AuthorizationException
public ConnectorBinding createConnectorBinding(java.lang.String connectorBindingName, java.lang.String connectorType, java.lang.String pscName, java.lang.String principalName, java.util.Properties properties) throws ConfigurationException
ConfigurationServiceInterface
createConnectorBinding
in interface ConfigurationServiceInterface
connectorType
- Connector Type for this Connector BindingpscName
- Name of the PSC to deploy the Connector Binding to.
If pscName is null, this method does not deploy the Connector Binding to a PSC.principalName
- User Name of user who is making the change
ConfigurationException
ConfigurationServiceInterface.createConnectorBinding(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
public java.lang.Object modify(ComponentObject theObject, java.util.Properties theProperties, java.lang.String principalName) throws ModificationException, ConfigurationLockException, ConfigurationException
ConfigurationServiceInterface
modify
in interface ConfigurationServiceInterface
ModificationException
ConfigurationLockException
ConfigurationException
public ComponentType importConnectorType(java.io.InputStream inputStream, java.lang.String name, java.lang.String principalName) throws ConfigurationException
ConfigurationServiceInterface
importConnectorType
in interface ConfigurationServiceInterface
name
- Name of the Connector Type to importprincipalName
- User Name of user who is making the change
ConfigurationException
public ConnectorBinding importConnectorBinding(java.io.InputStream inputStream, java.lang.String name, java.lang.String pscName, java.lang.String principalName) throws ConfigurationException
ConfigurationServiceInterface
importConnectorBinding
in interface ConfigurationServiceInterface
name
- Name of Connector Binding to importpscName
- Name of the PSC to deploy the Connector Binding to.
If pscName is null, this method does not deploy the Connector Binding to a PSC.
ConfigurationException
ConfigurationServiceInterface.importConnectorBinding(java.io.InputStream, java.lang.String, java.lang.String, java.lang.String)
public void delete(ComponentObject theObject, boolean theDeleteDependenciesFlag, java.lang.String principalName) throws ConfigurationException, ModificationException
ConfigurationServiceInterface
delete
in interface ConfigurationServiceInterface
theObject
- the object being deletedtheDeleteDependenciesFlag
- boolean flag for deleting dependenciesprincipalName
- User Name of user who is making the change
ConfigurationException
ModificationException
com.metamatrix.platform.config.api.service.ConfigurationServiceInterface#delete(com.metamatrix.common.config.api.ComponentObject, boolean)
public void delete(ComponentType componentType, java.lang.String principalName) throws ConfigurationException, ModificationException
ConfigurationServiceInterface
delete
in interface ConfigurationServiceInterface
componentType
- Component Type Object being deletedprincipalName
- User Name who is making the change
ConfigurationException
ModificationException
ConfigurationServiceInterface.delete(com.metamatrix.common.config.api.ComponentType, java.lang.String)
public java.util.Collection deployPSC(Host theHost, VMComponentDefn theProcess, java.lang.String pscName, java.lang.String principalName) throws ConfigurationException, ModificationException
deployPSC
in interface ConfigurationServiceInterface
theHost
- host on which the services will be deployedtheProcess
- VM on which the services will be deployedpscName
- Name of the PSCprincipalName
- User Name deploying the Services
ConfigurationException
ModificationException
public java.util.List checkPropertiesDecryptable(java.util.List defns) throws ConfigurationException
checkPropertiesDecryptable
in interface ConfigurationServiceInterface
defns
- Listdefns
.
For each, true if the properties could be decrypted for that defn.
ConfigurationException
public boolean checkPropertiesDecryptable(java.util.Properties props, java.lang.String componentTypeIdentifier) throws ConfigurationException
ConfigurationServiceInterface
checkPropertiesDecryptable
in interface ConfigurationServiceInterface
props
- component properties possibly containing encrypted values.componentTypeIdentifier
- The type identifier of the component to which the properties belong.
true
if all of the encrypted properties, if any, can be decrypted.
ConfigurationException
ConfigurationServiceInterface.checkPropertiesDecryptable(java.util.Properties, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |