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.util |
Contains table retrieval utilities and multi-threading support classes as
well as miscellaneous utility classes.
|
Modifier and Type | Method | Description |
---|---|---|
protected PduHandle |
MessageDispatcherImpl.createPduHandle() |
|
PduHandle |
CommandResponderEvent.getPduHandle() |
|
protected PduHandle |
Snmp.sendMessage(PDU pdu,
Target target,
TransportMapping transport,
PduHandleCallback<PDU> pduHandleCallback) |
Actually sends a PDU to a target and returns a handle for the sent PDU.
|
PduHandle |
MessageDispatcher.sendPdu(Target target,
PDU pdu,
boolean expectResponse) |
Sends a PDU to the supplied transport address.
|
PduHandle |
MessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse) |
Sends a PDU to the supplied transport address.
|
PduHandle |
MessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse,
PduHandleCallback<PDU> callback) |
Sends a PDU to the supplied transport address and returns the
PduHandle that uniquely identifies the request as response
after the request has been sent and optional, if a
PduHandleCallback is given, it returns also the
PduHandle just before the request is sent through the
the callback interface. |
PduHandle |
MessageDispatcherImpl.sendPdu(Target target,
PDU pdu,
boolean expectResponse) |
|
PduHandle |
MessageDispatcherImpl.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse) |
|
PduHandle |
MessageDispatcherImpl.sendPdu(TransportMapping transport,
Target target,
PDU pdu,
boolean expectResponse,
PduHandleCallback<PDU> pduHandleCallback) |
Modifier and Type | Method | Description |
---|---|---|
void |
Snmp.ReportHandler.processReport(PduHandle pduHandle,
CommandResponderEvent event) |
|
void |
MessageDispatcher.releaseStateReference(int messageProcessingModel,
PduHandle pduHandle) |
Release any state references associated with the supplied
PduHandle in the specified message processing model. |
void |
MessageDispatcherImpl.releaseStateReference(int messageProcessingModel,
PduHandle pduHandle) |
|
void |
CommandResponderEvent.setPduHandle(PduHandle pduHandle) |
Constructor | Description |
---|---|
CommandResponderEvent(MessageDispatcher messageDispatcher,
TransportMapping transportMapping,
Address sourceAddress,
int messageProcessingModel,
int securityModel,
byte[] securityName,
int securityLevel,
PduHandle pduHandle,
PDU pdu,
int maxSizeResponseScopedPDU,
StateReference stateReference) |
Constructs an event for processing an incoming request or notification PDU.
|
Modifier and Type | Method | Description |
---|---|---|
PduHandle |
StateReference.getPduHandle() |
Modifier and Type | Method | Description |
---|---|---|
void |
PduHandle.copyFrom(PduHandle other) |
Copy all members from the supplied
PduHandle . |
boolean |
MPv3.Cache.deleteEntry(PduHandle pduHandle) |
Delete the cache entry with the supplied
PduHandle . |
void |
PduHandleCallback.pduHandleAssigned(PduHandle handle,
P pdu) |
A new PduHandle has been created for a PDU.
|
int |
MessageProcessingModel.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
Prepare data elements from an incoming SNMP message as described in
RFC3412 §7.2.
|
int |
MPv1.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
|
int |
MPv2c.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
|
int |
MPv3.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
|
int |
MessageProcessingModel.prepareOutgoingMessage(Address transportAddress,
int maxMsgSize,
int messageProcessingModel,
int securityModel,
byte[] securityName,
int securityLevel,
PDU pdu,
boolean expectResponse,
PduHandle sendPduHandle,
Address destTransportAddress,
BEROutputStream outgoingMessage,
TransportStateReference tmStateReference) |
Prepares an outgoing message as defined in RFC3412 §7.1.
|
int |
MPv1.prepareOutgoingMessage(Address transportAddress,
int maxMessageSize,
int messageProcessingModel,
int securityModel,
byte[] securityName,
int securityLevel,
PDU pdu,
boolean expectResponse,
PduHandle sendPduHandle,
Address destTransportAddress,
BEROutputStream outgoingMessage,
TransportStateReference tmStateReference) |
|
int |
MPv2c.prepareOutgoingMessage(Address transportAddress,
int maxMessageSize,
int messageProcessingModel,
int securityModel,
byte[] securityName,
int securityLevel,
PDU pdu,
boolean expectResponse,
PduHandle sendPduHandle,
Address destTransportAddress,
BEROutputStream outgoingMessage,
TransportStateReference tmStateReference) |
|
int |
MPv3.prepareOutgoingMessage(Address transportAddress,
int maxMessageSize,
int messageProcessingModel,
int securityModel,
byte[] securityName,
int securityLevel,
PDU pdu,
boolean expectResponse,
PduHandle sendPduHandle,
Address destTransportAddress,
BEROutputStream outgoingMessage,
TransportStateReference tmStateReference) |
|
void |
MessageProcessingModel.releaseStateReference(PduHandle pduHandle) |
Release the state reference associated with the supplied
PduHandle . |
void |
MPv1.releaseStateReference(PduHandle pduHandle) |
|
void |
MPv2c.releaseStateReference(PduHandle pduHandle) |
|
void |
MPv3.releaseStateReference(PduHandle pduHandle) |
|
void |
StateReference.setPduHandle(PduHandle pduHandle) |
|
protected void |
StateReference.updateRequestStatisticsPduHandle(PduHandle pduHandle) |
Constructor | Description |
---|---|
StateReference(int msgID,
int msgFlags,
int maxSizeResponseScopedPDU,
PduHandle pduHandle,
Address peerAddress,
TransportMapping peerTransport,
byte[] secEngineID,
SecurityModel secModel,
byte[] secName,
int secLevel,
byte[] contextEngineID,
byte[] contextName,
SecurityStateReference secStateReference,
int errorCode) |
Creates a state reference for SNMPv3 messages.
|
StateReference(PduHandle pduHandle,
Address peerAddress,
TransportMapping peerTransport,
SecurityModel secModel,
byte[] secName,
int errorCode) |
Creates a state reference for community based security models.
|
Modifier and Type | Method | Description |
---|---|---|
PduHandle |
MultiThreadedMessageDispatcher.sendPdu(Target target,
PDU pdu,
boolean expectResponse) |
|
PduHandle |
MultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse) |
|
PduHandle |
MultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse,
PduHandleCallback<PDU> callback) |
Modifier and Type | Method | Description |
---|---|---|
void |
MultiThreadedMessageDispatcher.releaseStateReference(int messageProcessingModel,
PduHandle pduHandle) |
Copyright © 2018 SNMP4J.org. All rights reserved.