|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.manager.SnmpParams com.sun.management.snmp.manager.SnmpParameters
public class SnmpParameters
Contains a set of resources that are used by an
SnmpSession
object while sending or receiving packets
to and from an SnmpPeer
. An SnmpPeer
can
be configured explicitly to use a specific SnmpParameter
.
A number of SnmpPeer
objects can share a single parameter object.
Note: Changing values for an SnmpParameter
object affects all
SnmpPeer
objects that share the parameter object.
SnmpSession
,
SnmpPeer
,
Serialized FormField Summary |
---|
Constructor Summary | |
---|---|
SnmpParameters()
Creates an SnmpParameters object with defaults set up. |
|
SnmpParameters(String rdc,
String wrc)
Creates an SnmpParameters object. |
|
SnmpParameters(String rdc,
String wrc,
String inform)
Creates an SnmpParameters object. |
Method Summary | |
---|---|
boolean |
allowSnmpSets()
Checks whether parameters are in place for an SNMP set operation. |
Object |
clone()
Clones the object and its content. |
byte[] |
encodeAuthentication(int snmpCmd)
For Java DMK internal use only. |
boolean |
equals(Object obj)
Compares two objects. |
String |
getInformCommunity()
Gets the community to be used when issuing inform requests. |
String |
getRdCommunity()
Gets the community to be used when issuing get operations. |
String |
getWrCommunity()
Gets the community to be used when issuing set operations. |
void |
setInformCommunity(String inform)
Sets the community string to use when performing inform requests. |
void |
setRdCommunity(String read)
Sets the community string to use when performing get operations. |
void |
setWrCommunity(String write)
Sets the community to be used when issuing set operations. |
Methods inherited from class com.sun.management.snmp.manager.SnmpParams |
---|
getProtocolVersion, setProtocolVersion |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnmpParameters()
SnmpParameters
object with defaults set up.
By default, set
operations are not allowed, the read community and
the inform community strings to use is "public" and the SNMP version is V1.
public SnmpParameters(String rdc, String wrc)
SnmpParameters
object.
This constructor allows the specification of the read/write community strings.
The inform community string to use is "public".
rdc
- community string to use for get
operations.wrc
- community string to use for set
operations.public SnmpParameters(String rdc, String wrc, String inform)
SnmpParameters
object.
This constructor allows the specification of the read/write/inform community strings.
rdc
- community string to use for get
operations.wrc
- community string to use for set
operations.inform
- community string to use for inform
requests.Method Detail |
---|
public String getRdCommunity()
get
operations.
public void setRdCommunity(String read)
get
operations.
read
- The community string.public String getWrCommunity()
set
operations.
public void setWrCommunity(String write)
set
operations.
write
- The community string.public String getInformCommunity()
inform
requests.
public void setInformCommunity(String inform)
inform
requests.
inform
- The community string.public boolean allowSnmpSets()
set
operation.
allowSnmpSets
in class SnmpParams
true
if parameters are in place, false
otherwise.public boolean equals(Object obj)
SnmpParameters
are equal if they correspond to the same protocol version,
read community and write community.
equals
in class Object
obj
- The object to compare this
with.
true
if this
and the specified object are equal, false
otherwise.public Object clone()
clone
in class Object
public byte[] encodeAuthentication(int snmpCmd) throws SnmpStatusException
SnmpStatusException
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |