org.opennms.netmgt.collectd.jdbc
Class JdbcMultiInstanceCollectionResource
java.lang.Object
org.opennms.netmgt.collectd.AbstractCollectionResource
org.opennms.netmgt.collectd.jdbc.JdbcCollectionResource
org.opennms.netmgt.collectd.jdbc.JdbcMultiInstanceCollectionResource
- All Implemented Interfaces:
- CollectionResource, ResourceIdentifier
public class JdbcMultiInstanceCollectionResource
- extends JdbcCollectionResource
JdbcMultiInstanceCollectionResource
public JdbcMultiInstanceCollectionResource(CollectionAgent agent,
String instance,
String name)
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.