|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.content.ContentSourceType
public class ContentSourceType
Defines an adapter that can speak to a particular external package source. This definition includes information on how to connect/configure the external source as well as the Java implementation to use to perform the actual connection. Each source type represents a different mechanism for loading package information into the server.
Field Summary | |
---|---|
static String |
QUERY_FIND_ALL
|
static String |
QUERY_FIND_BY_NAME
|
static String |
QUERY_FIND_BY_NAME_WITH_CONFIG_DEF
|
Constructor Summary | |
---|---|
ContentSourceType()
|
|
ContentSourceType(String name)
|
Method Summary | |
---|---|
void |
addContentSource(ContentSource contentSource)
|
boolean |
equals(Object obj)
|
String |
getContentSourceApiClass()
Indicates the Java class that should be instantiated to be the content source and used to connect to the underlying external source. |
ConfigurationDefinition |
getContentSourceConfigurationDefinition()
Defines the configuration properties that must be set when creating a content source of this type. |
Set<ContentSource> |
getContentSources()
Content sources of this type. |
DownloadMode |
getDefaultDownloadMode()
The default download mode for instances of this content source type. |
String |
getDefaultSyncSchedule()
Periodically, the content source plugin adapter will be asked to synchronize with the remote content source repository. |
String |
getDescription()
Free text description of this repo source type. |
String |
getDisplayName()
Name of this repo source type that is suitable for display to the user in the UI. |
int |
getId()
|
String |
getName()
Programmatic name of the repo source type. |
String |
getPluginName()
The name of the plugin that defined this content source type. |
int |
hashCode()
|
boolean |
isDefaultLazyLoad()
If true , the content bits for all packages coming from content sources of this type will only be
loaded on demand. |
void |
setContentSourceApiClass(String contentSourceApiClass)
|
void |
setContentSourceConfigurationDefinition(ConfigurationDefinition contentSourceConfigurationDefinition)
|
void |
setContentSources(Set<ContentSource> contentSources)
|
void |
setDefaultDownloadMode(DownloadMode defaultDownloadMode)
|
void |
setDefaultLazyLoad(boolean defaultLazyLoad)
|
void |
setDefaultSyncSchedule(String syncSchedule)
|
void |
setDescription(String description)
|
void |
setDisplayName(String displayName)
|
void |
setId(int id)
|
void |
setName(String name)
|
void |
setPluginName(String pluginName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_ALL
public static final String QUERY_FIND_BY_NAME_WITH_CONFIG_DEF
public static final String QUERY_FIND_BY_NAME
Constructor Detail |
---|
public ContentSourceType()
public ContentSourceType(String name)
Method Detail |
---|
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getDescription()
public void setDescription(String description)
public String getPluginName()
public void setPluginName(String pluginName)
public boolean isDefaultLazyLoad()
true
, the content bits for all packages coming from content sources of this type will only be
loaded on demand. This means the package contents will only be loaded when they are asked for the very first
time. If false
, the content source should attempt to download all packages as soon as possible.
Note: this is only a default, suggested value - the user will be given the chance to override this setting
when creating content sources.
public void setDefaultLazyLoad(boolean defaultLazyLoad)
public DownloadMode getDefaultDownloadMode()
public void setDefaultDownloadMode(DownloadMode defaultDownloadMode)
public String getDefaultSyncSchedule()
null
if the sync should not automatically occurpublic void setDefaultSyncSchedule(String syncSchedule)
public ConfigurationDefinition getContentSourceConfigurationDefinition()
public void setContentSourceConfigurationDefinition(ConfigurationDefinition contentSourceConfigurationDefinition)
public String getContentSourceApiClass()
org.rhq.enterprise.server.plugin.pc.content.ContentProvider
.
public void setContentSourceApiClass(String contentSourceApiClass)
public Set<ContentSource> getContentSources()
public void addContentSource(ContentSource contentSource)
public void setContentSources(Set<ContentSource> contentSources)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |