Java Code Examples for com.sun.jmx.snmp.SnmpOid#getOidArc()

The following examples show how to use com.sun.jmx.snmp.SnmpOid#getOidArc() . 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: SnmpLoadedClassData.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 2
Source File: SnmpLoadedClassData.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 3
Source File: SnmpLoadedClassData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 4
Source File: SnmpLoadedClassData.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 5
Source File: SnmpLoadedClassData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 6
Source File: SnmpLoadedClassData.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 7
Source File: SnmpLoadedClassData.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 8
Source File: SnmpLoadedClassData.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public final SnmpOid getNext(SnmpOid index) {
    int pos = 0;
    if (index == null) {
        if( (datas!= null) && (datas.length >= 1) )
            return new SnmpOid(0);
    }
    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if(pos < (datas.length - 1))
        return new SnmpOid(pos+1);
    else
        return null;
}
 
Example 9
Source File: SnmpLoadedClassData.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public final boolean contains(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return false;
    }

    return (pos < datas.length);
}
 
Example 10
Source File: SnmpLoadedClassData.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public final boolean contains(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return false;
    }

    return (pos < datas.length);
}
 
Example 11
Source File: SnmpLoadedClassData.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 12
Source File: SnmpLoadedClassData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 13
Source File: SnmpLoadedClassData.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 14
Source File: SnmpLoadedClassData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 15
Source File: SnmpLoadedClassData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public final boolean contains(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return false;
    }

    return (pos < datas.length);
}
 
Example 16
Source File: SnmpLoadedClassData.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 17
Source File: SnmpLoadedClassData.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 18
Source File: SnmpLoadedClassData.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public final boolean contains(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return false;
    }

    return (pos < datas.length);
}
 
Example 19
Source File: SnmpLoadedClassData.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}
 
Example 20
Source File: SnmpLoadedClassData.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public final Object getData(SnmpOid index) {
    int pos = 0;

    try {
        pos = (int) index.getOidArc(0);
    }catch(SnmpStatusException e) {
        return null;
    }

    if (pos >= datas.length) return null;
    return datas[pos];
}