org.rhq.enterprise.server.plugin.pc.content
Interface ContentProvider


public interface ContentProvider

Interface used by the server to communicate with a content source. Content sources implement this interface as well as any other source interfaces to further describe what functionality is provided by the content source.

The class name of this interface's implementation is the class name specified in the server plugin descriptor.

Author:
Jason Dobies, John Mazzitelli
See Also:
RepoSource, PackageSource

Method Summary
 SyncProgressWeight getSyncProgressWeight()
          Fetch the Map of estimated 'weights' for the individual steps for syncing a ContentProvider.
 void initialize(org.rhq.core.domain.configuration.Configuration configuration)
          Initializes the adapter with the configuration values indicating how to connect to the external source system.
 void shutdown()
          Informs the adapter that it should shutdown.
 void testConnection()
          Tests if the content source can communicate with the external package source.
 

Method Detail

initialize

void initialize(org.rhq.core.domain.configuration.Configuration configuration)
                throws Exception
Initializes the adapter with the configuration values indicating how to connect to the external source system.

Parameters:
configuration - user entered values describing how the content source should function.
Throws:
Exception - if the content source has an issue being configured.

shutdown

void shutdown()
Informs the adapter that it should shutdown.


testConnection

void testConnection()
                    throws Exception
Tests if the content source can communicate with the external package source. This will be called after initialize(Configuration) to ensure the adapter is in a configured state to run the test.

Throws:
Exception - if the connection cannot be made to the external system.

getSyncProgressWeight

SyncProgressWeight getSyncProgressWeight()
Fetch the Map of estimated 'weights' for the individual steps for syncing a ContentProvider. Steps include: Package Metadata Package Bits Distribution Metadata Distribution Bits Advisory (Errata) Metadata Advisory Bits ?



Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.