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: UsrHistoryObjectEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row usrHistoryObjectEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class UsrHistoryObjectEntryImpl extends UsrHistoryObjectEntry
23 public UsrHistoryObjectEntryImpl(int usrHistoryControlIndex,
24 int usrHistoryObjectIndex)
26 super(usrHistoryControlIndex,
27 usrHistoryObjectIndex);
30 public AgentXOID get_usrHistoryObjectVariable()
32 return usrHistoryObjectVariable;
35 public int set_usrHistoryObjectVariable(AgentXSetPhase phase, AgentXOID value)
37 switch (phase.getPhase()) {
38 case AgentXSetPhase.TEST_SET:
40 case AgentXSetPhase.COMMIT:
41 undo_usrHistoryObjectVariable = usrHistoryObjectVariable;
42 usrHistoryObjectVariable = value;
44 case AgentXSetPhase.UNDO:
45 usrHistoryObjectVariable = undo_usrHistoryObjectVariable;
47 case AgentXSetPhase.CLEANUP:
50 return AgentXResponsePDU.PROCESSING_ERROR;
52 return AgentXResponsePDU.NO_ERROR;
54 public int get_usrHistoryObjectSampleType()
56 return usrHistoryObjectSampleType;
59 public int set_usrHistoryObjectSampleType(AgentXSetPhase phase, int value)
61 switch (phase.getPhase()) {
62 case AgentXSetPhase.TEST_SET:
64 case AgentXSetPhase.COMMIT:
65 undo_usrHistoryObjectSampleType = usrHistoryObjectSampleType;
66 usrHistoryObjectSampleType = value;
68 case AgentXSetPhase.UNDO:
69 usrHistoryObjectSampleType = undo_usrHistoryObjectSampleType;
71 case AgentXSetPhase.CLEANUP:
74 return AgentXResponsePDU.PROCESSING_ERROR;
76 return AgentXResponsePDU.NO_ERROR;