1 /* 2 * @(#)file SnmpPduRequestType.java 3 * @(#)author Sun Microsystems, Inc. 4 * @(#)version 1.13 5 * @(#)date 08/02/09 6 * 7 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 8 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 9 * 10 */ 11 package com.sun.jmx.snmp; 12 13 /** 14 * Interface implemented by classes modelizing request pdu. 15 * <p><b>This API is a Sun Microsystems internal API and is subject 16 * to change without notice.</b></p> 17 * @since 1.5 18 */ 19 public interface SnmpPduRequestType extends SnmpAckPdu { 20 /** 21 * Error index setter. Remember that SNMP indices start from 1. 22 * Thus the corresponding <CODE>SnmpVarBind</CODE> is 23 * <CODE>varBindList[errorIndex-1]</CODE>. 24 * @param i Error index. 25 */ 26 public void setErrorIndex(int i); 27 /** 28 * Error status setter. Statuses are defined in 29 * {@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}. 30 * @param i Error status. 31 */ 32 public void setErrorStatus(int i); 33 /** 34 * Error index getter. Remember that SNMP indices start from 1. 35 * Thus the corresponding <CODE>SnmpVarBind</CODE> is 36 * <CODE>varBindList[errorIndex-1]</CODE>. 37 * @return Error index. 38 */ 39 public int getErrorIndex(); 40 /** 41 * Error status getter. Statuses are defined in 42 * {@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}. 43 * @return Error status. 44 */ 45 public int getErrorStatus(); 46 } 47