Examples of TrapVarBindDef


Examples of com.jitlogic.zorka.core.integ.TrapVarBindDef

    public Map<String, Object> process(Map<String, Object> record) {
        SNMPVariablePair[] vars = new SNMPVariablePair[varBindDefs.length];

        try {
            for (int i = 0; i < vars.length; i++) {
                TrapVarBindDef vbd = varBindDefs[i];
                SNMPObjectIdentifier oid = new SNMPObjectIdentifier(oprefix + "." + vbd.getOidSuffix());
                SNMPObject val = SnmpLib.val(vbd.getSnmpDataType(), record.get(vbd.getSourceField()));
                val = val != null ? val : new SNMPNull();
                vars[i] = new SNMPVariablePair(oid, val);
            }
            trapper.trap(gtrap, strap, oid, vars);
        } catch (SNMPBadValueException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.