org.rhq.enterprise.server.plugins.jboss.software
Class JBossSoftwareContentSourceAdapter

java.lang.Object
  extended by org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter
All Implemented Interfaces:
ContentProvider, PackageSource, RepoSource

public class JBossSoftwareContentSourceAdapter
extends Object
implements ContentProvider, PackageSource, RepoSource

Hook into the server to field requests on JBoss software related packages.

Author:
Jason Dobies

Constructor Summary
JBossSoftwareContentSourceAdapter()
           
 
Method Summary
 InputStream getInputStream(String location)
           
 SyncProgressWeight getSyncProgressWeight()
           
 RepoImportReport importRepos()
           
 void initialize(Configuration configuration)
           
 void shutdown()
           
 void synchronizePackages(String repoName, PackageSyncReport report, Collection<ContentProviderPackageDetails> existingPackages)
           
 void testConnection()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JBossSoftwareContentSourceAdapter

public JBossSoftwareContentSourceAdapter()
Method Detail

initialize

public void initialize(Configuration configuration)
                throws Exception
Specified by:
initialize in interface ContentProvider
Throws:
Exception

shutdown

public void shutdown()
Specified by:
shutdown in interface ContentProvider

testConnection

public void testConnection()
                    throws Exception
Specified by:
testConnection in interface ContentProvider
Throws:
Exception

synchronizePackages

public void synchronizePackages(String repoName,
                                PackageSyncReport report,
                                Collection<ContentProviderPackageDetails> existingPackages)
                         throws SyncException,
                                InterruptedException
Specified by:
synchronizePackages in interface PackageSource
Throws:
SyncException
InterruptedException

getInputStream

public InputStream getInputStream(String location)
                           throws Exception
Specified by:
getInputStream in interface PackageSource
Throws:
Exception

importRepos

public RepoImportReport importRepos()
                             throws Exception
Specified by:
importRepos in interface RepoSource
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

getSyncProgressWeight

public SyncProgressWeight getSyncProgressWeight()
Specified by:
getSyncProgressWeight in interface ContentProvider


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