Package org.opennms.netmgt.dao.support
Class NodeResourceType
- java.lang.Object
-
- org.opennms.netmgt.dao.support.AbstractTopLevelResourceType
-
- org.opennms.netmgt.dao.support.NodeResourceType
-
- All Implemented Interfaces:
OnmsResourceType
public final class NodeResourceType extends AbstractTopLevelResourceType
Nodes are top-level resources stored in paths like: snmp/${nodeId}/ds.rrd or when storeByFs is enabled: snmp/fs/${fs}/${fid}/ds.rrd Note that the node resource may exist even if it's path is empty since we consider response time resources, which are stored in other folders, to be children.
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESOURCE_TYPE_NAME
-
Constructor Summary
Constructors Constructor Description NodeResourceType(ResourceDao resourceDao, NodeDao nodeDao)
Constructor for NodeResourceType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OnmsResource
createResourceForNode(OnmsNode node)
String
getLabel()
getLabelString
getLinkForResource(OnmsResource resource)
getLinkForResourceString
getName()
getNameOnmsResource
getResourceByName(String nodeLookupCriteria)
protected static ResourcePath
getResourcePathForNode(OnmsNode node)
List<OnmsResource>
getTopLevelResources()
static boolean
isNode(OnmsResource resource)
Convenience method.-
Methods inherited from class org.opennms.netmgt.dao.support.AbstractTopLevelResourceType
getChildByName, getResourcesForParent, isResourceTypeOnParent
-
-
-
-
Field Detail
-
RESOURCE_TYPE_NAME
public static final String RESOURCE_TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NodeResourceType
public NodeResourceType(ResourceDao resourceDao, NodeDao nodeDao)
Constructor for NodeResourceType.
- Parameters:
resourceDao
- aResourceDao
object.
-
-
Method Detail
-
getLinkForResource
public String getLinkForResource(OnmsResource resource)
getLinkForResource
- Parameters:
resource
- aOnmsResource
object.- Returns:
- a
String
object.
-
getTopLevelResources
public List<OnmsResource> getTopLevelResources()
- Specified by:
getTopLevelResources
in classAbstractTopLevelResourceType
-
getResourceByName
public OnmsResource getResourceByName(String nodeLookupCriteria)
- Specified by:
getResourceByName
in classAbstractTopLevelResourceType
-
getResourcePathForNode
protected static ResourcePath getResourcePathForNode(OnmsNode node)
-
createResourceForNode
protected OnmsResource createResourceForNode(OnmsNode node)
-
isNode
public static boolean isNode(OnmsResource resource)
Convenience method.
-
-