|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.agent.AgentService
org.rhq.core.pc.configuration.ConfigurationManager
public class ConfigurationManager
Manages configuration of all resources across all plugins.
This is an agent service; its interface is made remotely accessible if this is deployed within the agent.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.rhq.core.pc.agent.AgentService |
|---|
AgentService.LifecycleState |
| Constructor Summary | |
|---|---|
ConfigurationManager()
|
|
| Method Summary | |
|---|---|
ConfigurationUpdateResponse |
executeUpdateResourceConfigurationImmediately(ConfigurationUpdateRequest request)
|
protected ConfigurationFacet |
getConfigurationFacet(int resourceId,
FacetLockType lockType)
Given a resource ID, this obtains that resource's ConfigurationFacet interface. |
protected ConfigurationServerService |
getConfigurationServerService()
If this manager can talk to a server-side ConfigurationServerService, a proxy to that service is
returned. |
protected org.rhq.core.domain.resource.ResourceType |
getResourceType(int resourceId)
Given a resource ID, this obtains that resource's type. |
protected ExecutorService |
getThreadPool()
Returns a thread pool that this object will use when asychronously executing configuration operations on a component. |
void |
initialize()
Initializes the container service which will effectively tell the service to start doing its work. |
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration(int resourceId)
|
org.rhq.core.domain.configuration.Configuration |
merge(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean fromStructured)
|
void |
setComponentService(ComponentService componentService)
|
void |
setConfigManagementFactory(ConfigManagementFactory factory)
|
void |
setConfiguration(PluginContainerConfiguration configuration)
Informs the container service how it should be configured by providing the full plugin container configuration. |
void |
shutdown()
Stops the container service which effectively releases all runtime resources such as running threads. |
void |
updateResourceConfiguration(ConfigurationUpdateRequest request)
|
org.rhq.core.domain.configuration.Configuration |
validate(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean isStructured)
|
| Methods inherited from class org.rhq.core.pc.agent.AgentService |
|---|
addLifecycleListener, getClientInterface, notifyLifecycleListenersOfNewState, remoteInputStream, remoteOutputStream, removeLifecycleListener, setAgentServiceStreamRemoter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationManager()
| Method Detail |
|---|
public void initialize()
ContainerServicenull
configuration will be set via a call to ContainerService.setConfiguration(PluginContainerConfiguration).
initialize in interface ContainerServicepublic void shutdown()
ContainerService
shutdown in interface ContainerServicepublic void setConfiguration(PluginContainerConfiguration configuration)
ContainerServicenull configuration object so implementations of
this interface should never have to worry about a null configuration parameter value.
setConfiguration in interface ContainerServicepublic void setComponentService(ComponentService componentService)
public void setConfigManagementFactory(ConfigManagementFactory factory)
public void updateResourceConfiguration(ConfigurationUpdateRequest request)
updateResourceConfiguration in interface ConfigurationAgentService
public ConfigurationUpdateResponse executeUpdateResourceConfigurationImmediately(ConfigurationUpdateRequest request)
throws PluginContainerException
executeUpdateResourceConfigurationImmediately in interface ConfigurationAgentServicePluginContainerException
public org.rhq.core.domain.configuration.Configuration merge(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean fromStructured)
throws PluginContainerException
merge in interface ConfigurationAgentServicePluginContainerException
public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration(int resourceId)
throws PluginContainerException
loadResourceConfiguration in interface ConfigurationAgentServicePluginContainerExceptionprotected ExecutorService getThreadPool()
protected ConfigurationFacet getConfigurationFacet(int resourceId,
FacetLockType lockType)
throws PluginContainerException
resourceId - identifies the resource whose facet is to be returnedlockType - how access to the facet is synchronized
PluginContainerException - on error
protected org.rhq.core.domain.resource.ResourceType getResourceType(int resourceId)
throws PluginContainerException
resourceId - identifies the resource whose type is to be returned
PluginContainerException - if cannot determine the resource's typeprotected ConfigurationServerService getConfigurationServerService()
ConfigurationServerService, a proxy to that service is
returned.
null if this manager doesn't have a server to talk to
public org.rhq.core.domain.configuration.Configuration validate(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean isStructured)
throws PluginContainerException
validate in interface ConfigurationAgentServicePluginContainerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||