Package | Description |
---|---|
org.snmp4j |
Provides classes and interfaces for creating, sending, and receiving SNMP
messages.
|
org.snmp4j.mp |
Provides classes and interfaces for the SNMP message processing.
|
org.snmp4j.smi |
Provides classes for the representation of SMIv1/v2 data types (which also
includes some basic ASN.1 primitive data types).
|
org.snmp4j.tools.console | |
org.snmp4j.uri | |
org.snmp4j.util |
Contains table retrieval utilities and multi-threading support classes as
well as miscellaneous utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<VariableBinding> |
PDU.variableBindings |
Modifier and Type | Method and Description |
---|---|
protected VariableBinding |
Snmp.ReportProcessor.checkReport(CommandResponderEvent e,
PDU pdu,
Snmp.PendingRequest request) |
VariableBinding |
PDU.get(int index)
Gets the variable binding at the specified position.
|
VariableBinding |
PDU.set(int index,
VariableBinding vb)
Sets the variable binding at the specified position.
|
VariableBinding[] |
PDU.toArray()
Returns an array with the variable bindings of this PDU.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<VariableBinding> |
PDU.getBindingList(OID prefix)
Gets a list of
VariableBinding s whose OID prefix
matches the supplied prefix. |
java.util.Vector<? extends VariableBinding> |
PDU.getVariableBindings()
Gets the variable binding vector.
|
Modifier and Type | Method and Description |
---|---|
void |
PDU.add(VariableBinding vb)
Adds a variable binding to this PDU.
|
void |
PDU.addAll(VariableBinding[] vbs)
Adds an array of variable bindings to this PDU (see
PDU.add(VariableBinding vb) ). |
void |
PDU.addAllOIDs(VariableBinding[] vbs)
Adds new
VariableBindings each with the OID of the
corresponding variable binding of the supplied array to this PDU (see
PDU.addOID(VariableBinding vb) ). |
void |
PDU.addOID(VariableBinding vb)
Adds a new variable binding to this PDU by using the OID of the supplied
VariableBinding . |
VariableBinding |
PDU.set(int index,
VariableBinding vb)
Sets the variable binding at the specified position.
|
Modifier and Type | Method and Description |
---|---|
void |
PDU.addAll(java.util.List<? extends VariableBinding> vbs)
Adds a list of variable bindings to this PDU (see
PDU.add(VariableBinding vb) ). |
static int |
PDU.getBERLength(java.util.List<? extends VariableBinding> variableBindings)
Computes the length in bytes of the BER encoded variable bindings without
including the length of BER sequence length.
|
void |
PDU.setVariableBindings(java.util.List<? extends VariableBinding> vbs)
Sets the
VariableBinding s for this PDU. |
Constructor and Description |
---|
PDU(int pduType,
java.util.List<? extends VariableBinding> vbs)
Constructs a new PDU from a type and a list of
VariableBinding instances. |
Modifier and Type | Field and Description |
---|---|
private VariableBinding |
StatusInformation.errorIndication |
Modifier and Type | Method and Description |
---|---|
VariableBinding |
StatusInformation.getErrorIndication() |
Modifier and Type | Method and Description |
---|---|
int |
MPv3.sendReport(MessageDispatcher messageDispatcher,
ScopedPDU pdu,
int securityLevel,
int securityModel,
OctetString securityName,
int maxSizeResponseScopedPDU,
StateReference stateReference,
VariableBinding payload)
Sends a report message.
|
void |
StatusInformation.setErrorIndication(VariableBinding errorIndication) |
Constructor and Description |
---|
StatusInformation(VariableBinding errorIndication,
byte[] contextName,
byte[] contextEngineID,
Integer32 securityLevel) |
Modifier and Type | Method and Description |
---|---|
static VariableBinding[] |
VariableBinding.createFromOIDs(OID[] oids)
Create an array of
VariableBinding s based on the
provided OIDs. |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Vector<VariableBinding> |
SnmpRequest.vbs |
Modifier and Type | Method and Description |
---|---|
private static java.util.Vector<VariableBinding> |
SnmpRequest.getVariableBindings(java.lang.String[] args,
int position) |
java.util.Vector<? extends VariableBinding> |
SnmpRequest.getVbs() |
Modifier and Type | Method and Description |
---|---|
private void |
SnmpRequest.checkTrapVariables(java.util.Vector<VariableBinding> vbs) |
private void |
SnmpRequest.createSnapshot(java.util.List<VariableBinding> snapshot) |
void |
SnmpRequest.setVbs(java.util.Vector<VariableBinding> vbs) |
private PDU |
SnmpRequest.walk(Snmp snmp,
PDU request,
Target target,
java.util.List<VariableBinding> snapshot) |
Modifier and Type | Method and Description |
---|---|
SnmpUriResponse |
SnmpURI.sendByBinding(java.net.URI url,
java.util.List<VariableBinding> values,
int pduType) |
SnmpUriResponse |
SnmpURI.updateByBinding(java.net.URI url,
java.util.List<VariableBinding> values) |
Modifier and Type | Field and Description |
---|---|
protected VariableBinding[] |
RetrievalEvent.vbs |
Modifier and Type | Method and Description |
---|---|
VariableBinding[] |
TableEvent.getColumns()
Gets the columnar objects of the row.
|
VariableBinding[] |
TreeEvent.getVariableBindings()
Gets the variable bindings retrieved in depth first order from the
(sub-)tree.
|
VariableBinding |
VariableTextFormat.parseVariableBinding(java.lang.String text)
Parses a textual representation of a variable binding.
|
VariableBinding |
SimpleVariableTextFormat.parseVariableBinding(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
ResponseEvent |
TableUtils.createRow(Target target,
OID rowStatusColumnOID,
OID rowIndex,
VariableBinding[] values)
Creates a SNMP table row for a table that supports the RowStatus
mechanism for row creation.
|
Constructor and Description |
---|
RetrievalEvent(ResponseListener source,
java.lang.Object userObject,
VariableBinding[] variableBindings)
Creates a retrieval event with row data.
|
TableEvent(TableUtils.TableRequest source,
java.lang.Object userObject,
OID index,
VariableBinding[] cols)
Creates a table event with row data.
|
TreeEvent(TreeUtils.TreeRequest source,
java.lang.Object userObject,
VariableBinding[] vbs) |