org.rhq.core.pc.content
Class ContentManager
java.lang.Object
org.rhq.core.pc.agent.AgentService
org.rhq.core.pc.content.ContentManager
- All Implemented Interfaces:
- ContentAgentService, ContainerService, ContentServices
public class ContentManager
- extends AgentService
- implements ContainerService, ContentAgentService, ContentServices
|
Method Summary |
void |
deletePackages(DeletePackagesRequest request)
|
void |
deployPackages(DeployPackagesRequest request)
|
org.rhq.core.domain.content.transfer.DeployPackagesResponse |
deployPackagesImmediately(DeployPackagesRequest request)
|
long |
downloadPackageBits(ContentContext context,
org.rhq.core.domain.content.PackageDetailsKey packageDetailsKey,
OutputStream outputStream,
boolean resourceExists)
|
long |
downloadPackageBitsForChildResource(ContentContext context,
String childResourceTypeName,
org.rhq.core.domain.content.PackageDetailsKey key,
OutputStream outputStream)
|
long |
downloadPackageBitsRange(ContentContext context,
org.rhq.core.domain.content.PackageDetailsKey packageDetailsKey,
OutputStream outputStream,
long startByte,
long endByte,
boolean resourceExists)
|
ContentDiscoveryReport |
executeResourcePackageDiscoveryImmediately(int resourceId,
String packageTypeName)
|
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> |
getLastDiscoveredResourcePackages(int resourceId)
|
long |
getPackageBitsLength(ContentContext context,
org.rhq.core.domain.content.PackageDetailsKey packageDetailsKey)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.composite.PackageVersionMetadataComposite> |
getPackageVersionMetadata(ContentContext context,
org.rhq.core.domain.util.PageControl pc)
|
String |
getResourceSubscriptionMD5(ContentContext context)
|
void |
initialize()
Initializes the container service which will effectively tell the service to start doing its work. |
void |
retrievePackageBits(RetrievePackageBitsRequest 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. |
List<org.rhq.core.domain.content.transfer.DeployPackageStep> |
translateInstallationSteps(int resourceId,
org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentManager
public ContentManager()
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
getLastDiscoveredResourcePackages
public Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> getLastDiscoveredResourcePackages(int resourceId)
- Specified by:
getLastDiscoveredResourcePackages in interface ContentAgentService
executeResourcePackageDiscoveryImmediately
public ContentDiscoveryReport executeResourcePackageDiscoveryImmediately(int resourceId,
String packageTypeName)
throws PluginContainerException
- Specified by:
executeResourcePackageDiscoveryImmediately in interface ContentAgentService
- Throws:
PluginContainerException
deployPackages
public void deployPackages(DeployPackagesRequest request)
- Specified by:
deployPackages in interface ContentAgentService
deployPackagesImmediately
public org.rhq.core.domain.content.transfer.DeployPackagesResponse deployPackagesImmediately(DeployPackagesRequest request)
throws PluginContainerException
- Throws:
PluginContainerException
deletePackages
public void deletePackages(DeletePackagesRequest request)
- Specified by:
deletePackages in interface ContentAgentService
retrievePackageBits
public void retrievePackageBits(RetrievePackageBitsRequest request)
- Specified by:
retrievePackageBits in interface ContentAgentService
translateInstallationSteps
public List<org.rhq.core.domain.content.transfer.DeployPackageStep> translateInstallationSteps(int resourceId,
org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
throws PluginContainerException
- Specified by:
translateInstallationSteps in interface ContentAgentService
- Throws:
PluginContainerException
downloadPackageBitsForChildResource
public long downloadPackageBitsForChildResource(ContentContext context,
String childResourceTypeName,
org.rhq.core.domain.content.PackageDetailsKey key,
OutputStream outputStream)
- Specified by:
downloadPackageBitsForChildResource in interface ContentServices
downloadPackageBits
public long downloadPackageBits(ContentContext context,
org.rhq.core.domain.content.PackageDetailsKey packageDetailsKey,
OutputStream outputStream,
boolean resourceExists)
- Specified by:
downloadPackageBits in interface ContentServices
downloadPackageBitsRange
public long downloadPackageBitsRange(ContentContext context,
org.rhq.core.domain.content.PackageDetailsKey packageDetailsKey,
OutputStream outputStream,
long startByte,
long endByte,
boolean resourceExists)
- Specified by:
downloadPackageBitsRange in interface ContentServices
getPackageBitsLength
public long getPackageBitsLength(ContentContext context,
org.rhq.core.domain.content.PackageDetailsKey packageDetailsKey)
- Specified by:
getPackageBitsLength in interface ContentServices
getPackageVersionMetadata
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.composite.PackageVersionMetadataComposite> getPackageVersionMetadata(ContentContext context,
org.rhq.core.domain.util.PageControl pc)
- Specified by:
getPackageVersionMetadata in interface ContentServices
getResourceSubscriptionMD5
public String getResourceSubscriptionMD5(ContentContext context)
- Specified by:
getResourceSubscriptionMD5 in interface ContentServices
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.