2 * This Java file has been generated by smidump 0.4.5. Do not edit!
3 * It is intended to be used within a Java AgentX sub-agent environment.
5 * $Id: HlHostControlEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row hlHostControlEntry defined in RMON2-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class HlHostControlEntry extends AgentXEntry
25 protected int hlHostControlIndex = 0;
26 protected AgentXOID hlHostControlDataSource = new AgentXOID();
27 protected AgentXOID undo_hlHostControlDataSource = new AgentXOID();
28 protected long hlHostControlNlDroppedFrames = 0;
29 protected long hlHostControlNlInserts = 0;
30 protected long hlHostControlNlDeletes = 0;
31 protected int hlHostControlNlMaxDesiredEntries = 0;
32 protected int undo_hlHostControlNlMaxDesiredEntries = 0;
33 protected long hlHostControlAlDroppedFrames = 0;
34 protected long hlHostControlAlInserts = 0;
35 protected long hlHostControlAlDeletes = 0;
36 protected int hlHostControlAlMaxDesiredEntries = 0;
37 protected int undo_hlHostControlAlMaxDesiredEntries = 0;
38 protected byte[] hlHostControlOwner = new byte[0];
39 protected byte[] undo_hlHostControlOwner = new byte[0];
40 protected int hlHostControlStatus = 0;
41 protected int undo_hlHostControlStatus = 0;
43 public HlHostControlEntry(int hlHostControlIndex)
45 this.hlHostControlIndex = hlHostControlIndex;
47 instance.append(hlHostControlIndex);
50 public int get_hlHostControlIndex()
52 return hlHostControlIndex;
55 public AgentXOID get_hlHostControlDataSource()
57 return hlHostControlDataSource;
60 public int set_hlHostControlDataSource(AgentXSetPhase phase, AgentXOID value)
62 switch (phase.getPhase()) {
63 case AgentXSetPhase.TEST_SET:
65 case AgentXSetPhase.COMMIT:
66 undo_hlHostControlDataSource = hlHostControlDataSource;
67 hlHostControlDataSource = value;
69 case AgentXSetPhase.UNDO:
70 hlHostControlDataSource = undo_hlHostControlDataSource;
72 case AgentXSetPhase.CLEANUP:
75 return AgentXResponsePDU.PROCESSING_ERROR;
77 return AgentXResponsePDU.NO_ERROR;
79 public long get_hlHostControlNlDroppedFrames()
81 return hlHostControlNlDroppedFrames;
84 public long get_hlHostControlNlInserts()
86 return hlHostControlNlInserts;
89 public long get_hlHostControlNlDeletes()
91 return hlHostControlNlDeletes;
94 public int get_hlHostControlNlMaxDesiredEntries()
96 return hlHostControlNlMaxDesiredEntries;
99 public int set_hlHostControlNlMaxDesiredEntries(AgentXSetPhase phase, int value)
101 switch (phase.getPhase()) {
102 case AgentXSetPhase.TEST_SET:
104 case AgentXSetPhase.COMMIT:
105 undo_hlHostControlNlMaxDesiredEntries = hlHostControlNlMaxDesiredEntries;
106 hlHostControlNlMaxDesiredEntries = value;
108 case AgentXSetPhase.UNDO:
109 hlHostControlNlMaxDesiredEntries = undo_hlHostControlNlMaxDesiredEntries;
111 case AgentXSetPhase.CLEANUP:
114 return AgentXResponsePDU.PROCESSING_ERROR;
116 return AgentXResponsePDU.NO_ERROR;
118 public long get_hlHostControlAlDroppedFrames()
120 return hlHostControlAlDroppedFrames;
123 public long get_hlHostControlAlInserts()
125 return hlHostControlAlInserts;
128 public long get_hlHostControlAlDeletes()
130 return hlHostControlAlDeletes;
133 public int get_hlHostControlAlMaxDesiredEntries()
135 return hlHostControlAlMaxDesiredEntries;
138 public int set_hlHostControlAlMaxDesiredEntries(AgentXSetPhase phase, int value)
140 switch (phase.getPhase()) {
141 case AgentXSetPhase.TEST_SET:
143 case AgentXSetPhase.COMMIT:
144 undo_hlHostControlAlMaxDesiredEntries = hlHostControlAlMaxDesiredEntries;
145 hlHostControlAlMaxDesiredEntries = value;
147 case AgentXSetPhase.UNDO:
148 hlHostControlAlMaxDesiredEntries = undo_hlHostControlAlMaxDesiredEntries;
150 case AgentXSetPhase.CLEANUP:
153 return AgentXResponsePDU.PROCESSING_ERROR;
155 return AgentXResponsePDU.NO_ERROR;
157 public byte[] get_hlHostControlOwner()
159 return hlHostControlOwner;
162 public int set_hlHostControlOwner(AgentXSetPhase phase, byte[] value)
164 switch (phase.getPhase()) {
165 case AgentXSetPhase.TEST_SET:
167 case AgentXSetPhase.COMMIT:
168 undo_hlHostControlOwner = hlHostControlOwner;
169 hlHostControlOwner = new byte[value.length];
170 for(int i = 0; i < value.length; i++)
171 hlHostControlOwner[i] = value[i];
173 case AgentXSetPhase.UNDO:
174 hlHostControlOwner = undo_hlHostControlOwner;
176 case AgentXSetPhase.CLEANUP:
177 undo_hlHostControlOwner = null;
180 return AgentXResponsePDU.PROCESSING_ERROR;
182 return AgentXResponsePDU.NO_ERROR;
184 public int get_hlHostControlStatus()
186 return hlHostControlStatus;
189 public int set_hlHostControlStatus(AgentXSetPhase phase, int value)
191 switch (phase.getPhase()) {
192 case AgentXSetPhase.TEST_SET:
194 case AgentXSetPhase.COMMIT:
195 undo_hlHostControlStatus = hlHostControlStatus;
196 hlHostControlStatus = value;
198 case AgentXSetPhase.UNDO:
199 hlHostControlStatus = undo_hlHostControlStatus;
201 case AgentXSetPhase.CLEANUP:
204 return AgentXResponsePDU.PROCESSING_ERROR;
206 return AgentXResponsePDU.NO_ERROR;