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: ProbeConfigImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the scalar group probeConfig defined in RMON2-MIB.
14 import java.util.Vector;
15 import java.util.Enumeration;
17 import jax.AgentXSetPhase;
18 import jax.AgentXResponsePDU;
20 public class ProbeConfigImpl extends ProbeConfig
23 public byte[] get_probeCapabilities()
25 return probeCapabilities;
28 public byte[] get_probeSoftwareRev()
30 return probeSoftwareRev;
33 public byte[] get_probeHardwareRev()
35 return probeHardwareRev;
38 public byte[] get_probeDateTime()
43 public int set_probeDateTime(AgentXSetPhase phase, byte[] value)
45 switch (phase.getPhase()) {
46 case AgentXSetPhase.TEST_SET:
48 case AgentXSetPhase.COMMIT:
49 undo_probeDateTime = probeDateTime;
50 probeDateTime = new byte[value.length];
51 for(int i = 0; i < value.length; i++)
52 probeDateTime[i] = value[i];
54 case AgentXSetPhase.UNDO:
55 probeDateTime = undo_probeDateTime;
57 case AgentXSetPhase.CLEANUP:
58 undo_probeDateTime = null;
61 return AgentXResponsePDU.PROCESSING_ERROR;
63 return AgentXResponsePDU.NO_ERROR;
66 public int get_probeResetControl()
68 return probeResetControl;
71 public int set_probeResetControl(AgentXSetPhase phase, int value)
73 switch (phase.getPhase()) {
74 case AgentXSetPhase.TEST_SET:
76 case AgentXSetPhase.COMMIT:
77 undo_probeResetControl = probeResetControl;
78 probeResetControl = value;
80 case AgentXSetPhase.UNDO:
81 probeResetControl = undo_probeResetControl;
83 case AgentXSetPhase.CLEANUP:
84 undo_probeResetControl = -1; // TODO: better check!
87 return AgentXResponsePDU.PROCESSING_ERROR;
89 return AgentXResponsePDU.NO_ERROR;
92 public byte[] get_probeDownloadFile()
94 return probeDownloadFile;
97 public int set_probeDownloadFile(AgentXSetPhase phase, byte[] value)
99 switch (phase.getPhase()) {
100 case AgentXSetPhase.TEST_SET:
102 case AgentXSetPhase.COMMIT:
103 undo_probeDownloadFile = probeDownloadFile;
104 probeDownloadFile = new byte[value.length];
105 for(int i = 0; i < value.length; i++)
106 probeDownloadFile[i] = value[i];
108 case AgentXSetPhase.UNDO:
109 probeDownloadFile = undo_probeDownloadFile;
111 case AgentXSetPhase.CLEANUP:
112 undo_probeDownloadFile = null;
115 return AgentXResponsePDU.PROCESSING_ERROR;
117 return AgentXResponsePDU.NO_ERROR;
120 public byte[] get_probeDownloadTFTPServer()
122 return probeDownloadTFTPServer;
125 public int set_probeDownloadTFTPServer(AgentXSetPhase phase, byte[] value)
127 switch (phase.getPhase()) {
128 case AgentXSetPhase.TEST_SET:
130 case AgentXSetPhase.COMMIT:
131 undo_probeDownloadTFTPServer = probeDownloadTFTPServer;
132 probeDownloadTFTPServer = new byte[value.length];
133 for(int i = 0; i < value.length; i++)
134 probeDownloadTFTPServer[i] = value[i];
136 case AgentXSetPhase.UNDO:
137 probeDownloadTFTPServer = undo_probeDownloadTFTPServer;
139 case AgentXSetPhase.CLEANUP:
140 undo_probeDownloadTFTPServer = null;
143 return AgentXResponsePDU.PROCESSING_ERROR;
145 return AgentXResponsePDU.NO_ERROR;
148 public int get_probeDownloadAction()
150 return probeDownloadAction;
153 public int set_probeDownloadAction(AgentXSetPhase phase, int value)
155 switch (phase.getPhase()) {
156 case AgentXSetPhase.TEST_SET:
158 case AgentXSetPhase.COMMIT:
159 undo_probeDownloadAction = probeDownloadAction;
160 probeDownloadAction = value;
162 case AgentXSetPhase.UNDO:
163 probeDownloadAction = undo_probeDownloadAction;
165 case AgentXSetPhase.CLEANUP:
166 undo_probeDownloadAction = -1; // TODO: better check!
169 return AgentXResponsePDU.PROCESSING_ERROR;
171 return AgentXResponsePDU.NO_ERROR;
174 public int get_probeDownloadStatus()
176 return probeDownloadStatus;