public class PluginContext extends Object implements YumContext
| Constructor and Description |
|---|
PluginContext(int port,
ResourceContext resourceContext,
ContentContext contentContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
basepath()
Get the path part of the base URL for yum requests.
|
URL |
baseurl()
Get the base URL for yum requests.
|
long |
getMetadataCacheTimeout()
Get the metadata timeout, in milliseconds.
|
long |
getPackageBitsLength(org.rhq.core.domain.content.PackageDetailsKey key)
Get the length in bytes of the specified package.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.composite.PackageVersionMetadataComposite> |
getPackageVersionMetadata(org.rhq.core.domain.util.PageControl pc)
Get a list of all metadata entries for all packages mapped to the specified resource.
|
org.rhq.core.domain.configuration.Configuration |
getPluginConfiguration()
Returns the plugin configuration.
|
String |
getResourceSubscriptionMD5()
Get the MD5 of the resource's content subscription.
|
File |
getTemporaryDirectory()
Get a reference to the temporary directory to be used for file construction and staging.
|
int |
port()
Get the port specified in the base URL for yum requests.
|
long |
writePackageBits(org.rhq.core.domain.content.PackageDetailsKey key,
long[] range,
OutputStream ostr)
Write the specified package bits to the specified stream.
|
long |
writePackageBits(org.rhq.core.domain.content.PackageDetailsKey key,
OutputStream ostr)
Write the specified package bits to the specified stream.
|
public PluginContext(int port,
ResourceContext resourceContext,
ContentContext contentContext)
throws MalformedURLException
MalformedURLExceptionpublic URL baseurl()
YumContextbaseurl in interface YumContextpublic String basepath()
YumContextbasepath in interface YumContextpublic int port()
YumContextport in interface YumContextpublic long writePackageBits(org.rhq.core.domain.content.PackageDetailsKey key,
OutputStream ostr)
YumContextwritePackageBits in interface YumContextkey - The package key used to specify the package version.ostr - An open output stream.public long writePackageBits(org.rhq.core.domain.content.PackageDetailsKey key,
long[] range,
OutputStream ostr)
YumContextwritePackageBits in interface YumContextkey - The package key used to specify the package version.range - The byte range to write (range[0]=first-byte, range[1]=last-byte).ostr - An open output stream.public long getPackageBitsLength(org.rhq.core.domain.content.PackageDetailsKey key)
YumContextgetPackageBitsLength in interface YumContextkey - The package key used to specify the package version.public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.composite.PackageVersionMetadataComposite> getPackageVersionMetadata(org.rhq.core.domain.util.PageControl pc)
YumContextgetPackageVersionMetadata in interface YumContextpc - A page control.public String getResourceSubscriptionMD5()
YumContextgetResourceSubscriptionMD5 in interface YumContextpublic File getTemporaryDirectory()
YumContextgetTemporaryDirectory in interface YumContextpublic org.rhq.core.domain.configuration.Configuration getPluginConfiguration()
YumContextgetPluginConfiguration in interface YumContextpublic long getMetadataCacheTimeout()
YumContextgetMetadataCacheTimeout in interface YumContextCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.