public class SnmpInterface extends Object
Constructor and Description |
---|
SnmpInterface(int nodeId,
String foreignSource,
String foreignId,
String ifDescr,
String ifName,
String physAddr,
boolean storeByForeignSource)
Instantiates a new SNMP interface.
|
SnmpInterface(ResultSet rs,
boolean storeByForeignSource)
Instantiates a new SNMP interface.
|
Modifier and Type | Method and Description |
---|---|
String |
getForeignId()
Gets the foreign id.
|
String |
getForeignSource()
Gets the foreign source.
|
String |
getIfDescr()
Gets the interface description.
|
String |
getIfName()
Gets the interface name.
|
ResourceId |
getNewResourceId()
Gets the new resource id.
|
String |
getNewRrdLabel()
Gets the new RRD label.
|
int |
getNodeId()
Gets the node id.
|
ResourceId |
getOldResourceId()
Gets the old resource id.
|
String |
getOldRrdLabel()
Gets the old RRD label.
|
String |
getPhysAddr()
Gets the physical address.
|
protected void |
initialize()
Initialize.
|
boolean |
shouldUpdate(String resourceId)
Checks if the resourceId should be updated.
|
String |
toString() |
public SnmpInterface(ResultSet rs, boolean storeByForeignSource) throws SQLException
rs
- the ResultSetstoreByForeignSource
- true, if the store by foreign source is enabledSQLException
- the SQL exceptionpublic SnmpInterface(int nodeId, String foreignSource, String foreignId, String ifDescr, String ifName, String physAddr, boolean storeByForeignSource)
nodeId
- the node idforeignSource
- the foreign sourceforeignId
- the foreign idifDescr
- the SNMP interface descriptionifName
- the SNMP interface namephysAddr
- the SNMP physical addressstoreByForeignSource
- true, if store by foreign source is enabledprotected void initialize()
public int getNodeId()
public String getForeignId()
public String getForeignSource()
public String getIfName()
public String getIfDescr()
public String getPhysAddr()
public String getOldRrdLabel()
public String getNewRrdLabel()
public ResourceId getOldResourceId()
public ResourceId getNewResourceId()
public boolean shouldUpdate(String resourceId)
resourceId
- the resource id to checkCopyright © 2021. All rights reserved.