|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.platform.content.yum.PluginContext
public class PluginContext
Represents a context in which the yum server objects can interface with the rest of the system. By insulating this interface, the code can be utilized by any part of the system simply by re-implementing the context.
| Constructor Summary | |
|---|---|
PluginContext(int port,
ResourceContext resourceContext,
ContentContext contentContext)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginContext(int port,
ResourceContext resourceContext,
ContentContext contentContext)
throws MalformedURLException
MalformedURLException| Method Detail |
|---|
public URL baseurl()
YumContext
baseurl in interface YumContextpublic String basepath()
YumContext
basepath in interface YumContextpublic int port()
YumContext
port in interface YumContext
public long writePackageBits(org.rhq.core.domain.content.PackageDetailsKey key,
OutputStream ostr)
YumContext
writePackageBits 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)
YumContext
writePackageBits 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)
YumContext
getPackageBitsLength 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)
YumContext
getPackageVersionMetadata in interface YumContextpc - A page control.
public String getResourceSubscriptionMD5()
YumContext
getResourceSubscriptionMD5 in interface YumContextpublic File getTemporaryDirectory()
YumContext
getTemporaryDirectory in interface YumContextpublic org.rhq.core.domain.configuration.Configuration getPluginConfiguration()
YumContext
getPluginConfiguration in interface YumContextpublic long getMetadataCacheTimeout()
YumContext
getMetadataCacheTimeout in interface YumContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||