2 * This Java file has been generated by smidump 0.4.5. It
3 * is intended to be edited by the application programmer and
4 * to be used within a Java AgentX sub-agent environment.
6 * $Id: HlHostControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row hlHostControlEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class HlHostControlEntryImpl extends HlHostControlEntry
23 public HlHostControlEntryImpl(int hlHostControlIndex)
25 super(hlHostControlIndex);
28 public AgentXOID get_hlHostControlDataSource()
30 return hlHostControlDataSource;
33 public int set_hlHostControlDataSource(AgentXSetPhase phase, AgentXOID value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_hlHostControlDataSource = hlHostControlDataSource;
40 hlHostControlDataSource = value;
42 case AgentXSetPhase.UNDO:
43 hlHostControlDataSource = undo_hlHostControlDataSource;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public long get_hlHostControlNlDroppedFrames()
54 return hlHostControlNlDroppedFrames;
57 public long get_hlHostControlNlInserts()
59 return hlHostControlNlInserts;
62 public long get_hlHostControlNlDeletes()
64 return hlHostControlNlDeletes;
67 public int get_hlHostControlNlMaxDesiredEntries()
69 return hlHostControlNlMaxDesiredEntries;
72 public int set_hlHostControlNlMaxDesiredEntries(AgentXSetPhase phase, int value)
74 switch (phase.getPhase()) {
75 case AgentXSetPhase.TEST_SET:
77 case AgentXSetPhase.COMMIT:
78 undo_hlHostControlNlMaxDesiredEntries = hlHostControlNlMaxDesiredEntries;
79 hlHostControlNlMaxDesiredEntries = value;
81 case AgentXSetPhase.UNDO:
82 hlHostControlNlMaxDesiredEntries = undo_hlHostControlNlMaxDesiredEntries;
84 case AgentXSetPhase.CLEANUP:
87 return AgentXResponsePDU.PROCESSING_ERROR;
89 return AgentXResponsePDU.NO_ERROR;
91 public long get_hlHostControlAlDroppedFrames()
93 return hlHostControlAlDroppedFrames;
96 public long get_hlHostControlAlInserts()
98 return hlHostControlAlInserts;
101 public long get_hlHostControlAlDeletes()
103 return hlHostControlAlDeletes;
106 public int get_hlHostControlAlMaxDesiredEntries()
108 return hlHostControlAlMaxDesiredEntries;
111 public int set_hlHostControlAlMaxDesiredEntries(AgentXSetPhase phase, int value)
113 switch (phase.getPhase()) {
114 case AgentXSetPhase.TEST_SET:
116 case AgentXSetPhase.COMMIT:
117 undo_hlHostControlAlMaxDesiredEntries = hlHostControlAlMaxDesiredEntries;
118 hlHostControlAlMaxDesiredEntries = value;
120 case AgentXSetPhase.UNDO:
121 hlHostControlAlMaxDesiredEntries = undo_hlHostControlAlMaxDesiredEntries;
123 case AgentXSetPhase.CLEANUP:
126 return AgentXResponsePDU.PROCESSING_ERROR;
128 return AgentXResponsePDU.NO_ERROR;
130 public byte[] get_hlHostControlOwner()
132 return hlHostControlOwner;
135 public int set_hlHostControlOwner(AgentXSetPhase phase, byte[] value)
137 switch (phase.getPhase()) {
138 case AgentXSetPhase.TEST_SET:
140 case AgentXSetPhase.COMMIT:
141 undo_hlHostControlOwner = hlHostControlOwner;
142 hlHostControlOwner = new byte[value.length];
143 for(int i = 0; i < value.length; i++)
144 hlHostControlOwner[i] = value[i];
146 case AgentXSetPhase.UNDO:
147 hlHostControlOwner = undo_hlHostControlOwner;
149 case AgentXSetPhase.CLEANUP:
150 undo_hlHostControlOwner = null;
153 return AgentXResponsePDU.PROCESSING_ERROR;
155 return AgentXResponsePDU.NO_ERROR;
157 public int get_hlHostControlStatus()
159 return hlHostControlStatus;
162 public int set_hlHostControlStatus(AgentXSetPhase phase, int value)
164 switch (phase.getPhase()) {
165 case AgentXSetPhase.TEST_SET:
167 case AgentXSetPhase.COMMIT:
168 undo_hlHostControlStatus = hlHostControlStatus;
169 hlHostControlStatus = value;
171 case AgentXSetPhase.UNDO:
172 hlHostControlStatus = undo_hlHostControlStatus;
174 case AgentXSetPhase.CLEANUP:
177 return AgentXResponsePDU.PROCESSING_ERROR;
179 return AgentXResponsePDU.NO_ERROR;