KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > snmp4j > agent > io > MOInput


1 /*_############################################################################
2   _##
3   _## SNMP4J-Agent - MOInput.java
4   _##
5   _## Copyright (C) 2005-2007 Frank Fock (SNMP4J.org)
6   _##
7   _## Licensed under the Apache License, Version 2.0 (the "License");
8   _## you may not use this file except in compliance with the License.
9   _## You may obtain a copy of the License at
10   _##
11   _## http://www.apache.org/licenses/LICENSE-2.0
12   _##
13   _## Unless required by applicable law or agreed to in writing, software
14   _## distributed under the License is distributed on an "AS IS" BASIS,
15   _## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   _## See the License for the specific language governing permissions and
17   _## limitations under the License.
18   _##
19   _##########################################################################*/

20
21
22 package org.snmp4j.agent.io;
23
24 import org.snmp4j.smi.Variable;
25 import java.io.IOException JavaDoc;
26
27 public interface MOInput {
28
29   /**
30    * Returns the update mode, which might be one of the constants defined
31    * by {@link ImportModes}.
32    * @return
33    * the constant denoting the update mode that should be used by a
34    * <code>SerializableManagedObject</code> to import its content from
35    * persistent storage.
36    */

37   int getImportMode();
38
39   Context readContext() throws IOException JavaDoc;
40   void skipContext(Context context) throws IOException JavaDoc;
41
42   MOInfo readManagedObject() throws IOException JavaDoc;
43
44   /**
45    * Skips to the end of the specified managed object's configuration.
46    * @param mo
47    * a MOInfo instance.
48    * @throws
49    * IOException
50    */

51   void skipManagedObject(MOInfo mo) throws IOException JavaDoc;
52
53   Variable readVariable() throws IOException JavaDoc;
54
55   Sequence readSequence() throws IOException JavaDoc;
56
57   IndexedVariables readIndexedVariables() throws IOException JavaDoc;
58
59
60 }
61
Popular Tags