org.opennms.netmgt.collectd.jdbc
Class JdbcMultiInstanceCollectionResource

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.JdbcMultiInstanceCollectionResource
All Implemented Interfaces:
CollectionResource, ResourceIdentifier

public class JdbcMultiInstanceCollectionResource
extends JdbcCollectionResource


Field Summary
 
Fields inherited from class org.opennms.netmgt.collectd.AbstractCollectionResource
m_agent
 
Constructor Summary
JdbcMultiInstanceCollectionResource(CollectionAgent agent, String instance, String name)
           
 
Method Summary
 String getInstance()
          Returns the name of the instance this CollectionResource represents.
 File getResourceDir(RrdRepository repository)
          getResourceDir
 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, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcMultiInstanceCollectionResource

public JdbcMultiInstanceCollectionResource(CollectionAgent agent,
                                           String instance,
                                           String name)
Method Detail

getResourceDir

public File getResourceDir(RrdRepository repository)
Description copied from class: AbstractCollectionResource

getResourceDir

Specified by:
getResourceDir in interface ResourceIdentifier
Overrides:
getResourceDir in class AbstractCollectionResource
Parameters:
repository - a RrdRepository object.
Returns:
a File object.

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.