com.adventnet.snmp.snmp2.agent
Class NativeSnmpTrap

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.NativeSnmpTrap

Deprecated. - as Aeadll.dll is not used. This class is used to implement native Trap

Aeadll.dll invokes this class to get the trap varibles to send it across to the managers configured in the box.

public class NativeSnmpTrap
extends java.lang.Object


Field Summary
 java.lang.String enterprise
          Deprecated. The enterprise OID String Value.
 int genericType
          Deprecated. This tells the Generic Trap type.
 int specificType
          Deprecated. This shows the Specific Trap type
 long timeTicks
          Deprecated. This gives the Time Ticks value.
 java.util.Vector trapVector
          Deprecated. This specifies the Trap vector.
 
Constructor Summary
NativeSnmpTrap(java.lang.String enterprise, int trapIndex, long timeTicks, java.util.Vector trapVector)
          Deprecated. Constructor to supply all variable to generate SnmpV1 Trap
 
Method Summary
 NativeSnmpVar getElementAt(int index)
          Deprecated. Getter for the Elements at the specified Index.
 java.lang.String getEnterprise()
          Deprecated. Getter for the Enterprose OID.
 void getTrapIndex(int specificType, int genericType)
          Deprecated.  
 long timeTicks()
          Deprecated. Returns timeTicks value
 int varBindSize()
          Deprecated. Returns number of NativeSnmpVar components in the Vector Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enterprise

public java.lang.String enterprise
Deprecated. 
The enterprise OID String Value.


specificType

public int specificType
Deprecated. 
This shows the Specific Trap type


genericType

public int genericType
Deprecated. 
This tells the Generic Trap type.


trapVector

public java.util.Vector trapVector
Deprecated. 
This specifies the Trap vector.


timeTicks

public long timeTicks
Deprecated. 
This gives the Time Ticks value.

Constructor Detail

NativeSnmpTrap

public NativeSnmpTrap(java.lang.String enterprise,
                      int trapIndex,
                      long timeTicks,
                      java.util.Vector trapVector)
               throws AgentSnmpException
Deprecated. 
Constructor to supply all variable to generate SnmpV1 Trap

Parameters:
enterprise - Enterprise OID in String format
trapIndex - Trap Index
timeTicks - System Up Time Ticks value
trapVector - Vector containing NativeSnmpVar elements to be send as Varbind in the Trap.
Throws:
AgentSnmpException - This Wraps all the Exceptions thrown while processing this event.
See Also:
NativeSnmpVar
Method Detail

getEnterprise

public java.lang.String getEnterprise()
Deprecated. 
Getter for the Enterprose OID.

Returns:
Enterprise OId in a string format

getTrapIndex

public void getTrapIndex(int specificType,
                         int genericType)
Deprecated. 
Parameters:
specificType - the specificType trap index
genericType - the genericType trap index

timeTicks

public long timeTicks()
Deprecated. 
Returns timeTicks value

Returns:
The timeTicks value.

varBindSize

public int varBindSize()
Deprecated. 
Returns number of NativeSnmpVar components in the Vector Element.

Returns:
The varbind's size.

getElementAt

public NativeSnmpVar getElementAt(int index)
Deprecated. 
Getter for the Elements at the specified Index.

Parameters:
index - Index of the Vector. If the index is not available it returns null
Returns:
NativeSnmpVar Element; returns null at following situations: index is not in Vector; Vector contains other than NativeSnmpVar elements.