snmpsubsystem.java

来自「JAVA的一些源码 JAVA2 STANDARD EDITION DEVELO」· Java 代码 · 共 60 行

JAVA
60
字号
/* * @(#)file      SnmpSubSystem.java * @(#)author    Sun Microsystems, Inc. * @(#)version   1.15 * @(#)date      07/09/25 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * */package com.sun.jmx.snmp.internal;import com.sun.jmx.snmp.SnmpEngine;import com.sun.jmx.snmp.SnmpUnknownModelException;import java.util.Hashtable;/** * SNMP sub system interface. To allow engine framework integration, a sub system must implement this interface. A sub system is a model manager. Every model is identified by an ID. A sub system can retrieve a previously registered model using this ID. * <P> Every sub system is associated to its SNMP engine. * <p><b>This API is a Sun Microsystems internal API  and is subject  * to change without notice.</b></p> */public interface SnmpSubSystem {    /**     * Returns the associated engine.     * @return The engine.     */    public SnmpEngine getEngine();    /**     * Adds a model to this sub system.     * @param id The model ID.     * @param model The model to add.     */    public void addModel(int id, SnmpModel model);    /**     * Removes a model from this sub system.     * @param id The model ID to remove.     * @return The removed model.     */    public SnmpModel removeModel(int id) throws SnmpUnknownModelException;    /**     * Gets a model from this sub system.     * @param id The model ID to get.     * @return The model.     */    public SnmpModel getModel(int id) throws SnmpUnknownModelException;        /**      * Returns the set of model Ids that have been registered within the sub system.     */    public int[] getModelIds();    /**      * Returns the set of model names that have been registered within the sub system.     */    public String[] getModelNames();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?