Java Code Examples for com.sun.jmx.snmp.SnmpVarBind#setSnmpValue()

The following examples show how to use com.sun.jmx.snmp.SnmpVarBind#setSnmpValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SnmpInformRequest.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
void updateInternalVarBindWithResult(SnmpVarBind[] list) {

        if ((list == null) || (list.length == 0))
            return;

        int idx = 0;

        for(int i = 0; i < internalVarBind.length && idx < list.length; i++) {
            SnmpVarBind avar = internalVarBind[i];
            if (avar == null)
                continue;

            SnmpVarBind res = list[idx];
            avar.setSnmpValue(res.getSnmpValue());
            idx++;
        }
    }
 
Example 2
Source File: SnmpInformRequest.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
void updateInternalVarBindWithResult(SnmpVarBind[] list) {

        if ((list == null) || (list.length == 0))
            return;

        int idx = 0;

        for(int i = 0; i < internalVarBind.length && idx < list.length; i++) {
            SnmpVarBind avar = internalVarBind[i];
            if (avar == null)
                continue;

            SnmpVarBind res = list[idx];
            avar.setSnmpValue(res.getSnmpValue());
            idx++;
        }
    }