--- old/src/jdk.snmp/share/classes/com/sun/jmx/snmp/agent/SnmpStandardMetaServer.java 2014-10-15 14:06:00.000000000 +0200 +++ /dev/null 2014-10-15 14:06:00.000000000 +0200 @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.sun.jmx.snmp.agent; - -// jmx imports -// -import com.sun.jmx.snmp.SnmpValue; -import com.sun.jmx.snmp.SnmpStatusException; - -/** - *
- * This interface defines the methods that must be implemented by an - * SNMP metadata object that needs to interact with an - * {@link com.sun.jmx.snmp.agent.SnmpStandardObjectServer} object. - *
- *
- * All these methods are usually generated by mibgen
when
- * run in standard-metadata mode (default).
- *
- * This interface is used internally between the generated Metadata and - * the SNMP runtime and you shouldn't need to worry about it, because - * you will never have to use it directly. - *
- * - *This API is a Sun Microsystems internal API and is subject - * to change without notice.
- **/ -public interface SnmpStandardMetaServer { - /** - * Returns the value of the scalar object identified by the given - * OID arc. - * - * @param arc OID arc of the querried scalar object. - * - * @return TheSnmpValue
of the scalar object identified
- * by arc
.
- *
- * @param userData A contextual object containing user-data.
- * This object is allocated through the
- * {@link com.sun.jmx.snmp.agent.SnmpUserDataFactory}
- * for each incoming SNMP request.
- *
- * @exception SnmpStatusException If the arc is not valid, or if
- * access is denied.
- *
- **/
- public SnmpValue get(long arc, Object userData)
- throws SnmpStatusException ;
-
- /**
- * Sets the value of the scalar object identified by the given
- * OID arc.
- *
- * @param x New value for the scalar object identified by
- * arc
- *
- * @param arc OID arc of the scalar object whose value is set.
- *
- * @return The new SnmpValue
of the scalar object
- * identified by arc
.
- *
- * @param userData A contextual object containing user-data.
- * This object is allocated through the
- * {@link com.sun.jmx.snmp.agent.SnmpUserDataFactory}
- * for each incoming SNMP request.
- *
- * @exception SnmpStatusException If the arc is not valid, or if
- * access is denied.
- *
- **/
- public SnmpValue set(SnmpValue x, long arc, Object userData)
- throws SnmpStatusException ;
-
- /**
- * Checks that the new desired value of the scalar object identified
- * by the given OID arc is valid.
- *
- * @param x New value for the scalar object identified by
- * arc
- *
- * @param arc OID arc of the scalar object whose value is set.
- *
- * @param userData A contextual object containing user-data.
- * This object is allocated through the
- * {@link com.sun.jmx.snmp.agent.SnmpUserDataFactory}
- * for each incoming SNMP request.
- *
- * @exception SnmpStatusException If the arc is not valid, or if
- * access is denied, or if the new desired value is not valid.
- *
- **/
- public void check(SnmpValue x, long arc, Object userData)
- throws SnmpStatusException ;
-
-}