jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgent.java
changeset 21278 ef8a3a2a72f2
parent 14677 1607f4cfc506
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   125      *
   125      *
   126      * @param req The SnmpMibRequest object holding the list of variable to
   126      * @param req The SnmpMibRequest object holding the list of variable to
   127      *            be retrieved. This list is composed of
   127      *            be retrieved. This list is composed of
   128      *            <CODE>SnmpVarBind</CODE> objects.
   128      *            <CODE>SnmpVarBind</CODE> objects.
   129      *
   129      *
   130      * @exception SnmpStatusException An error occured during the operation.
   130      * @exception SnmpStatusException An error occurred during the operation.
   131      */
   131      */
   132     @Override
   132     @Override
   133     public abstract void get(SnmpMibRequest req)
   133     public abstract void get(SnmpMibRequest req)
   134         throws SnmpStatusException;
   134         throws SnmpStatusException;
   135 
   135 
   140      *
   140      *
   141      * @param req The SnmpMibRequest object holding the list of
   141      * @param req The SnmpMibRequest object holding the list of
   142      *            OIDs from which the next variables should be retrieved.
   142      *            OIDs from which the next variables should be retrieved.
   143      *            This list is composed of <CODE>SnmpVarBind</CODE> objects.
   143      *            This list is composed of <CODE>SnmpVarBind</CODE> objects.
   144      *
   144      *
   145      * @exception SnmpStatusException An error occured during the operation.
   145      * @exception SnmpStatusException An error occurred during the operation.
   146      */
   146      */
   147     @Override
   147     @Override
   148     public abstract void getNext(SnmpMibRequest req)
   148     public abstract void getNext(SnmpMibRequest req)
   149         throws SnmpStatusException;
   149         throws SnmpStatusException;
   150 
   150 
   164      * @param maxRepeat The number of lexicographic successors requested
   164      * @param maxRepeat The number of lexicographic successors requested
   165      *    for each of the last R variables. R is the number of variables
   165      *    for each of the last R variables. R is the number of variables
   166      *    following the first <CODE>nonRepeat</CODE> variables for which
   166      *    following the first <CODE>nonRepeat</CODE> variables for which
   167      *    multiple lexicographic successors are requested.
   167      *    multiple lexicographic successors are requested.
   168      *
   168      *
   169      * @exception SnmpStatusException An error occured during the operation.
   169      * @exception SnmpStatusException An error occurred during the operation.
   170      */
   170      */
   171     @Override
   171     @Override
   172     public abstract void getBulk(SnmpMibRequest req, int nonRepeat,
   172     public abstract void getBulk(SnmpMibRequest req, int nonRepeat,
   173                                  int maxRepeat)
   173                                  int maxRepeat)
   174         throws SnmpStatusException;
   174         throws SnmpStatusException;
   182      *
   182      *
   183      * @param req The SnmpMibRequest object holding the list of variable to
   183      * @param req The SnmpMibRequest object holding the list of variable to
   184      *            be set. This list is composed of
   184      *            be set. This list is composed of
   185      *            <CODE>SnmpVarBind</CODE> objects.
   185      *            <CODE>SnmpVarBind</CODE> objects.
   186      *
   186      *
   187      * @exception SnmpStatusException An error occured during the operation.
   187      * @exception SnmpStatusException An error occurred during the operation.
   188      *            Throwing an exception in this method will break the
   188      *            Throwing an exception in this method will break the
   189      *            atomicity of the SET operation. Care must be taken so that
   189      *            atomicity of the SET operation. Care must be taken so that
   190      *            the exception is thrown in the {@link #check(SnmpMibRequest)}
   190      *            the exception is thrown in the {@link #check(SnmpMibRequest)}
   191      *            method instead.
   191      *            method instead.
   192      */
   192      */
   641      *    variables following the first nonRepeat variables for which
   641      *    variables following the first nonRepeat variables for which
   642      *    multiple lexicographic successors are requested.
   642      *    multiple lexicographic successors are requested.
   643      *
   643      *
   644      * @return The variable list containing returned values.
   644      * @return The variable list containing returned values.
   645      *
   645      *
   646      * @exception SnmpStatusException An error occured during the operation.
   646      * @exception SnmpStatusException An error occurred during the operation.
   647      */
   647      */
   648     void getBulkWithGetNext(SnmpMibRequest req, int nonRepeat, int maxRepeat)
   648     void getBulkWithGetNext(SnmpMibRequest req, int nonRepeat, int maxRepeat)
   649         throws SnmpStatusException {
   649         throws SnmpStatusException {
   650         final Vector<SnmpVarBind> list = req.getSubList();
   650         final Vector<SnmpVarBind> list = req.getSubList();
   651 
   651