public abstract class WmiCollectionResource extends AbstractCollectionResource
Abstract WmiCollectionResource class.
Modifier and Type | Field and Description |
---|---|
protected CollectionAgent |
m_agent |
protected int |
m_nodeId |
Constructor and Description |
---|
WmiCollectionResource(CollectionAgent agent)
Constructor for WmiCollectionResource.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getInstance()
getInstance
|
String |
getParent()
Returns the name of the parent resource.
|
abstract String |
getResourceTypeName()
getResourceTypeName
|
int |
getType()
getType
|
boolean |
rescanNeeded()
rescanNeeded
|
void |
setAttributeValue(CollectionAttributeType type,
String value)
setAttributeValue
|
boolean |
shouldPersist(ServiceParameters params)
shouldPersist
|
addAttribute, getGroup, getLabel, getOwnerName, getResourceDir, getTimeKeeper, visit
protected int m_nodeId
protected CollectionAgent m_agent
public WmiCollectionResource(CollectionAgent agent)
Constructor for WmiCollectionResource.
agent
- a CollectionAgent
object.public int getType()
getType
getType
in interface CollectionResource
getType
in class AbstractCollectionResource
public boolean rescanNeeded()
rescanNeeded
rescanNeeded
in interface CollectionResource
rescanNeeded
in class AbstractCollectionResource
public boolean shouldPersist(ServiceParameters params)
shouldPersist
shouldPersist
in interface CollectionResource
shouldPersist
in class AbstractCollectionResource
params
- a org.opennms.netmgt.collectd.ServiceParameters
object.public void setAttributeValue(CollectionAttributeType type, String value)
setAttributeValue
type
- a CollectionAttributeType
object.value
- a String
object.public abstract String getResourceTypeName()
getResourceTypeName
String
object.public String getParent()
CollectionResource
String
object.Copyright © 2015. All Rights Reserved.