|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.utils.IfLabel
public class IfLabel
A convenience class for methods to encode/decode ifLabel descriptions for storing SNMP data in an RRD file.
| Field Summary | |
|---|---|
protected static ThreadCategory |
log
Constant log |
| Constructor Summary | |
|---|---|
IfLabel()
|
|
| Method Summary | |
|---|---|
static String |
getIfLabel(int nodeId,
String ipAddr)
getIfLabel |
static String |
getIfLabel(String name,
String descr,
String physAddr)
getIfLabel |
static String |
getIfLabelfromIfIndex(int nodeId,
String ipAddr,
int ifIndex)
getIfLabelfromIfIndex |
static String |
getIfLabelfromSnmpIfIndex(int nodeId,
int ifIndex)
Return the ifLabel as a string for the given node and ifIndex. |
static String[] |
getIfLabels(int nodeId)
Get the interface labels for each interface on a given node. |
static Map<String,String> |
getInterfaceInfoFromIfLabel(int nodeId,
String ifLabel)
Return a map of useful SNMP information for the interface specified by the nodeId and ifLabel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ThreadCategory log
log
| Constructor Detail |
|---|
public IfLabel()
| Method Detail |
|---|
public static Map<String,String> getInterfaceInfoFromIfLabel(int nodeId,
String ifLabel)
nodeId - Node idifLabel - Interface label of format: SQLException - if error occurs accessing the database.
public static String[] getIfLabels(int nodeId)
throws SQLException
nodeId - a int.
String objects.
SQLException - if any.
public static String getIfLabel(int nodeId,
String ipAddr)
getIfLabel
nodeId - a int.ipAddr - a String object.
String object.
public static String getIfLabelfromIfIndex(int nodeId,
String ipAddr,
int ifIndex)
getIfLabelfromIfIndex
nodeId - a int.ipAddr - a String object.ifIndex - a int.
String object.
public static String getIfLabelfromSnmpIfIndex(int nodeId,
int ifIndex)
nodeId - a int.ifIndex - a int.
public static String getIfLabel(String name,
String descr,
String physAddr)
getIfLabel
name - a String object.descr - a String object.physAddr - a String object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||