public final class DbSnmpInterfaceEntry extends Object
Once loaded or create, the class tracks any changes and will write those
changes to the database whenever the store
method is invoked.
If a database connection is not passed to the store method, then a temporary
one is allocated to write the results.
NOTE: if the connection is passed in and is not in auto commit mode, then the
caller must call commit
to inform the database that the
transaction is complete.
Modifier and Type | Method and Description |
---|---|
static DbSnmpInterfaceEntry |
create(int nid,
int ifIndex)
Deprecated.
Creates a new entry.
|
static DbSnmpInterfaceEntry |
get(Connection db,
long nodeId,
int ifIndex)
Deprecated.
Retrieves a current record from the database based upon the key fields of
nodeID and ifIndex.
|
static DbSnmpInterfaceEntry |
get(long nodeId,
int ifIndex)
Deprecated.
Retrieves a current record from the database based upon the key fields of
nodeID and ifindex.
|
int |
getAdminStatus()
Deprecated.
|
String |
getAlias()
Deprecated.
|
String |
getCollect()
Deprecated.
|
String |
getDescription()
Deprecated.
|
int |
getIfIndex()
Deprecated.
Returns the current ifIndex
|
String |
getName()
Deprecated.
|
InetAddress |
getNetmask()
Deprecated.
|
long |
getNodeId()
Deprecated.
Returns the node entry's unique identifier.
|
int |
getOperationalStatus()
Deprecated.
|
String |
getPhysicalAddress()
Deprecated.
|
long |
getSpeed()
Deprecated.
|
int |
getType()
Deprecated.
|
boolean |
hasAdminStatusChanged()
Deprecated.
|
boolean |
hasAliasChanged()
Deprecated.
|
boolean |
hasCollectChanged()
Deprecated.
|
boolean |
hasDescriptionChanged()
Deprecated.
|
boolean |
hasIfIndex()
Deprecated.
Returns true if the ifIndex is defined.
|
boolean |
hasNameChanged()
Deprecated.
|
boolean |
hasNetmaskChanged()
Deprecated.
|
boolean |
hasOperationalStatusChanged()
Deprecated.
|
boolean |
hasPhysicalAddressChanged()
Deprecated.
|
boolean |
hasSpeedChanged()
Deprecated.
|
boolean |
hasTypeChanged()
Deprecated.
|
static void |
main(String[] args)
Deprecated.
For debugging only
|
void |
setAdminStatus(int status)
Deprecated.
|
void |
setAlias(String alias)
Deprecated.
|
void |
setCollect(String collect)
Deprecated.
|
void |
setDescription(String descr)
Deprecated.
|
void |
setName(String name)
Deprecated.
|
void |
setNetmask(InetAddress mask)
Deprecated.
|
void |
setOperationalStatus(int status)
Deprecated.
|
void |
setPhysicalAddress(String addr)
Deprecated.
|
void |
setSpeed(long speed)
Deprecated.
|
void |
setType(int type)
Deprecated.
|
void |
store()
Deprecated.
Updates the interface information in the configured database.
|
void |
store(Connection db)
Deprecated.
Updates the interface information in the configured database.
|
String |
toString()
Deprecated.
Creates a string that displays the internal contents of the record.
|
boolean |
updateAdminStatus(int newIfAdminStatus)
Deprecated.
|
boolean |
updateAlias(String newIfAlias)
Deprecated.
|
boolean |
updateCollect(String newCollect)
Deprecated.
|
boolean |
updateDescription(String newIfDescription)
Deprecated.
|
boolean |
updateName(String newIfName)
Deprecated.
|
boolean |
updateNetmask(InetAddress newNetmask)
Deprecated.
|
boolean |
updateOperationalStatus(int newIfOperStatus)
Deprecated.
|
boolean |
updatePhysicalAddress(String newPhysAddr)
Deprecated.
|
boolean |
updateSpeed(long newIfSpeed)
Deprecated.
|
boolean |
updateType(int newIfType)
Deprecated.
|
public long getNodeId()
public boolean hasIfIndex()
public int getIfIndex()
public InetAddress getNetmask()
public void setNetmask(InetAddress mask)
public boolean hasNetmaskChanged()
public boolean updateNetmask(InetAddress newNetmask)
public String getPhysicalAddress()
public void setPhysicalAddress(String addr)
public boolean hasPhysicalAddressChanged()
public boolean updatePhysicalAddress(String newPhysAddr)
public String getDescription()
public void setDescription(String descr)
public boolean hasDescriptionChanged()
public boolean updateDescription(String newIfDescription)
public String getName()
public void setName(String name)
public boolean hasNameChanged()
public boolean updateName(String newIfName)
public int getType()
public void setType(int type)
public boolean hasTypeChanged()
public boolean updateType(int newIfType)
public long getSpeed()
public void setSpeed(long speed)
public boolean hasSpeedChanged()
public boolean updateSpeed(long newIfSpeed)
public int getAdminStatus()
public void setAdminStatus(int status)
public boolean hasAdminStatusChanged()
public boolean updateAdminStatus(int newIfAdminStatus)
public int getOperationalStatus()
public void setOperationalStatus(int status)
public boolean hasOperationalStatusChanged()
public boolean updateOperationalStatus(int newIfOperStatus)
public String getAlias()
public void setAlias(String alias)
public boolean hasAliasChanged()
public boolean updateAlias(String newIfAlias)
public String getCollect()
public void setCollect(String collect)
public boolean hasCollectChanged()
public boolean updateCollect(String newCollect)
public void store() throws SQLException
SQLException
public void store(Connection db) throws SQLException
db
- The database connection used to write the record.SQLException
public static DbSnmpInterfaceEntry create(int nid, int ifIndex)
store
.nid
- The node id of the interface.ifIndex
- The ifIndex of the interfacepublic static DbSnmpInterfaceEntry get(long nodeId, int ifIndex) throws SQLException
nodeId
- The node id keyifIndex
- the interface index.SQLException
public static DbSnmpInterfaceEntry get(Connection db, long nodeId, int ifIndex) throws SQLException
db
- The database connection used to load the entry.nodeId
- The node id keyifIndex
- The interface index.SQLException
public String toString()
Copyright © 2017. All rights reserved.