|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmp.SNMPEntity
This class represents an SNMP Entity. That is an IP address.
It is required for all protocol operations. One is required to transmit a PDU, and one will be provided on the arrival of both a response, and a Trap PDU.
SNMP
,
SNMPContext
,
SNMPPDU
Constructor Summary | |
---|---|
SNMPEntity(com.tivoli.twg.snmp.SNMPAddressBlock[] addressBlocks)
Construct An SNMPEntity for use with any protocol operation. |
|
SNMPEntity(SNMP session,
java.lang.String address)
Deprecated. |
|
SNMPEntity(java.lang.String address)
Construct An SNMPEntity for use with any protocol operation. |
Method Summary | |
---|---|
int |
GetActualRetry()
This method will return the actual retry number for this entity. |
int |
GetActualTimeout()
This method will return the actual timeout value, as reported for an entitity. |
java.lang.String |
GetAddress()
This method will return the string version of the address represented by this instance of the SNMPEntity class. |
java.lang.String |
GetAddress(int index)
This method will return the string version of the address represented by this instance of the SNMPEntity class. |
com.tivoli.twg.snmp.SNMPAddressBlock[] |
getAddressList()
Return the address blocks for this entity. |
int |
getAddressListLength()
Return the number of address for this entity. |
int |
GetPolicyRetry()
This method will return the number of retries to be attempted for this entity. |
int |
GetPolicyTimeout()
This method will return the Policy timeout set for this entity. |
int |
GetPort()
Return port number Used only for pure Java stack |
int |
SetPolicyRetry(int retry)
This method will allow the setting of the retry policy for this entity. |
int |
SetPolicyTimeout(int time)
This method allows the setting of the timeout policy for this entity. |
int |
SetPort(int Port)
Used to set the Port number associated with this address entity to something other then the default port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SNMPEntity(java.lang.String address)
address
- A string representing the addressing information.
Example: "1.2.3.4"public SNMPEntity(com.tivoli.twg.snmp.SNMPAddressBlock[] addressBlocks)
addressBlocks
- block of addresses that represent this entitypublic SNMPEntity(SNMP session, java.lang.String address)
session
- An instance of the SNMP class, ie, the protocol stackaddress
- A string representing the addressing information.
Example: "1.2.3.4"Method Detail |
public final java.lang.String GetAddress()
public final java.lang.String GetAddress(int index)
index
- index to address block of interest
public com.tivoli.twg.snmp.SNMPAddressBlock[] getAddressList()
public int getAddressListLength()
public final int SetPort(int Port)
Port
- number that should be used in place of the default.
public final int GetPort()
public final int GetPolicyTimeout()
public final int SetPolicyTimeout(int time)
time
- int msecs to be used for timeouts
public final int GetActualTimeout()
public final int GetPolicyRetry()
public final int SetPolicyRetry(int retry)
public final int GetActualRetry()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |