|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStructures.Router
public class Router
Router Class holds the information needed for every discovered router.
Field Summary | |
---|---|
static java.lang.String |
engineID_OID
|
static java.lang.String |
hostName_OID
|
static java.lang.String |
if_OID
|
static java.lang.String |
ifEntry_OID
|
static java.lang.String |
ifIndex_OID
|
static java.lang.String |
ifTable_OID
|
static java.lang.String |
inOctets_OID
|
static java.lang.String |
ipAdEntAddr_OID
|
static java.lang.String |
ipAdEntryIndex_OID
|
static java.lang.String |
ipRouteNextHop_OID
|
static java.lang.String |
ipRouteType_OID
|
Constructor Summary | |
---|---|
Router()
Empty constructor for the class |
|
Router(java.lang.String hname,
java.lang.String rid,
byte[] eid,
java.util.Vector<java.lang.String> ilist,
java.util.Vector<java.lang.String> neighb,
LoadCollection loads)
|
Method Summary | |
---|---|
java.lang.String |
getEngineID()
This method returns the ENGINE ID of the router |
java.lang.String |
getHostName()
This method returns the host name of the router |
java.util.Vector<java.lang.String> |
getIfList()
This method returns a list holding the interfaces of the router |
java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> |
getIfListTable()
This method returns the Interfaces List of the router |
java.lang.String[][] |
getInterfacesInfo()
Creates a [x,3] table holding index, description and IP address of all of the interfaces of the router. |
java.util.Vector<java.lang.String> |
getIpAddresses()
This method returns a list with all the IP neighbors of the router |
java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> |
getIpListTable()
This method returns the IP List of the router |
LoadCollection |
getLoadCollection()
|
java.util.Vector<java.lang.String> |
getNeighbors()
This method returns a list with all the IP neighbors of the router |
java.lang.String |
getRouterID()
This method returns the ROUTER ID of the router |
java.lang.String |
getXMLRepresentation()
|
void |
printInterfacesInfo()
Prints the information collected about the routers interface in a human readable format |
void |
printIPAddressesInfo()
Prints a table showing the IP address of all the router's interfaces |
void |
printIPNeighborsInfo()
Prints the previously discovered IP neighbors of the router |
void |
registerIpAddress(java.lang.String ipAddress)
|
void |
setEngineID(byte[] engineID)
This method sets the Engine ID of the router |
void |
setHostName(java.lang.String hostName)
This method sets the ROUTER ID of the router |
void |
setIfListTable(java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> hashTable)
This method sets the Interfaces List of the router |
void |
setIpAddresses(java.util.Vector<java.lang.String> ipAddresses)
|
void |
setIpListTable(java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> hashTable)
This method sets the IP List of the router |
void |
setLoadCollection(LoadCollection loadCollection)
|
void |
setNeighbors(java.util.Vector<java.lang.String> neighb)
|
void |
setRouterID(java.lang.String routerID)
This method sets the ROUTER ID of the router |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String hostName_OID
public static final java.lang.String engineID_OID
public static final java.lang.String ipAdEntAddr_OID
public static final java.lang.String ipRouteNextHop_OID
public static final java.lang.String ipRouteType_OID
public static final java.lang.String ifEntry_OID
public static final java.lang.String ifIndex_OID
public static final java.lang.String ipAdEntryIndex_OID
public static final java.lang.String ifTable_OID
public static final java.lang.String if_OID
public static final java.lang.String inOctets_OID
Constructor Detail |
---|
public Router(java.lang.String hname, java.lang.String rid, byte[] eid, java.util.Vector<java.lang.String> ilist, java.util.Vector<java.lang.String> neighb, LoadCollection loads)
hname
- The hostname of the routerrid
- The ROUTER ID of the routereid
- The ENGINE ID of the routerilist
- The list of the router interfacesneighb
- The list of the IP addresses of the router's IP neighborspublic Router()
Method Detail |
---|
public java.lang.String getRouterID()
public void setRouterID(java.lang.String routerID)
routerID
- ROUTER ID of the routerpublic java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> getIpListTable()
public void setIpListTable(java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> hashTable)
hashTable
- IP List of the routerpublic java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> getIfListTable()
public void setIfListTable(java.util.Hashtable<com.adventnet.snmp.snmp2.SnmpOID,com.adventnet.snmp.snmp2.SnmpVar> hashTable)
hashTable
- Interfaces List of the routerpublic java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
hostName
- HostName of the routerpublic java.lang.String getEngineID()
public void setEngineID(byte[] engineID)
engineID
- EngineID of the routerpublic java.util.Vector<java.lang.String> getIfList()
public java.util.Vector<java.lang.String> getNeighbors()
public void setNeighbors(java.util.Vector<java.lang.String> neighb)
public java.util.Vector<java.lang.String> getIpAddresses()
public void setIpAddresses(java.util.Vector<java.lang.String> ipAddresses)
public void registerIpAddress(java.lang.String ipAddress)
public void printInterfacesInfo()
public void printIPAddressesInfo()
public void printIPNeighborsInfo()
public java.lang.String[][] getInterfacesInfo() throws java.lang.Exception
java.lang.Exception
public java.lang.String getXMLRepresentation()
public void setLoadCollection(LoadCollection loadCollection)
public LoadCollection getLoadCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |