use of com.sun.jmx.snmp.SnmpPduPacket in project jdk8u_jdk by JetBrains.
the class SnmpRequestHandler method newTooBigMessage.
private SnmpMessage newTooBigMessage(SnmpMessage reqMsg) throws SnmpTooBigException {
SnmpMessage result = null;
SnmpPduPacket reqPdu;
try {
reqPdu = (SnmpPduPacket) pduFactory.decodeSnmpPdu(reqMsg);
if (reqPdu != null) {
SnmpPduPacket respPdu = newTooBigPdu(reqPdu);
result = (SnmpMessage) pduFactory.encodeSnmpPdu(respPdu, packet.getData().length);
}
} catch (SnmpStatusException x) {
// been successfully called before.
if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) {
SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "newTooBigMessage", "Internal error", x);
}
throw new InternalError(x);
}
return result;
}
Aggregations