org.rhq.plugins.perftest.content
Class SimpleContentFactory

java.lang.Object
  extended by org.rhq.plugins.perftest.content.SimpleContentFactory
All Implemented Interfaces:
ContentFactory

public class SimpleContentFactory
extends Object
implements ContentFactory

Artifact factory implementation that will return a configurable number of artifacts. Subsequent requests for artifact discovery will produce the same set of artifacts.

Author:
Jason Dobies

Constructor Summary
SimpleContentFactory(SimpleContentGenerator generator)
           
 
Method Summary
 Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> discoverContent(org.rhq.core.domain.content.PackageType type)
          Returns a set of artifacts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContentFactory

public SimpleContentFactory(SimpleContentGenerator generator)
Method Detail

discoverContent

public Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> discoverContent(org.rhq.core.domain.content.PackageType type)
Description copied from interface: ContentFactory
Returns a set of artifacts. The generation of the set is determined by the underlying implementation.

Specified by:
discoverContent in interface ContentFactory
Parameters:
type - domain object passed into the call to the resource component, needed in the creation of the artifact details
Returns:
set of artifacts; will not be null


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