package oracle.kv.impl.mgmt.snmp.generated;

//
// Generated by mibgen version 5.1 (03/08/07) when compiling OracleNosqlMIB.
//

// java imports
//
import java.io.Serializable;

// jmx imports
//
import javax.management.MBeanServer;
import com.sun.management.snmp.*;

// jdmk imports
//
import com.sun.management.snmp.agent.SnmpMib;

/**
 * The class is used for implementing the "RepNodes" group.
 * The group is defined with the following oid: 1.3.6.1.4.1.111.42.3.
 */
@SuppressWarnings({"serial","unused"})
public class RepNodes implements RepNodesMBean, Serializable {

    /**
     * Variable for storing the value of "RepNodeTable".
     * The variable is identified by: "1.3.6.1.4.1.111.42.3.2".
     */
    protected TableRepNodeTable RepNodeTable;

    /**
     * Variable for storing the value of "NRepNodes".
     * The variable is identified by: "1.3.6.1.4.1.111.42.3.1".
     */
    protected Integer NRepNodes = new Integer(1);


    /**
     * Constructor for the "RepNodes" group.
     * If the group contains a table, the entries created through an SNMP SET will not be registered in Java DMK.
     */
    public RepNodes(SnmpMib myMib) {
        RepNodeTable = new TableRepNodeTable (myMib);
    }


    /**
     * Constructor for the "RepNodes" group.
     * If the group contains a table, the entries created through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.
     */
    public RepNodes(SnmpMib myMib, MBeanServer server) {
        RepNodeTable = new TableRepNodeTable (myMib, server);
    }

    /**
     * Access the "RepNodeTable" variable.
     */
    @Override
    public TableRepNodeTable accessRepNodeTable() throws SnmpStatusException {
        return RepNodeTable;
    }

    /**
     * Access the "RepNodeTable" variable as a bean indexed property.
     */
    public RepNodeTableEntryMBean[] getRepNodeTable() throws SnmpStatusException {
        return RepNodeTable.getEntries();
    }

    /**
     * Getter for the "NRepNodes" variable.
     */
    @Override
    public Integer getNRepNodes() throws SnmpStatusException {
        return NRepNodes;
    }

}
