| 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 */  | 
 | 
 | 
 | 
package sun.management.snmp.jvmmib;  | 
 | 
 | 
 | 
//  | 
 | 
// Generated by mibgen version 5.0 (06/02/03) when compiling JVM-MANAGEMENT-MIB in standard metadata mode.  | 
 | 
//  | 
 | 
 | 
 | 
// java imports  | 
 | 
 | 
 | 
import java.io.Serializable;  | 
 | 
import java.util.Vector;  | 
 | 
 | 
 | 
// jmx imports  | 
 | 
 | 
 | 
import javax.management.MBeanServer;  | 
 | 
import javax.management.ObjectName;  | 
 | 
import com.sun.jmx.snmp.SnmpCounter;  | 
 | 
import com.sun.jmx.snmp.SnmpCounter64;  | 
 | 
import com.sun.jmx.snmp.SnmpGauge;  | 
 | 
import com.sun.jmx.snmp.SnmpInt;  | 
 | 
import com.sun.jmx.snmp.SnmpUnsignedInt;  | 
 | 
import com.sun.jmx.snmp.SnmpIpAddress;  | 
 | 
import com.sun.jmx.snmp.SnmpTimeticks;  | 
 | 
import com.sun.jmx.snmp.SnmpOpaque;  | 
 | 
import com.sun.jmx.snmp.SnmpString;  | 
 | 
import com.sun.jmx.snmp.SnmpStringFixed;  | 
 | 
import com.sun.jmx.snmp.SnmpOid;  | 
 | 
import com.sun.jmx.snmp.SnmpNull;  | 
 | 
import com.sun.jmx.snmp.SnmpValue;  | 
 | 
import com.sun.jmx.snmp.SnmpVarBind;  | 
 | 
import com.sun.jmx.snmp.SnmpStatusException;  | 
 | 
 | 
 | 
// jdmk imports  | 
 | 
 | 
 | 
import com.sun.jmx.snmp.agent.SnmpIndex;  | 
 | 
import com.sun.jmx.snmp.agent.SnmpMib;  | 
 | 
import com.sun.jmx.snmp.agent.SnmpMibTable;  | 
 | 
import com.sun.jmx.snmp.agent.SnmpMibSubRequest;  | 
 | 
import com.sun.jmx.snmp.agent.SnmpStandardObjectServer;  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 */  | 
 | 
public class JvmRTLibraryPathTableMeta extends SnmpMibTable implements Serializable { | 
 | 
 | 
 | 
    static final long serialVersionUID = -632403620113109468L;  | 
 | 
      | 
 | 
 | 
 | 
 | 
 | 
     */  | 
 | 
    public JvmRTLibraryPathTableMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) { | 
 | 
        super(myMib);  | 
 | 
        objectserver = objserv;  | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
      | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
     **/  | 
 | 
    protected JvmRTLibraryPathEntryMeta createJvmRTLibraryPathEntryMetaNode(String snmpEntryName, String tableName, SnmpMib mib, MBeanServer server)  { | 
 | 
        return new JvmRTLibraryPathEntryMeta(mib, objectserver);  | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "createNewEntry" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public void createNewEntry(SnmpMibSubRequest req, SnmpOid rowOid, int depth)  | 
 | 
        throws SnmpStatusException { | 
 | 
        if (factory != null)  | 
 | 
            factory.createNewEntry(req, rowOid, depth, this);  | 
 | 
        else  | 
 | 
            throw new SnmpStatusException(  | 
 | 
                SnmpStatusException.snmpRspNoAccess);  | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "isRegistrationRequired" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public boolean isRegistrationRequired()  { | 
 | 
        return false;  | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
    public void registerEntryNode(SnmpMib mib, MBeanServer server)  { | 
 | 
        node = createJvmRTLibraryPathEntryMetaNode("JvmRTLibraryPathEntry", "JvmRTLibraryPathTable", mib, server); | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "addEntry" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public synchronized void addEntry(SnmpOid rowOid, ObjectName objname,  | 
 | 
                 Object entry)  | 
 | 
        throws SnmpStatusException { | 
 | 
        if (! (entry instanceof JvmRTLibraryPathEntryMBean) )  | 
 | 
            throw new ClassCastException("Entries for Table \"" + | 
 | 
                           "JvmRTLibraryPathTable" + "\" must implement the \"" +  | 
 | 
                           "JvmRTLibraryPathEntryMBean" + "\" interface.");  | 
 | 
        super.addEntry(rowOid, objname, entry);  | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "get" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public void get(SnmpMibSubRequest req, SnmpOid rowOid, int depth)  | 
 | 
        throws SnmpStatusException { | 
 | 
        JvmRTLibraryPathEntryMBean entry = (JvmRTLibraryPathEntryMBean) getEntry(rowOid);  | 
 | 
        synchronized (this) { | 
 | 
            node.setInstance(entry);  | 
 | 
            node.get(req,depth);  | 
 | 
        }  | 
 | 
    }  | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "set" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public void set(SnmpMibSubRequest req, SnmpOid rowOid, int depth)  | 
 | 
        throws SnmpStatusException { | 
 | 
        if (req.getSize() == 0) return;  | 
 | 
 | 
 | 
        JvmRTLibraryPathEntryMBean entry = (JvmRTLibraryPathEntryMBean) getEntry(rowOid);  | 
 | 
        synchronized (this) { | 
 | 
            node.setInstance(entry);  | 
 | 
            node.set(req,depth);  | 
 | 
        }  | 
 | 
    }  | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "check" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public void check(SnmpMibSubRequest req, SnmpOid rowOid, int depth)  | 
 | 
        throws SnmpStatusException { | 
 | 
        if (req.getSize() == 0) return;  | 
 | 
 | 
 | 
        JvmRTLibraryPathEntryMBean entry = (JvmRTLibraryPathEntryMBean) getEntry(rowOid);  | 
 | 
        synchronized (this) { | 
 | 
            node.setInstance(entry);  | 
 | 
            node.check(req,depth);  | 
 | 
        }  | 
 | 
    }  | 
 | 
 | 
 | 
      | 
 | 
 | 
 | 
     */  | 
 | 
    public void validateVarEntryId( SnmpOid rowOid, long var, Object data )  | 
 | 
        throws SnmpStatusException { | 
 | 
        node.validateVarId(var, data);  | 
 | 
    }  | 
 | 
 | 
 | 
      | 
 | 
 | 
 | 
     */  | 
 | 
    public boolean isReadableEntryId( SnmpOid rowOid, long var, Object data )  | 
 | 
        throws SnmpStatusException { | 
 | 
        return node.isReadable(var);  | 
 | 
    }  | 
 | 
 | 
 | 
      | 
 | 
 | 
 | 
     */  | 
 | 
    public long getNextVarEntryId( SnmpOid rowOid, long var, Object data )  | 
 | 
        throws SnmpStatusException { | 
 | 
        long nextvar = node.getNextVarId(var, data);  | 
 | 
        while (!isReadableEntryId(rowOid, nextvar, data))  | 
 | 
            nextvar = node.getNextVarId(nextvar, data);  | 
 | 
        return nextvar;  | 
 | 
    }  | 
 | 
 | 
 | 
    // ------------------------------------------------------------  | 
 | 
    //  | 
 | 
    // Implements the "skipEntryVariable" method defined in "SnmpMibTable".  | 
 | 
    // See the "SnmpMibTable" Javadoc API for more details.  | 
 | 
    //  | 
 | 
    // ------------------------------------------------------------  | 
 | 
 | 
 | 
    public boolean skipEntryVariable( SnmpOid rowOid, long var, Object data, int pduVersion) { | 
 | 
        try { | 
 | 
            JvmRTLibraryPathEntryMBean entry = (JvmRTLibraryPathEntryMBean) getEntry(rowOid);  | 
 | 
            synchronized (this) { | 
 | 
                node.setInstance(entry);  | 
 | 
                return node.skipVariable(var, data, pduVersion);  | 
 | 
            }  | 
 | 
        } catch (SnmpStatusException x) { | 
 | 
            return false;  | 
 | 
        }  | 
 | 
    }  | 
 | 
 | 
 | 
 | 
 | 
      | 
 | 
 | 
 | 
     */  | 
 | 
    private JvmRTLibraryPathEntryMeta node;  | 
 | 
 | 
 | 
      | 
 | 
 | 
 | 
     */  | 
 | 
    protected SnmpStandardObjectServer objectserver;  | 
 | 
 | 
 | 
}  |