All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.manager.SnmpParameters

java.lang.Object
   |
   +----com.sun.jaw.snmp.manager.SnmpParameters

public class SnmpParameters
extends Object
implements SnmpDefinitions, Cloneable, Serializable
This class contains a set of resources that are used by an SnmpSession object while sending or receiving packets to and from a SnmpPeer. An SnmpPeer can be configured explicitly to use a specific SnmpParameter. Many SnmpPeer objects can share a single parameter object.

Note: Changing values for a SnmpParameter object affects all SnmpPeer objects that share the parameter object.

See Also:
SnmpSession, SnmpPeer

Variable Index

 o defaultRdCommunity
Specify the default community string to use for GET operations.

Constructor Index

 o SnmpParameters()
Creates a SnmpParameters object with default set up.
 o SnmpParameters(String, String)
Creates a SnmpParameters object.

Method Index

 o allowSnmpSets()
Checks whether parameters are in place for a SNMP set operation.
 o clone()
Allow to clone the object and its content.
 o encodeAuthentication(int)
For Java DMK internal use only.
 o equals(Object)
Compares two objects.
 o getProtocolVersion()
Returns the version of the protocol to use.
 o getRdCommunity()
Get the community to be used when issuing GET operations
 o getWrCommunity()
Get the community to be used when issuing SET operations
 o setProtocolVersion(int)
Set the version of the protocol to be used.
 o setRdCommunity(String)
Allows to specify the community string to use when performing GET operations.
 o setWrCommunity(String)
Set the community to be used when issuing SET operations

Variables

 o defaultRdCommunity
 public static final String defaultRdCommunity
Specify the default community string to use for GET operations. By default, the value is "public".

Constructors

 o SnmpParameters
 public SnmpParameters()
Creates a SnmpParameters object with default set up. By default, set operations are not allowed and the community string to use is "public".

 o SnmpParameters
 public SnmpParameters(String rdc,
                       String wrc)
Creates a SnmpParameters object. The methods allows to specify the read/write community strings

Parameters:
rdc - community string to use for GET operations
wrc - community string to use for SET operations

Methods

 o getProtocolVersion
 public int getProtocolVersion()
Returns the version of the protocol to use. The returned value is

 o setProtocolVersion
 public void setProtocolVersion(int version)
Set the version of the protocol to be used. The version should be identified using the definitions contained in SnmpDefinitions.
For instance if you are willing to use SNMPv2, you could call the method as follows:
 o allowSnmpSets
 public boolean allowSnmpSets()
Checks whether parameters are in place for a SNMP set operation.

 o setRdCommunity
 public synchronized void setRdCommunity(String read)
Allows to specify the community string to use when performing GET operations.

 o getRdCommunity
 public String getRdCommunity()
Get the community to be used when issuing GET operations

 o setWrCommunity
 public void setWrCommunity(String s)
Set the community to be used when issuing SET operations

 o getWrCommunity
 public String getWrCommunity()
Get the community to be used when issuing SET operations

 o equals
 public synchronized boolean equals(Object obj)
Compares two objects. Two SnmpParameters are equal if they correspond to the same protocol version, read community and write community.

Overrides:
equals in class Object
 o encodeAuthentication
 public byte[] encodeAuthentication(int snmpCmd) throws SnmpStatusException
For Java DMK internal use only.

 o clone
 public synchronized Object clone()
Allow to clone the object and its content.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index