org.rhq.core.pc.inventory
Class ResourceFactoryManager
java.lang.Object
org.rhq.core.pc.agent.AgentService
org.rhq.core.pc.inventory.ResourceFactoryManager
- All Implemented Interfaces:
- ResourceFactoryAgentService, ContainerService
public class ResourceFactoryManager
- extends AgentService
- implements ContainerService, ResourceFactoryAgentService
Plugin container manager that is responsible for handling resource factory operations (create and delete resource).
This manager implements the remoted ResourceFactoryAgentService interface.
- Author:
- Jason Dobies
|
Constructor Summary |
ResourceFactoryManager()
Creates a new ResourceFactoryManager and initializes it as a remoted object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFactoryManager
public ResourceFactoryManager()
- Creates a new
ResourceFactoryManager and initializes it as a remoted object.
initialize
public void initialize()
- Description copied from interface:
ContainerService
- Initializes the container service which will effectively tell the service to start doing its work.
Implementations of this interface can be assured that prior to this method being called, a non-
null
configuration will be set via a call to ContainerService.setConfiguration(PluginContainerConfiguration).
- Specified by:
initialize in interface ContainerService
shutdown
public void shutdown()
- Description copied from interface:
ContainerService
- Stops the container service which effectively releases all runtime resources such as running threads.
- Specified by:
shutdown in interface ContainerService
setConfiguration
public void setConfiguration(PluginContainerConfiguration configuration)
- Description copied from interface:
ContainerService
- Informs the container service how it should be configured by providing the full plugin container configuration.
The plugin container will ensure it passes in a non-
null configuration object so implementations of
this interface should never have to worry about a null configuration parameter value.
- Specified by:
setConfiguration in interface ContainerService
executeCreateResourceImmediately
public CreateResourceResponse executeCreateResourceImmediately(CreateResourceRequest request)
throws PluginContainerException
- Specified by:
executeCreateResourceImmediately in interface ResourceFactoryAgentService
- Throws:
PluginContainerException
createResource
public void createResource(CreateResourceRequest request)
throws PluginContainerException
- Specified by:
createResource in interface ResourceFactoryAgentService
- Throws:
PluginContainerException
executeDeleteResourceImmediately
public DeleteResourceResponse executeDeleteResourceImmediately(DeleteResourceRequest request)
throws PluginContainerException
- Specified by:
executeDeleteResourceImmediately in interface ResourceFactoryAgentService
- Throws:
PluginContainerException
deleteResource
public void deleteResource(DeleteResourceRequest request)
throws PluginContainerException
- Specified by:
deleteResource in interface ResourceFactoryAgentService
- Throws:
PluginContainerException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.