org.opennms.netmgt.collectd.jdbc
Class JdbcCollectionResource

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

public abstract class JdbcCollectionResource
extends AbstractCollectionResource


Field Summary
 
Fields inherited from class org.opennms.netmgt.collectd.AbstractCollectionResource
m_agent
 
Constructor Summary
JdbcCollectionResource(CollectionAgent agent)
           
 
Method Summary
abstract  String getInstance()
          Returns the name of the instance this CollectionResource represents.
abstract  String getResourceTypeName()
          Returns a string which indicates what type of resource.
 int getType()
          getType
 boolean rescanNeeded()
          rescanNeeded
 void setAttributeValue(CollectionAttributeType type, String value)
           
 boolean shouldPersist(ServiceParameters params)
          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, toString, wait, wait, wait
 

Constructor Detail

JdbcCollectionResource

public JdbcCollectionResource(CollectionAgent agent)
Method Detail

shouldPersist

public boolean shouldPersist(ServiceParameters params)
Description copied from class: AbstractCollectionResource

shouldPersist

Specified by:
shouldPersist in interface CollectionResource
Specified by:
shouldPersist in class AbstractCollectionResource
Parameters:
params - a ServiceParameters object.
Returns:
a boolean.

rescanNeeded

public boolean rescanNeeded()
Description copied from class: AbstractCollectionResource

rescanNeeded

Specified by:
rescanNeeded in interface CollectionResource
Specified by:
rescanNeeded in class AbstractCollectionResource
Returns:
a boolean.

setAttributeValue

public void setAttributeValue(CollectionAttributeType type,
                              String value)

getType

public int getType()
Description copied from class: AbstractCollectionResource

getType

Specified by:
getType in interface CollectionResource
Specified by:
getType in class AbstractCollectionResource
Returns:
a int.

getResourceTypeName

public abstract 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

Returns:
a String object.

getInstance

public abstract 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

Returns:
a String object.


Copyright © 2011. All Rights Reserved.