org.opennms.netmgt.collectd.jdbc
Class JdbcSingleInstanceCollectionResource

java.lang.Object
  extended by org.opennms.netmgt.collectd.AbstractCollectionResource
      extended by org.opennms.netmgt.collectd.jdbc.JdbcCollectionResource
          extended by org.opennms.netmgt.collectd.jdbc.JdbcSingleInstanceCollectionResource
All Implemented Interfaces:
CollectionResource, ResourceIdentifier

public class JdbcSingleInstanceCollectionResource
extends JdbcCollectionResource


Field Summary
 
Fields inherited from class org.opennms.netmgt.collectd.AbstractCollectionResource
m_agent
 
Constructor Summary
JdbcSingleInstanceCollectionResource(CollectionAgent agent)
           
 
Method Summary
 String getInstance()
          Returns the name of the instance this CollectionResource represents.
 String getResourceTypeName()
          Returns a string which indicates what type of resource.
 String toString()
           
 
Methods inherited from class org.opennms.netmgt.collectd.jdbc.JdbcCollectionResource
getParent, getTimeKeeper, getType, rescanNeeded, setAttributeValue, shouldPersist
 
Methods inherited from class org.opennms.netmgt.collectd.AbstractCollectionResource
addAttribute, getGroup, getLabel, getOwnerName, getResourceDir, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcSingleInstanceCollectionResource

public JdbcSingleInstanceCollectionResource(CollectionAgent agent)
Method Detail

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.