|
||||||||||
| 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.bundle.BundleManager
public class BundleManager
Manages the bundle subsystem, which allows bundles of content to be installed.
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 | |
|---|---|
BundleManager()
|
|
| Method Summary | |
|---|---|
void |
auditDeployment(org.rhq.core.domain.bundle.BundleResourceDeployment bundleResourceDeployment,
String action,
String info,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory.Category category,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory.Status status,
String message,
String attachment)
|
void |
auditDeployment(org.rhq.core.domain.bundle.BundleResourceDeployment bundleResourceDeployment,
String action,
String info,
String message)
convenience method: category defaults to null status defaults to SUCCESS attachment defaults null |
List<org.rhq.core.domain.content.PackageVersion> |
getAllBundleVersionPackageVersions(org.rhq.core.domain.bundle.BundleVersion bundleVersion)
|
protected BundleFacet |
getBundleFacet(int resourceId,
long timeout)
Given a resource, this obtains that resource's BundleFacet interface. |
long |
getFileContent(org.rhq.core.domain.content.PackageVersion packageVersion,
OutputStream outputStream)
|
protected InventoryManager |
getInventoryManager()
Returns the manager that can provide data on the inventory. |
protected MeasurementManager |
getMeasurementManager()
Returns the manager that can provide data on the measurements/metrics. |
void |
initialize()
Initializes the container service which will effectively tell the service to start doing its work. |
BundlePurgeResponse |
purge(BundlePurgeRequest request)
|
BundleScheduleResponse |
schedule(BundleScheduleRequest request)
|
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. |
| 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 BundleManager()
| Method Detail |
|---|
public 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 initialize()
ContainerServicenull
configuration will be set via a call to ContainerService.setConfiguration(PluginContainerConfiguration).
initialize in interface ContainerServicepublic void shutdown()
ContainerService
shutdown in interface ContainerService
public List<org.rhq.core.domain.content.PackageVersion> getAllBundleVersionPackageVersions(org.rhq.core.domain.bundle.BundleVersion bundleVersion)
throws Exception
getAllBundleVersionPackageVersions in interface BundleManagerProviderException
public long getFileContent(org.rhq.core.domain.content.PackageVersion packageVersion,
OutputStream outputStream)
throws Exception
getFileContent in interface BundleManagerProviderExceptionpublic BundleScheduleResponse schedule(BundleScheduleRequest request)
schedule in interface BundleAgentServicepublic BundlePurgeResponse purge(BundlePurgeRequest request)
purge in interface BundleAgentService
public void auditDeployment(org.rhq.core.domain.bundle.BundleResourceDeployment bundleResourceDeployment,
String action,
String info,
String message)
bundleResourceDeployment - not nullaction - not nullinfo - not nullmessage -
public void auditDeployment(org.rhq.core.domain.bundle.BundleResourceDeployment bundleResourceDeployment,
String action,
String info,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory.Category category,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory.Status status,
String message,
String attachment)
auditDeployment in interface BundleManagerProvider
protected BundleFacet getBundleFacet(int resourceId,
long timeout)
throws PluginContainerException
BundleFacet interface.
If the resource does not support that facet, an exception is thrown.
The resource must be in the STARTED (i.e. connected) state.
resourceId - identifies the resource that is to perform the bundle activitiestimeout - if any facet method invocation thread has not completed after this many milliseconds, interrupt
it; value must be positive
PluginContainerException - on errorprotected InventoryManager getInventoryManager()
protected MeasurementManager getMeasurementManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||