public class InterfaceSnmpByIfIndexResourceType extends Object implements OnmsResourceType
InterfaceSnmpResourceType
,
allowing SNMP interfaces to be queried using the ifIndex instead of the interface
name as stored in the metric repository.
i.e. interfaceSnmpByIfIndex[2] vs interfaceSnmp[em1-74867ad4b828]Modifier | Constructor and Description |
---|---|
protected |
InterfaceSnmpByIfIndexResourceType(InterfaceSnmpResourceType interfaceSnmpResourceType) |
Modifier and Type | Method and Description |
---|---|
OnmsResource |
getChildByName(OnmsResource parent,
String name)
Retrieves a child resource with the given name from the parent.
|
String |
getLabel()
Provides a human-friendly label for this resource type.
|
String |
getLinkForResource(OnmsResource resource)
getLinkForResource
|
String |
getName()
Provides a unique name for this resource type.
|
List<OnmsResource> |
getResourcesForParent(OnmsResource parent)
Returns the set of resources that are available on the given
parent.
|
boolean |
isResourceTypeOnParent(OnmsResource parent)
Returns true if one on more instances of the resource type
are present on the parent resource.
|
public static final String TYPE_NAME
protected InterfaceSnmpByIfIndexResourceType(InterfaceSnmpResourceType interfaceSnmpResourceType)
public String getName()
OnmsResourceType
getName
in interface OnmsResourceType
public String getLabel()
OnmsResourceType
getLabel
in interface OnmsResourceType
public String getLinkForResource(OnmsResource resource)
getLinkForResource
getLinkForResource
in interface OnmsResourceType
resource
- a OnmsResource
object.String
object.public boolean isResourceTypeOnParent(OnmsResource parent)
OnmsResourceType
isResourceTypeOnParent
in interface OnmsResourceType
public List<OnmsResource> getResourcesForParent(OnmsResource parent)
OnmsResourceType
getResourcesForParent
in interface OnmsResourceType
public OnmsResource getChildByName(OnmsResource parent, String name)
getChildByName
in interface OnmsResourceType
Copyright © 2020. All rights reserved.