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