public PduHandle sendPdu(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback) throws MessageException { return dispatcher.sendPdu(transportMapping, target, pdu, expectResponse, callback); }
public PduHandle sendPdu(TransportMapping<?> transportMapping, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback) throws MessageException { return dispatcher.sendPdu(transportMapping, target, pdu, expectResponse, callback); }
public PduHandle sendPdu(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse) throws MessageException { return dispatcher.sendPdu(transportMapping, target, pdu, expectResponse); }
public PduHandle sendPdu(TransportMapping transportMapping, Address transportAddress, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse) throws MessageException { return dispatcher.sendPdu(transportMapping, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, pdu, expectResponse); }
public PduHandle sendPdu(TransportMapping<?> transportMapping, Target target, PDU pdu, boolean expectResponse) throws MessageException { return dispatcher.sendPdu(transportMapping, target, pdu, expectResponse); }
public PduHandle sendPdu(TransportMapping transportMapping, Address transportAddress, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandleCallback callback) throws MessageException { return dispatcher.sendPdu(transportMapping, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, pdu, expectResponse, callback); }
/** * Actually sends a PDU to a target and returns a handle for the sent PDU. * * @param pdu * the <code>PDU</code> instance to be sent. * @param target * a <code>Target</code> instance denoting the target SNMP entity. * @param transport * the (optional) transport mapping to be used to send the request. * If <code>transport</code> is <code>null</code> a suitable transport * mapping is determined from the <code>target</code> address. * @param pduHandleCallback * callback for newly created PDU handles before the request is sent out. * * @return PduHandle * that uniquely identifies the sent PDU for further reference. * @throws IOException * if the transport fails to send the PDU or the if the message cannot * be BER encoded. */ protected PduHandle sendMessage(PDU pdu, Target target, TransportMapping<?> transport, PduHandleCallback<PDU> pduHandleCallback) throws IOException { TransportMapping<?> tm = transport; if (tm == null) { tm = lookupTransportMapping(target); } return messageDispatcher.sendPdu(tm, target, pdu, true, pduHandleCallback); }
tm = lookupTransportMapping(target); PduHandle handle = messageDispatcher.sendPdu(tm, target, pdu, true, pduHandleCallback); return handle;
if (target instanceof SecureTarget) { SecureTarget secureTarget = (SecureTarget) target; handle = messageDispatcher.sendPdu(transport, secureTarget.getAddress(), secureTarget.getVersion(), securityModel = SecurityModel.SECURITY_MODEL_SNMPv1; handle = messageDispatcher.sendPdu(transport, communityTarget.getAddress(), communityTarget.getVersion(),