public class SnmpInterfaceUpgrade extends SnmpInterface
Constructor and Description |
---|
SnmpInterfaceUpgrade(int nodeId,
String foreignSource,
String foreignId,
String ifDescr,
String ifName,
String physAddr,
boolean storeByForeignSource)
Instantiates a new SNMP interface upgrade.
|
SnmpInterfaceUpgrade(ResultSet rs,
boolean storeByForeignSource)
Instantiates a new SNMP interface upgrade.
|
Modifier and Type | Method and Description |
---|---|
File |
getNewInterfaceDir()
Gets the new interface directory.
|
File |
getNodeDir()
Gets the node directory.
|
protected File |
getNodeDirectory(int nodeId,
String foreignSource,
String foreignId)
Gets the node directory.
|
File |
getOldInterfaceDir()
Gets the old interface directory.
|
protected void |
initialize()
Initialize.
|
boolean |
shouldMerge()
Checks if the interface directories should be merged.
|
String |
toString() |
getForeignId, getForeignSource, getIfDescr, getIfName, getNewResourceId, getNewRrdLabel, getNodeId, getOldResourceId, getOldRrdLabel, getPhysAddr, shouldUpdate
public SnmpInterfaceUpgrade(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 enabledpublic SnmpInterfaceUpgrade(ResultSet rs, boolean storeByForeignSource) throws SQLException
rs
- the ResultSetstoreByForeignSource
- true, if the store by foreign source is enabledSQLException
- the SQL exceptionprotected void initialize()
SnmpInterface
initialize
in class SnmpInterface
public File getNodeDir()
public File getOldInterfaceDir()
public File getNewInterfaceDir()
public boolean shouldMerge()
protected File getNodeDirectory(int nodeId, String foreignSource, String foreignId)
nodeId
- the node idforeignSource
- the foreign sourceforeignId
- the foreign idpublic String toString()
toString
in class SnmpInterface
Copyright © 2021. All rights reserved.