com.adventnet.snmp.snmp2
Class SnmpNotifyEntry

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpNotifyEntry
All Implemented Interfaces:
java.io.Serializable

public class SnmpNotifyEntry
extends java.lang.Object
implements java.io.Serializable

The SnmpNotifyEntry selects a set of management targets which should receive notifications, as well as the type of notification which should be sent to each selected management target.

See Also:
Serialized Form

Field Summary
static int INFORM
           
static int TRAP
           
 
Constructor Summary
SnmpNotifyEntry(byte[] name)
          Constructs a new SnmpNotifyEntry with the specified snmpNotifyName.
 
Method Summary
 java.lang.Object getKey()
          Returns the key associated with this SnmpNotifyEntry.
static java.lang.Object getKey(byte[] name)
          Retrieves the key corresponding to the snmpNotifyName specified as parameter.
 byte[] getNotifyTag()
          Retrieves the snmpNotifyTag value associated with this object.
 int getNotifyType()
          Retrive the snmpNotifyType value associated with this object.
 int getRowStatus()
          Retrieves the snmpNotifyRowStatus value associated with this object.
 int getStorageType()
          Retrive the snmpNotifyStorageType value associated with this object.
 void setNotifyTag(byte[] tag)
          Sets the snmpNotifyTag value associated with this object.
 void setNotifyType(int type)
          Sets the snmpNotifyType value associated with this object.
 void setRowStatus(int status)
          Sets the snmpNotifyRowStatus value associated with this object.
 void setStorageType(int type)
          Sets the snmpNotifyStorageType value associated with this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAP

public static final int TRAP

INFORM

public static final int INFORM
Constructor Detail

SnmpNotifyEntry

public SnmpNotifyEntry(byte[] name)
Constructs a new SnmpNotifyEntry with the specified snmpNotifyName.
Parameters:
name - The snmpNotifyName to be used for creating a new SnmpNotifyEntry.
Method Detail

setNotifyTag

public void setNotifyTag(byte[] tag)
Sets the snmpNotifyTag value associated with this object.
Parameters:
tag - The snmpNotifyTag value to be associated with this object.

getNotifyTag

public byte[] getNotifyTag()
Retrieves the snmpNotifyTag value associated with this object.
Returns:
the snmpNotifyTag value associated with this object.

setNotifyType

public void setNotifyType(int type)
Sets the snmpNotifyType value associated with this object. The possible values are SnmpNotifyEntry.TRAP(1) and SnmpNotifyEntry.INFORM(2). It sets the notify type value, if one of the value is set. Otherwise, it retain the existing value.
Parameters:
type - The snmpNotifyType value

getNotifyType

public int getNotifyType()
Retrive the snmpNotifyType value associated with this object.
Returns:
the snmpNotifyType value associated with this object is either SnmpNotifyEntry.TRAP(1) or SnmpNotifyEntry.INFORM(2).

setStorageType

public void setStorageType(int type)
Sets the snmpNotifyStorageType value associated with this object.
Parameters:
type - The snmpNotifyStorageType value to be associated with this object.

getStorageType

public int getStorageType()
Retrive the snmpNotifyStorageType value associated with this object.
Returns:
the snmpNotifyStorageType value associated with this object.

setRowStatus

public void setRowStatus(int status)
Sets the snmpNotifyRowStatus value associated with this object. The possible values are SnmpAPI.ACTIVE(1), SnmpAPI.NOT_IN_SERVICE(2), SnmpAPI.NOT_READY(3), SnmpAPI.CREATE_AND_GO, SnmpAPI.CREATE_AND_WAIT, and SnmpAPI.DESTROY.
Parameters:
status - The snmpNotifyRowStatus value to be associated with this object.

getRowStatus

public int getRowStatus()
Retrieves the snmpNotifyRowStatus value associated with this object. Its default value is SnmpAPI.NOT_IN_SERVICE(2).
Returns:
the snmpNotifyRowStatus value associated with this object.

getKey

public java.lang.Object getKey()
Returns the key associated with this SnmpNotifyEntry.
Returns:
The key as a String Buffer Object.

getKey

public static java.lang.Object getKey(byte[] name)
Retrieves the key corresponding to the snmpNotifyName specified as parameter.
Parameters:
name - The snmpNotifyName for which the key is to be retrieved.
Returns:
The key as a String Object. returns null if the input argument is null.


Copyright (c)AdventNet Inc., 1996-2004