org.opennms.netmgt.collectd.jdbc
Class JdbcSingleInstanceCollectionResource
java.lang.Object
org.opennms.netmgt.collectd.AbstractCollectionResource
org.opennms.netmgt.collectd.jdbc.JdbcCollectionResource
org.opennms.netmgt.collectd.jdbc.JdbcSingleInstanceCollectionResource
- All Implemented Interfaces:
- CollectionResource, ResourceIdentifier
public class JdbcSingleInstanceCollectionResource
- extends JdbcCollectionResource
JdbcSingleInstanceCollectionResource
public JdbcSingleInstanceCollectionResource(CollectionAgent agent)
getResourceTypeName
public String getResourceTypeName()
- Description copied from interface:
CollectionResource
- Returns a string which indicates what type of resource.
Will be one of
"node" for the node level resource
"if" for network interface resources
"*" for all other resource types defined in the relevant config files, e.g. hrStorage
- Specified by:
getResourceTypeName in interface CollectionResource- Specified by:
getResourceTypeName in class JdbcCollectionResource
- Returns:
- a
String object.
getInstance
public String getInstance()
- Description copied from interface:
CollectionResource
- Returns the name of the instance this CollectionResource represents. For node level resources, this will be null
to indicate the default instance. For interface level resources, some label unique to the node (ifIndex probably)
For Generic resources (e.g. the SNMP GenericIndexResource), this will be some identifying label, probably the index in the table
- Specified by:
getInstance in interface CollectionResource- Specified by:
getInstance in class JdbcCollectionResource
- Returns:
- a
String object.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.