1 11 package com.sun.jmx.snmp.internal; 12 13 14 import com.sun.jmx.snmp.mpm.SnmpMsgTranslator; 15 16 import com.sun.jmx.snmp.SnmpTooBigException; 17 import com.sun.jmx.snmp.SnmpStatusException; 18 import com.sun.jmx.snmp.SnmpPdu; 19 import com.sun.jmx.snmp.SnmpPduFactory; 20 import com.sun.jmx.snmp.SnmpSecurityParameters; 21 22 import com.sun.jmx.snmp.SnmpParams; 23 30 public interface SnmpMsgProcessingModel extends SnmpModel { 31 36 public SnmpOutgoingRequest getOutgoingRequest(SnmpPduFactory factory); 37 42 public SnmpIncomingRequest getIncomingRequest(SnmpPduFactory factory); 43 44 49 public SnmpIncomingResponse getIncomingResponse(SnmpPduFactory factory); 50 56 public SnmpPdu getRequestPdu(SnmpParams p, int type) throws SnmpStatusException; 57 58 74 public int encode(int version, 75 int msgID, 76 int msgMaxSize, 77 byte msgFlags, 78 int msgSecurityModel, 79 SnmpSecurityParameters params, 80 byte[] contextEngineID, 81 byte[] contextName, 82 byte[] data, 83 int dataLength, 84 byte[] outputBytes) throws SnmpTooBigException; 85 98 public int encodePriv(int version, 99 int msgID, 100 int msgMaxSize, 101 byte msgFlags, 102 int msgSecurityModel, 103 SnmpSecurityParameters params, 104 byte[] encryptedPdu, 105 byte[] outputBytes) throws SnmpTooBigException; 106 111 public SnmpDecryptedPdu decode(byte[] pdu) throws SnmpStatusException; 112 113 119 public int encode(SnmpDecryptedPdu pdu, 120 byte[] outputBytes) throws SnmpTooBigException; 121 122 126 public void setMsgTranslator(SnmpMsgTranslator translator); 127 128 132 public SnmpMsgTranslator getMsgTranslator(); 133 } 134 | Popular Tags |