Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / test / dumps / jax / HlHostControlEntry.java
1 /*
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.
4  *
5  * $Id: HlHostControlEntry.java 4432 2006-05-29 16:21:11Z strauss $
6  */
7
8 /**
9     This class represents a Java AgentX (JAX) implementation of
10     the table row hlHostControlEntry defined in RMON2-MIB.
11
12     @version 1
13     @author  smidump 0.4.5
14     @see     AgentXTable, AgentXEntry
15  */
16
17 import jax.AgentXOID;
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
21
22 public class HlHostControlEntry extends AgentXEntry
23 {
24
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;
42
43     public HlHostControlEntry(int hlHostControlIndex)
44     {
45         this.hlHostControlIndex = hlHostControlIndex;
46
47         instance.append(hlHostControlIndex);
48     }
49
50     public int get_hlHostControlIndex()
51     {
52         return hlHostControlIndex;
53     }
54
55     public AgentXOID get_hlHostControlDataSource()
56     {
57         return hlHostControlDataSource;
58     }
59
60     public int set_hlHostControlDataSource(AgentXSetPhase phase, AgentXOID value)
61     {
62         switch (phase.getPhase()) {
63         case AgentXSetPhase.TEST_SET:
64             break;
65         case AgentXSetPhase.COMMIT:
66             undo_hlHostControlDataSource = hlHostControlDataSource;
67             hlHostControlDataSource = value;
68             break;
69         case AgentXSetPhase.UNDO:
70             hlHostControlDataSource = undo_hlHostControlDataSource;
71             break;
72         case AgentXSetPhase.CLEANUP:
73             break;
74         default:
75             return AgentXResponsePDU.PROCESSING_ERROR;
76         }
77         return AgentXResponsePDU.NO_ERROR;
78     }
79     public long get_hlHostControlNlDroppedFrames()
80     {
81         return hlHostControlNlDroppedFrames;
82     }
83
84     public long get_hlHostControlNlInserts()
85     {
86         return hlHostControlNlInserts;
87     }
88
89     public long get_hlHostControlNlDeletes()
90     {
91         return hlHostControlNlDeletes;
92     }
93
94     public int get_hlHostControlNlMaxDesiredEntries()
95     {
96         return hlHostControlNlMaxDesiredEntries;
97     }
98
99     public int set_hlHostControlNlMaxDesiredEntries(AgentXSetPhase phase, int value)
100     {
101         switch (phase.getPhase()) {
102         case AgentXSetPhase.TEST_SET:
103             break;
104         case AgentXSetPhase.COMMIT:
105             undo_hlHostControlNlMaxDesiredEntries = hlHostControlNlMaxDesiredEntries;
106             hlHostControlNlMaxDesiredEntries = value;
107             break;
108         case AgentXSetPhase.UNDO:
109             hlHostControlNlMaxDesiredEntries = undo_hlHostControlNlMaxDesiredEntries;
110             break;
111         case AgentXSetPhase.CLEANUP:
112             break;
113         default:
114             return AgentXResponsePDU.PROCESSING_ERROR;
115         }
116         return AgentXResponsePDU.NO_ERROR;
117     }
118     public long get_hlHostControlAlDroppedFrames()
119     {
120         return hlHostControlAlDroppedFrames;
121     }
122
123     public long get_hlHostControlAlInserts()
124     {
125         return hlHostControlAlInserts;
126     }
127
128     public long get_hlHostControlAlDeletes()
129     {
130         return hlHostControlAlDeletes;
131     }
132
133     public int get_hlHostControlAlMaxDesiredEntries()
134     {
135         return hlHostControlAlMaxDesiredEntries;
136     }
137
138     public int set_hlHostControlAlMaxDesiredEntries(AgentXSetPhase phase, int value)
139     {
140         switch (phase.getPhase()) {
141         case AgentXSetPhase.TEST_SET:
142             break;
143         case AgentXSetPhase.COMMIT:
144             undo_hlHostControlAlMaxDesiredEntries = hlHostControlAlMaxDesiredEntries;
145             hlHostControlAlMaxDesiredEntries = value;
146             break;
147         case AgentXSetPhase.UNDO:
148             hlHostControlAlMaxDesiredEntries = undo_hlHostControlAlMaxDesiredEntries;
149             break;
150         case AgentXSetPhase.CLEANUP:
151             break;
152         default:
153             return AgentXResponsePDU.PROCESSING_ERROR;
154         }
155         return AgentXResponsePDU.NO_ERROR;
156     }
157     public byte[] get_hlHostControlOwner()
158     {
159         return hlHostControlOwner;
160     }
161
162     public int set_hlHostControlOwner(AgentXSetPhase phase, byte[] value)
163     {
164         switch (phase.getPhase()) {
165         case AgentXSetPhase.TEST_SET:
166             break;
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];
172             break;
173         case AgentXSetPhase.UNDO:
174             hlHostControlOwner = undo_hlHostControlOwner;
175             break;
176         case AgentXSetPhase.CLEANUP:
177             undo_hlHostControlOwner = null;
178             break;
179         default:
180             return AgentXResponsePDU.PROCESSING_ERROR;
181         }
182         return AgentXResponsePDU.NO_ERROR;
183     }
184     public int get_hlHostControlStatus()
185     {
186         return hlHostControlStatus;
187     }
188
189     public int set_hlHostControlStatus(AgentXSetPhase phase, int value)
190     {
191         switch (phase.getPhase()) {
192         case AgentXSetPhase.TEST_SET:
193             break;
194         case AgentXSetPhase.COMMIT:
195             undo_hlHostControlStatus = hlHostControlStatus;
196             hlHostControlStatus = value;
197             break;
198         case AgentXSetPhase.UNDO:
199             hlHostControlStatus = undo_hlHostControlStatus;
200             break;
201         case AgentXSetPhase.CLEANUP:
202             break;
203         default:
204             return AgentXResponsePDU.PROCESSING_ERROR;
205         }
206         return AgentXResponsePDU.NO_ERROR;
207     }
208 }
209