- /*
- * @(#)file SnmpSubSystem.java
- * @(#)author Sun Microsystems, Inc.
- * @(#)version 1.15
- * @(#)date 04/09/15
- *
- * 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();
- }