|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.manager.SnmpParameters
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.
SnmpSession
,
SnmpPeer
, Serialized FormField Summary | |
static java.lang.String |
defaultRdCommunity
Specify the default community string to use for get operations. |
Constructor Summary | |
SnmpParameters()
Creates a SnmpParameters object with default set up. |
|
SnmpParameters(java.lang.String rdc,
java.lang.String wrc)
Creates a SnmpParameters object. |
Method Summary | |
boolean |
allowSnmpSets()
Checks whether parameters are in place for a SNMP set operation. |
java.lang.Object |
clone()
Clones the object and its content. |
boolean |
equals(java.lang.Object obj)
Compares two objects. |
int |
getProtocolVersion()
Returns the version of the protocol to use. |
java.lang.String |
getRdCommunity()
Gets the community to be used when issuing get operations. |
java.lang.String |
getWrCommunity()
Gets the community to be used when issuing set operations. |
void |
setProtocolVersion(int version)
Sets the version of the protocol to be used. |
void |
setRdCommunity(java.lang.String read)
Allows to specify the community string to use when performing get operations. |
void |
setWrCommunity(java.lang.String s)
Sets the community to be used when issuing set operations. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String defaultRdCommunity
get
operations.
By default, the value is "public".Constructor Detail |
public SnmpParameters()
SnmpParameters
object with default set up.
By default, set
operations are not allowed and the community string to
use is "public".public SnmpParameters(java.lang.String rdc, java.lang.String wrc)
SnmpParameters
object.
The methods allows to specify the read/write community strings.rdc
- community string to use for get
operationswrc
- community string to use for set
operationsMethod Detail |
public int getProtocolVersion()
public void setProtocolVersion(int version)
setProtocolVersion(SnmpDefinitions.snmpVersionTwo);
version
- The version of the protocol to be used.public boolean allowSnmpSets()
set
operation.public void setRdCommunity(java.lang.String read)
get
operations.read
- The community string.public java.lang.String getRdCommunity()
get
operations.public void setWrCommunity(java.lang.String s)
set
operations.s
- The community string.public java.lang.String getWrCommunity()
set
operations.public boolean equals(java.lang.Object obj)
SnmpParameters
are equal if they correspond to the same protocol version,
read community and write community.obj
- The object to compare this
with.this
and the specified object are equal; false otherwise.public java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |