Class ResourceType
- java.lang.Object
-
- org.opennms.netmgt.config.datacollection.ResourceType
-
- All Implemented Interfaces:
java.io.Serializable
,ResourceType
public class ResourceType extends java.lang.Object implements java.io.Serializable, ResourceType
a custom resource type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getLabel()
resource type label (this is what users see in the webUI)java.lang.String
getName()
resource type namePersistenceSelectorStrategy
getPersistenceSelectorStrategy()
Selects a PersistenceSelectorStrategy that decides which data is persisted and which is not.java.lang.String
getResourceLabel()
resource label expression (this is what users see in the webUI for each resource of this type)StorageStrategy
getStorageStrategy()
Selects a StorageStrategy that decides where data is stored.int
hashCode()
void
setLabel(java.lang.String label)
void
setName(java.lang.String name)
void
setPersistenceSelectorStrategy(PersistenceSelectorStrategy strategy)
void
setResourceLabel(java.lang.String resourceLabel)
void
setStorageStrategy(StorageStrategy strategy)
java.lang.String
toString()
void
visit(DatacollectionConfigVisitor visitor)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
resource type name- Specified by:
getName
in interfaceResourceType
-
setName
public void setName(java.lang.String name)
-
getLabel
public java.lang.String getLabel()
resource type label (this is what users see in the webUI)- Specified by:
getLabel
in interfaceResourceType
-
setLabel
public void setLabel(java.lang.String label)
-
getResourceLabel
public java.lang.String getResourceLabel()
resource label expression (this is what users see in the webUI for each resource of this type)- Specified by:
getResourceLabel
in interfaceResourceType
-
setResourceLabel
public void setResourceLabel(java.lang.String resourceLabel)
-
getPersistenceSelectorStrategy
public PersistenceSelectorStrategy getPersistenceSelectorStrategy()
Selects a PersistenceSelectorStrategy that decides which data is persisted and which is not.- Specified by:
getPersistenceSelectorStrategy
in interfaceResourceType
-
setPersistenceSelectorStrategy
public void setPersistenceSelectorStrategy(PersistenceSelectorStrategy strategy)
-
getStorageStrategy
public StorageStrategy getStorageStrategy()
Selects a StorageStrategy that decides where data is stored.- Specified by:
getStorageStrategy
in interfaceResourceType
-
setStorageStrategy
public void setStorageStrategy(StorageStrategy strategy)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
visit
public void visit(DatacollectionConfigVisitor visitor)
-
-