|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.resource.ResourceType
public class ResourceType
Defines a type of Resource
(e.g. a Linux platform, a JBossAS server, or a Datasource service).
Unique business key (and therefore equals/hashCode basis) is the (String name, String plugin) combination.
This will keep plugin writers from stepping on each other's toes.
Constructor Summary | |
---|---|
ResourceType()
|
|
ResourceType(String name,
String plugin,
ResourceCategory category,
ResourceType parentResourceType)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TABLE_NAME
public static final ResourceType ANY_PLATFORM_TYPE
public static final String QUERY_GET_BUNDLE_CONFIG_BY_GROUP_ID
public static final String QUERY_GET_EXPLICIT_RESOURCE_TYPE_COUNTS_BY_GROUP
public static final String QUERY_GET_IMPLICIT_RESOURCE_TYPE_COUNTS_BY_GROUP
public static final String QUERY_FIND_BY_NAME_AND_PLUGIN
public static final String QUERY_FIND_BY_PLUGIN
public static final String QUERY_FIND_BY_PARENT_AND_NAME
public static final String QUERY_FIND_ALL
public static final String QUERY_FIND_BY_ID_WITH_ALL_OPERATIONS
public static final String QUERY_FIND_BY_CATEGORY
public static final String QUERY_FIND_CHILDREN
public static final String QUERY_FIND_CHILDREN_BY_CATEGORY
public static final String QUERY_FIND_CHILDREN_BY_CATEGORY_admin
public static final String QUERY_FIND_UTILIZED_CHILDREN_BY_CATEGORY
public static final String QUERY_FIND_UTILIZED_CHILDREN_BY_CATEGORY_admin
public static final String FIND_CHILDREN_BY_PARENT
public static final String FIND_ALL_TEMPLATE_COUNT_COMPOSITES
public static final String QUERY_FIND_BY_SUBCATEGORY
public static final String QUERY_FIND_UTILIZED_BY_CATEGORY
public static final String QUERY_FIND_UTILIZED_BY_CATEGORY_admin
public static final String QUERY_FIND_BY_RESOURCE_GROUP
public static final String QUERY_FIND_BY_RESOURCE_GROUP_admin
public static final String MAPPING_FIND_CHILDREN_BY_CATEGORY
public static final String QUERY_FIND_RESOURCE_FACETS
public static final String QUERY_FIND_DUPLICATE_TYPE_NAMES
public static final String QUERY_DYNAMIC_CONFIG_WITH_PLUGIN
public static final String QUERY_MARK_TYPES_DELETED
public static final String QUERY_FIND_IDS_BY_PLUGIN
public static final String QUERY_FIND_COUNT_BY_PLUGIN
Constructor Detail |
---|
public ResourceType()
public ResourceType(String name, String plugin, ResourceCategory category, ResourceType parentResourceType)
Method Detail |
---|
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public ResourceCategory getCategory()
public void setCategory(ResourceCategory category)
public ResourceCreationDataType getCreationDataType()
public void setCreationDataType(ResourceCreationDataType creationDataType)
public CreateDeletePolicy getCreateDeletePolicy()
public void setCreateDeletePolicy(CreateDeletePolicy createDeletePolicy)
public boolean isCreatable()
public boolean isDeletable()
public ResourceSubCategory getSubCategory()
null
is returned.
public void setSubCategory(ResourceSubCategory subcategory)
public boolean isSingleton()
public void setSingleton(boolean singleton)
singleton
- true if there is only ever one discovered instance per parent resourcepublic boolean isSupportsManualAdd()
public void setSupportsManualAdd(boolean supportsManualAdd)
public String getDescription()
public void setDescription(String description)
public String getPlugin()
public void setPlugin(String plugin)
public long getCtime()
public long getMtime()
public boolean isDeleted()
public void setDeleted(boolean deleted)
public List<Resource> getResources()
public void setResources(List<Resource> resources)
public List<ResourceGroup> getResourceGroups()
public void setResourceGroups(List<ResourceGroup> resourceGroups)
public Set<ResourceType> getParentResourceTypes()
public void setParentResourceTypes(Set<ResourceType> parentResourceTypes)
public void addParentResourceType(ResourceType parentResourceType)
parentResourceType
- public void removeParentResourceType(ResourceType oldParentResourceType)
oldParentResourceType
- public Set<ResourceType> getChildResourceTypes()
public void addChildResourceType(ResourceType childResourceType)
childResourceType
- public void removeChildResourceType(ResourceType oldChildResourceType)
oldChildResourceType
- public void setChildResourceTypes(Set<ResourceType> childResourceTypes)
public ConfigurationDefinition getPluginConfigurationDefinition()
public void setPluginConfigurationDefinition(ConfigurationDefinition pluginConfigurationDefinition)
public ConfigurationDefinition getResourceConfigurationDefinition()
public void setResourceConfigurationDefinition(ConfigurationDefinition resourceConfigurationDefinition)
public ResourceTypeBundleConfiguration getResourceTypeBundleConfiguration()
public void setResourceTypeBundleConfiguration(ResourceTypeBundleConfiguration rtbc)
public Set<MeasurementDefinition> getMetricDefinitions()
public void setMetricDefinitions(Set<MeasurementDefinition> metricDefinitions)
public boolean addMetricDefinition(MeasurementDefinition metricDef)
public Set<EventDefinition> getEventDefinitions()
public void setEventDefinitions(Set<EventDefinition> eventDefinitions)
public void addEventDefinition(EventDefinition eventDefinition)
public Set<OperationDefinition> getOperationDefinitions()
public void setOperationDefinitions(Set<OperationDefinition> operationDefinitions)
public boolean addOperationDefinition(OperationDefinition operationDefinition)
public Set<ProcessScan> getProcessScans()
public void setProcessScans(Set<ProcessScan> processScans)
public boolean addProcessScan(ProcessScan processMatch)
public Set<PackageType> getPackageTypes()
public void setPackageTypes(Set<PackageType> packageTypes)
public void addPackageType(PackageType packageType)
public void removePackageType(PackageType packageType)
public List<ResourceSubCategory> getChildSubCategories()
public void setChildSubCategories(List<ResourceSubCategory> subCategories)
subCategories
- the List of ResourceSubCategory's for this ResourceTypepublic void addChildSubCategory(ResourceSubCategory subCategory)
public Set<ProductVersion> getProductVersions()
public void setProductVersions(Set<ProductVersion> productVersions)
public String getHelpText()
public void setHelpText(String helpText)
public ClassLoaderType getClassLoaderType()
public void setClassLoaderType(ClassLoaderType classLoaderType)
public BundleType getBundleType()
public void setBundleType(BundleType bundleType)
public Set<DriftDefinitionTemplate> getDriftDefinitionTemplates()
public void addDriftDefinitionTemplate(DriftDefinitionTemplate template)
public void setDriftDefinitionTemplates(Set<DriftDefinitionTemplate> driftDefinitionTemplates)
public int compareTo(ResourceType that)
compareTo
in interface Comparable<ResourceType>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |