|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.beans.AsyncV3HandShake
The purpose of this class is to perform discovery and timeSynchronization using asynchronous mechanism. This class implements SnmpClient and hence the response to discovery and timeSync is obtained in the callback. Once the timeSync is finished the client is removed from the session's client list.
| Field Summary | |
(package private) java.lang.String |
authPassword
|
(package private) int |
authProtocol
|
(package private) int |
discovMsgID
|
(package private) SnmpEngineEntry |
e
|
(package private) byte[] |
engineID
|
(package private) SnmpEngineTable |
engineTable
|
(package private) java.lang.String |
error
|
(package private) java.util.Hashtable |
Hostport
|
(package private) boolean |
newEntry
|
(package private) java.lang.String |
oldauthPassword
|
(package private) int |
oldauthProtocol
|
(package private) int |
oldboots
|
(package private) java.lang.String |
oldprivPassword
|
(package private) int |
oldtime
|
(package private) ProtocolOptions |
options
|
(package private) java.lang.String |
principal
|
(package private) java.lang.String |
privPassword
|
(package private) int |
privProtocol
|
(package private) java.lang.String |
result
|
(package private) SnmpServer |
server
|
(package private) SnmpSession |
session
|
(package private) java.lang.String |
targetHost
|
(package private) int |
targetPort
|
(package private) long |
time1
|
(package private) int |
timeSyncMsgID
|
(package private) USMUserEntry |
u
|
(package private) USMUserTable |
usmTable
|
| Constructor Summary | |
(package private) |
AsyncV3HandShake(SnmpServer server)
Maintain the reference to SnmpServer, USMUserEntry, SnmpEngineEntry and SnmpSession |
| Method Summary | |
boolean |
authenticate(SnmpPDU pdu,
java.lang.String community)
The client's authenticate method. |
boolean |
callback(SnmpSession session,
SnmpPDU pdu,
int requestID)
The client's callback method. |
void |
debugPrint(java.lang.String s)
The client's debugPrint method. |
(package private) void |
logErrorMessage(java.lang.String error)
All the methods of this class, which needs to redirect an error message to the LogManger or to the standard console, can use this method. |
(package private) void |
logInfoMessage(java.lang.String info)
All the methods of this class, which needs to redirect an info message to the LogManger or to the standard console, can use this method. |
(package private) void |
performDiscoveryTimeSync()
Sends a discovery/timeSync request using asynchronous mechanism. |
(package private) void |
performTimeSync()
Sends a timeSync request. |
void |
run()
|
(package private) void |
setAuthPassword(java.lang.String passwd)
Set the authPassword on this object. |
(package private) void |
setAuthProtocol(int protocol)
Set the AuthProtocol to on this object. |
(package private) void |
setEngineID(byte[] eid)
Set the engine ID on this object. |
(package private) void |
setPrincipal(java.lang.String user)
Set the userName/Principal on this object. |
(package private) void |
setPrivPassword(java.lang.String passwd)
Set the privPassword on this object. |
(package private) void |
setPrivProtocol(int protocol)
Set the PrivProtocol to on this object. |
(package private) void |
setProtocolOptions(ProtocolOptions options)
Set the ProtocolOptions on this object incase of transport mechanism other than UDP. |
(package private) void |
setTargetHost(java.lang.String host)
Set the hostName on this object. |
(package private) void |
setTargetPort(int port)
Set the port on this object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String targetHost
int targetPort
ProtocolOptions options
java.lang.String principal
byte[] engineID
java.lang.String authPassword
java.lang.String privPassword
int authProtocol
int privProtocol
long time1
int oldboots
int oldtime
int oldauthProtocol
java.lang.String oldauthPassword
java.lang.String oldprivPassword
boolean newEntry
java.util.Hashtable Hostport
SnmpEngineTable engineTable
USMUserTable usmTable
SnmpEngineEntry e
USMUserEntry u
SnmpServer server
SnmpSession session
int discovMsgID
int timeSyncMsgID
java.lang.String result
java.lang.String error
| Constructor Detail |
AsyncV3HandShake(SnmpServer server)
| Method Detail |
public void debugPrint(java.lang.String s)
public boolean authenticate(SnmpPDU pdu,
java.lang.String community)
public boolean callback(SnmpSession session,
SnmpPDU pdu,
int requestID)
void performDiscoveryTimeSync()
void performTimeSync()
public void run()
void setTargetHost(java.lang.String host)
host - The hostName to be set on this object.void setTargetPort(int port)
port - The port to be set on this object.void setProtocolOptions(ProtocolOptions options)
options - The ProtocolOptions to be set on this object.void setPrincipal(java.lang.String user)
user - The userName to be set on this object.void setAuthPassword(java.lang.String passwd)
passwd - The authPassword to be set on this object.void setPrivPassword(java.lang.String passwd)
passwd - The privPassword to be set on this object.void setEngineID(byte[] eid)
byte - Array of engineIDvoid setAuthProtocol(int protocol)
protocol - The authProtocol to be set on ths object.void setPrivProtocol(int protocol)
protocol - The privProtocol to be set on ths object.void logErrorMessage(java.lang.String error)
void logInfoMessage(java.lang.String info)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||