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: ProtocolDistControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row protocolDistControlEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class ProtocolDistControlEntryImpl extends ProtocolDistControlEntry
23 public ProtocolDistControlEntryImpl(int protocolDistControlIndex)
25 super(protocolDistControlIndex);
28 public AgentXOID get_protocolDistControlDataSource()
30 return protocolDistControlDataSource;
33 public int set_protocolDistControlDataSource(AgentXSetPhase phase, AgentXOID value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_protocolDistControlDataSource = protocolDistControlDataSource;
40 protocolDistControlDataSource = value;
42 case AgentXSetPhase.UNDO:
43 protocolDistControlDataSource = undo_protocolDistControlDataSource;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public long get_protocolDistControlDroppedFrames()
54 return protocolDistControlDroppedFrames;
57 public long get_protocolDistControlCreateTime()
59 return protocolDistControlCreateTime;
62 public byte[] get_protocolDistControlOwner()
64 return protocolDistControlOwner;
67 public int set_protocolDistControlOwner(AgentXSetPhase phase, byte[] value)
69 switch (phase.getPhase()) {
70 case AgentXSetPhase.TEST_SET:
72 case AgentXSetPhase.COMMIT:
73 undo_protocolDistControlOwner = protocolDistControlOwner;
74 protocolDistControlOwner = new byte[value.length];
75 for(int i = 0; i < value.length; i++)
76 protocolDistControlOwner[i] = value[i];
78 case AgentXSetPhase.UNDO:
79 protocolDistControlOwner = undo_protocolDistControlOwner;
81 case AgentXSetPhase.CLEANUP:
82 undo_protocolDistControlOwner = null;
85 return AgentXResponsePDU.PROCESSING_ERROR;
87 return AgentXResponsePDU.NO_ERROR;
89 public int get_protocolDistControlStatus()
91 return protocolDistControlStatus;
94 public int set_protocolDistControlStatus(AgentXSetPhase phase, int value)
96 switch (phase.getPhase()) {
97 case AgentXSetPhase.TEST_SET:
99 case AgentXSetPhase.COMMIT:
100 undo_protocolDistControlStatus = protocolDistControlStatus;
101 protocolDistControlStatus = value;
103 case AgentXSetPhase.UNDO:
104 protocolDistControlStatus = undo_protocolDistControlStatus;
106 case AgentXSetPhase.CLEANUP:
109 return AgentXResponsePDU.PROCESSING_ERROR;
111 return AgentXResponsePDU.NO_ERROR;