org.opennms.netmgt.collectd
Class AliasedResource

java.lang.Object
  extended by org.opennms.netmgt.collectd.SnmpCollectionResource
      extended by org.opennms.netmgt.collectd.AliasedResource
All Implemented Interfaces:
CollectionResource, ResourceIdentifier

public class AliasedResource
extends SnmpCollectionResource

AliasedResource class.

Version:
$Id: $
Author:
ranger

Constructor Summary
AliasedResource(ResourceType resourceType, String domain, IfInfo ifInfo, String ifAliasComment, String ifAlias)
          Constructor for AliasedResource.
 
Method Summary
 String getDomain()
          getDomain
 Collection<AttributeGroup> getGroups()
          getGroups
 IfInfo getIfInfo()
          getIfInfo
 String getInstance()
          getInstance
 String getLabel()
          getLabel
 File getResourceDir(RrdRepository repository)
          getResourceDir
 String getResourceTypeName()
          getResourceTypeName
 int getType()
          getType
 boolean isScheduledForCollection()
          isScheduledForCollection
 boolean rescanNeeded()
          rescanNeeded
 boolean shouldPersist(ServiceParameters serviceParameters)
          shouldPersist
 String toString()
          toString
 void visit(CollectionSetVisitor visitor)
          visit
 
Methods inherited from class org.opennms.netmgt.collectd.SnmpCollectionResource
getCollectionAgent, getOwnerName, getResourceType, log, setAttributeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AliasedResource

public AliasedResource(ResourceType resourceType,
                       String domain,
                       IfInfo ifInfo,
                       String ifAliasComment,
                       String ifAlias)

Constructor for AliasedResource.

Parameters:
resourceType - a ResourceType object.
domain - a String object.
ifInfo - a IfInfo object.
ifAliasComment - a String object.
ifAlias - a String object.
Method Detail

getIfInfo

public IfInfo getIfInfo()

getIfInfo

Returns:
a IfInfo object.

getDomain

public String getDomain()

getDomain

Returns:
a String object.

getResourceDir

public File getResourceDir(RrdRepository repository)

getResourceDir

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

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

rescanNeeded

public boolean rescanNeeded()

rescanNeeded

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

isScheduledForCollection

public boolean isScheduledForCollection()

isScheduledForCollection

Returns:
a boolean.

shouldPersist

public boolean shouldPersist(ServiceParameters serviceParameters)

shouldPersist

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

getType

public int getType()

getType

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

visit

public void visit(CollectionSetVisitor visitor)

visit

Specified by:
visit in interface CollectionResource
Overrides:
visit in class SnmpCollectionResource
Parameters:
visitor - a CollectionSetVisitor object.

getGroups

public Collection<AttributeGroup> getGroups()

getGroups

Overrides:
getGroups in class SnmpCollectionResource
Returns:
a Collection object.

getResourceTypeName

public String getResourceTypeName()

getResourceTypeName

Returns:
a String object.

getInstance

public String getInstance()

getInstance

Returns:
a String object.

getLabel

public String getLabel()

getLabel

Returns:
a String object.


Copyright © 2011. All Rights Reserved.