Package net.percederberg.mibble.snmp

Examples of net.percederberg.mibble.snmp.SnmpModuleSupport


     */
    private void printType(SnmpAgentCapabilities type,
                           String indent,
                           int smiVersion) {

        SnmpModuleSupport  module;
        ArrayList          list;

        os.println("AGENT-CAPABILITIES");
        os.print("    PRODUCT-RELEASE ");
        os.println(getQuote(type.getProductRelease()));
        os.print("    STATUS          ");
        os.println(type.getStatus());
        printDescription(type.getDescription());
        if (type.getReference() != null) {
            os.println();
            os.print("    REFERENCE       ");
            os.print(getQuote(type.getReference()));
        }
        for (int i = 0; i < type.getModules().size(); i++) {
            module = (SnmpModuleSupport) type.getModules().get(i);
            os.println();
            os.print("    SUPPORTS        ");
            os.println(module.getModule());
            os.print("    INCLUDES        ");
            printReferenceList(module.getGroups(),
                               "                    ");
            list = module.getVariations();
            for (int j = 0; j < list.size(); j++) {
                os.println();
                os.println();
                printVariation((SnmpVariation) list.get(j), smiVersion);
            }
View Full Code Here


            case Asn1Constants.SNMP_VARIATION_PART:
                vars.add(getValue(child, 0));
                break;
            }
        }
        node.addValue(new SnmpModuleSupport(module, groups, vars));
        return node;
    }
View Full Code Here

TOP

Related Classes of net.percederberg.mibble.snmp.SnmpModuleSupport

Copyright © 2018 www.massapicom. 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.