01: /*_############################################################################
02: _##
03: _## SNMP4J-Agent - MOInput.java
04: _##
05: _## Copyright (C) 2005-2007 Frank Fock (SNMP4J.org)
06: _##
07: _## Licensed under the Apache License, Version 2.0 (the "License");
08: _## you may not use this file except in compliance with the License.
09: _## 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: package org.snmp4j.agent.io;
22:
23: import org.snmp4j.smi.Variable;
24: import java.io.IOException;
25:
26: public interface MOInput {
27:
28: /**
29: * Returns the update mode, which might be one of the constants defined
30: * by {@link ImportModes}.
31: * @return
32: * the constant denoting the update mode that should be used by a
33: * <code>SerializableManagedObject</code> to import its content from
34: * persistent storage.
35: */
36: int getImportMode();
37:
38: Context readContext() throws IOException;
39:
40: void skipContext(Context context) throws IOException;
41:
42: MOInfo readManagedObject() throws IOException;
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;
52:
53: Variable readVariable() throws IOException;
54:
55: Sequence readSequence() throws IOException;
56:
57: IndexedVariables readIndexedVariables() throws IOException;
58:
59: }
|