com.adventnet.snmp.beans
Class V3HandShakeResultEvent

java.lang.Object
  |
  +--com.adventnet.snmp.beans.V3HandShakeResultEvent

public class V3HandShakeResultEvent
extends java.lang.Object

This class is the event generated on executing async_create_v3_tables(). The event describes if the SnmpEngineID discovery and time synchronization succeeded for a particular user on a particular host/port.


Constructor Summary
V3HandShakeResultEvent(java.lang.String error)
          Instantiates a V3HandShakeEvent with the specified error message.
V3HandShakeResultEvent(java.lang.String error, java.lang.String result)
          Instantiates a V3HandShakeEvent with the specified error and Result message.
 
Method Summary
 java.lang.String getErrorString()
          Gets the error string incase the SnmpEngineID discovery and the time synchronization was unsuccessful.
 java.lang.String getPrincipal()
          Gets the principal associated with the SnmpEngineID discovery/time synchronization request that is sent.
 java.lang.String getResult()
          Get the Result string associated with the SnmpEngineID discovery and the time synchronization.
 java.lang.String getTargetHost()
          Gets the target host to which an SnmpEngineID discovery/time synchronization request is sent.
 int getTargetPort()
          Gets the target port to which an SnmpEngineID discovery/time synchronization request is sent.
 boolean isSuccess()
          Specifies if the SnmpEngineID discovery and the time synchronization was successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

V3HandShakeResultEvent

public V3HandShakeResultEvent(java.lang.String error)
Instantiates a V3HandShakeEvent with the specified error message.

V3HandShakeResultEvent

public V3HandShakeResultEvent(java.lang.String error,
                              java.lang.String result)
Instantiates a V3HandShakeEvent with the specified error and Result message.
Method Detail

isSuccess

public boolean isSuccess()
Specifies if the SnmpEngineID discovery and the time synchronization was successful.

getErrorString

public java.lang.String getErrorString()
Gets the error string incase the SnmpEngineID discovery and the time synchronization was unsuccessful. Returns null, incase isSuccess method returns true.

getResult

public java.lang.String getResult()
Get the Result string associated with the SnmpEngineID discovery and the time synchronization. Returns getErrorString incase isSuccess method returns false.

getTargetHost

public java.lang.String getTargetHost()
Gets the target host to which an SnmpEngineID discovery/time synchronization request is sent.

getTargetPort

public int getTargetPort()
Gets the target port to which an SnmpEngineID discovery/time synchronization request is sent.

getPrincipal

public java.lang.String getPrincipal()
Gets the principal associated with the SnmpEngineID discovery/time synchronization request that is sent.


Copyright (c)AdventNet Inc., 1996-2004