public class CommunityTarget extends AbstractTarget
CommunityTarget represents SNMP target properties for
community based message processing models (SNMPv1 and SNMPv2c).| Constructor and Description |
|---|
CommunityTarget()
Default constructor.
|
CommunityTarget(Address address,
OctetString community)
Creates a fully specified communtity target.
|
| Modifier and Type | Method and Description |
|---|---|
OctetString |
getCommunity()
Gets the community octet string.
|
void |
setCommunity(OctetString community)
Sets the community octet sting.
|
String |
toString() |
clone, getAddress, getMaxSizeRequestPDU, getRetries, getTimeout, getVersion, setAddress, setMaxSizeRequestPDU, setRetries, setTimeout, setVersion, toStringAbstractTargetpublic CommunityTarget()
public CommunityTarget(Address address, OctetString community)
address - the transport Address of the target.community - the community to be used for the target.public OctetString getCommunity()
OctetString instance, never null.public void setCommunity(OctetString community)
community - an OctetString instance which must not be
null.public String toString()
toString in class AbstractTargetCopyright © 2014 SNMP4J.org. All rights reserved.