| 5535 |
amar.kumar |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.alert;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class AlertService {
|
|
|
24 |
|
|
|
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
|
|
26 |
|
|
|
27 |
/**
|
|
|
28 |
* Create a new tracking object.
|
|
|
29 |
*
|
|
|
30 |
* @param entity
|
|
|
31 |
*/
|
|
|
32 |
public void scheduleAlert(MonitoredEntity entity) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
33 |
|
|
|
34 |
/**
|
|
|
35 |
* Update previously stored tracking object.
|
|
|
36 |
*
|
|
|
37 |
* @param entity
|
|
|
38 |
*/
|
|
|
39 |
public void updateMonitoredObject(MonitoredEntity entity) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
40 |
|
|
|
41 |
/**
|
|
|
42 |
* Stop tracking the entity
|
|
|
43 |
*
|
|
|
44 |
* @param entityType
|
|
|
45 |
* @param entityIdentifier
|
|
|
46 |
*/
|
|
|
47 |
public void endMonitoringEntity(EntityType entityType, String entityIdentifier) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
48 |
|
|
|
49 |
/**
|
|
|
50 |
* Get entities with specified conditions in SearchFilter Object
|
|
|
51 |
*
|
|
|
52 |
* @param searchFilter
|
|
|
53 |
*/
|
|
|
54 |
public List<MonitoredEntity> getEntities(SearchFilter searchFilter) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
55 |
|
|
|
56 |
/**
|
|
|
57 |
* Get entities with specified conditions in SearchFilter Object
|
|
|
58 |
*
|
|
|
59 |
* @param searchFilter
|
|
|
60 |
*/
|
|
|
61 |
public List<AlertedEntity> getAlertedEntities(SearchFilter searchFilter) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Get alertMap for entityType and eventType
|
|
|
65 |
*
|
|
|
66 |
* @param entityType
|
|
|
67 |
* @param eventType
|
|
|
68 |
*/
|
|
|
69 |
public AlertMapper getAlertMapper(EntityType entityType, int eventType) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
70 |
|
|
|
71 |
/**
|
|
|
72 |
* Start monitoring entityType or Update monitoring paremeters
|
|
|
73 |
*
|
|
|
74 |
* @param entityType
|
|
|
75 |
* @param userIds
|
|
|
76 |
*/
|
|
|
77 |
public void activateEntityMonitoring(EntityType entityType, String userIds) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Stop monitoring entityType
|
|
|
81 |
*
|
|
|
82 |
* @param entityType
|
|
|
83 |
*/
|
|
|
84 |
public void deActivateEntityMonitoring(EntityType entityType) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
85 |
|
|
|
86 |
/**
|
|
|
87 |
* Add AlertMap values for particular entity and event
|
|
|
88 |
*
|
|
|
89 |
* @param alertMap
|
|
|
90 |
*/
|
|
|
91 |
public void registerEventType(AlertMapper alertMap) throws AlertServiceException, org.apache.thrift.TException;
|
|
|
92 |
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
96 |
|
|
|
97 |
public void scheduleAlert(MonitoredEntity entity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scheduleAlert_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
98 |
|
|
|
99 |
public void updateMonitoredObject(MonitoredEntity entity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMonitoredObject_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
100 |
|
|
|
101 |
public void endMonitoringEntity(EntityType entityType, String entityIdentifier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.endMonitoringEntity_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
102 |
|
|
|
103 |
public void getEntities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntities_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
104 |
|
|
|
105 |
public void getAlertedEntities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlertedEntities_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
106 |
|
|
|
107 |
public void getAlertMapper(EntityType entityType, int eventType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlertMapper_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
108 |
|
|
|
109 |
public void activateEntityMonitoring(EntityType entityType, String userIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.activateEntityMonitoring_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
110 |
|
|
|
111 |
public void deActivateEntityMonitoring(EntityType entityType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deActivateEntityMonitoring_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
112 |
|
|
|
113 |
public void registerEventType(AlertMapper alertMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.registerEventType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
114 |
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
|
|
118 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
119 |
public Factory() {}
|
|
|
120 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
121 |
return new Client(prot);
|
|
|
122 |
}
|
|
|
123 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
124 |
return new Client(iprot, oprot);
|
|
|
125 |
}
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
|
|
129 |
{
|
|
|
130 |
super(prot, prot);
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
134 |
super(iprot, oprot);
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
public void scheduleAlert(MonitoredEntity entity) throws AlertServiceException, org.apache.thrift.TException
|
|
|
138 |
{
|
|
|
139 |
send_scheduleAlert(entity);
|
|
|
140 |
recv_scheduleAlert();
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
public void send_scheduleAlert(MonitoredEntity entity) throws org.apache.thrift.TException
|
|
|
144 |
{
|
|
|
145 |
scheduleAlert_args args = new scheduleAlert_args();
|
|
|
146 |
args.setEntity(entity);
|
|
|
147 |
sendBase("scheduleAlert", args);
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
public void recv_scheduleAlert() throws AlertServiceException, org.apache.thrift.TException
|
|
|
151 |
{
|
|
|
152 |
scheduleAlert_result result = new scheduleAlert_result();
|
|
|
153 |
receiveBase(result, "scheduleAlert");
|
|
|
154 |
if (result.e != null) {
|
|
|
155 |
throw result.e;
|
|
|
156 |
}
|
|
|
157 |
return;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public void updateMonitoredObject(MonitoredEntity entity) throws AlertServiceException, org.apache.thrift.TException
|
|
|
161 |
{
|
|
|
162 |
send_updateMonitoredObject(entity);
|
|
|
163 |
recv_updateMonitoredObject();
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public void send_updateMonitoredObject(MonitoredEntity entity) throws org.apache.thrift.TException
|
|
|
167 |
{
|
|
|
168 |
updateMonitoredObject_args args = new updateMonitoredObject_args();
|
|
|
169 |
args.setEntity(entity);
|
|
|
170 |
sendBase("updateMonitoredObject", args);
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
public void recv_updateMonitoredObject() throws AlertServiceException, org.apache.thrift.TException
|
|
|
174 |
{
|
|
|
175 |
updateMonitoredObject_result result = new updateMonitoredObject_result();
|
|
|
176 |
receiveBase(result, "updateMonitoredObject");
|
|
|
177 |
if (result.e != null) {
|
|
|
178 |
throw result.e;
|
|
|
179 |
}
|
|
|
180 |
return;
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
public void endMonitoringEntity(EntityType entityType, String entityIdentifier) throws AlertServiceException, org.apache.thrift.TException
|
|
|
184 |
{
|
|
|
185 |
send_endMonitoringEntity(entityType, entityIdentifier);
|
|
|
186 |
recv_endMonitoringEntity();
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
public void send_endMonitoringEntity(EntityType entityType, String entityIdentifier) throws org.apache.thrift.TException
|
|
|
190 |
{
|
|
|
191 |
endMonitoringEntity_args args = new endMonitoringEntity_args();
|
|
|
192 |
args.setEntityType(entityType);
|
|
|
193 |
args.setEntityIdentifier(entityIdentifier);
|
|
|
194 |
sendBase("endMonitoringEntity", args);
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
public void recv_endMonitoringEntity() throws AlertServiceException, org.apache.thrift.TException
|
|
|
198 |
{
|
|
|
199 |
endMonitoringEntity_result result = new endMonitoringEntity_result();
|
|
|
200 |
receiveBase(result, "endMonitoringEntity");
|
|
|
201 |
if (result.e != null) {
|
|
|
202 |
throw result.e;
|
|
|
203 |
}
|
|
|
204 |
return;
|
|
|
205 |
}
|
|
|
206 |
|
|
|
207 |
public List<MonitoredEntity> getEntities(SearchFilter searchFilter) throws AlertServiceException, org.apache.thrift.TException
|
|
|
208 |
{
|
|
|
209 |
send_getEntities(searchFilter);
|
|
|
210 |
return recv_getEntities();
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
public void send_getEntities(SearchFilter searchFilter) throws org.apache.thrift.TException
|
|
|
214 |
{
|
|
|
215 |
getEntities_args args = new getEntities_args();
|
|
|
216 |
args.setSearchFilter(searchFilter);
|
|
|
217 |
sendBase("getEntities", args);
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
public List<MonitoredEntity> recv_getEntities() throws AlertServiceException, org.apache.thrift.TException
|
|
|
221 |
{
|
|
|
222 |
getEntities_result result = new getEntities_result();
|
|
|
223 |
receiveBase(result, "getEntities");
|
|
|
224 |
if (result.isSetSuccess()) {
|
|
|
225 |
return result.success;
|
|
|
226 |
}
|
|
|
227 |
if (result.e != null) {
|
|
|
228 |
throw result.e;
|
|
|
229 |
}
|
|
|
230 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntities failed: unknown result");
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
public List<AlertedEntity> getAlertedEntities(SearchFilter searchFilter) throws AlertServiceException, org.apache.thrift.TException
|
|
|
234 |
{
|
|
|
235 |
send_getAlertedEntities(searchFilter);
|
|
|
236 |
return recv_getAlertedEntities();
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
public void send_getAlertedEntities(SearchFilter searchFilter) throws org.apache.thrift.TException
|
|
|
240 |
{
|
|
|
241 |
getAlertedEntities_args args = new getAlertedEntities_args();
|
|
|
242 |
args.setSearchFilter(searchFilter);
|
|
|
243 |
sendBase("getAlertedEntities", args);
|
|
|
244 |
}
|
|
|
245 |
|
|
|
246 |
public List<AlertedEntity> recv_getAlertedEntities() throws AlertServiceException, org.apache.thrift.TException
|
|
|
247 |
{
|
|
|
248 |
getAlertedEntities_result result = new getAlertedEntities_result();
|
|
|
249 |
receiveBase(result, "getAlertedEntities");
|
|
|
250 |
if (result.isSetSuccess()) {
|
|
|
251 |
return result.success;
|
|
|
252 |
}
|
|
|
253 |
if (result.e != null) {
|
|
|
254 |
throw result.e;
|
|
|
255 |
}
|
|
|
256 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlertedEntities failed: unknown result");
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
public AlertMapper getAlertMapper(EntityType entityType, int eventType) throws AlertServiceException, org.apache.thrift.TException
|
|
|
260 |
{
|
|
|
261 |
send_getAlertMapper(entityType, eventType);
|
|
|
262 |
return recv_getAlertMapper();
|
|
|
263 |
}
|
|
|
264 |
|
|
|
265 |
public void send_getAlertMapper(EntityType entityType, int eventType) throws org.apache.thrift.TException
|
|
|
266 |
{
|
|
|
267 |
getAlertMapper_args args = new getAlertMapper_args();
|
|
|
268 |
args.setEntityType(entityType);
|
|
|
269 |
args.setEventType(eventType);
|
|
|
270 |
sendBase("getAlertMapper", args);
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
public AlertMapper recv_getAlertMapper() throws AlertServiceException, org.apache.thrift.TException
|
|
|
274 |
{
|
|
|
275 |
getAlertMapper_result result = new getAlertMapper_result();
|
|
|
276 |
receiveBase(result, "getAlertMapper");
|
|
|
277 |
if (result.isSetSuccess()) {
|
|
|
278 |
return result.success;
|
|
|
279 |
}
|
|
|
280 |
if (result.e != null) {
|
|
|
281 |
throw result.e;
|
|
|
282 |
}
|
|
|
283 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlertMapper failed: unknown result");
|
|
|
284 |
}
|
|
|
285 |
|
|
|
286 |
public void activateEntityMonitoring(EntityType entityType, String userIds) throws AlertServiceException, org.apache.thrift.TException
|
|
|
287 |
{
|
|
|
288 |
send_activateEntityMonitoring(entityType, userIds);
|
|
|
289 |
recv_activateEntityMonitoring();
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
public void send_activateEntityMonitoring(EntityType entityType, String userIds) throws org.apache.thrift.TException
|
|
|
293 |
{
|
|
|
294 |
activateEntityMonitoring_args args = new activateEntityMonitoring_args();
|
|
|
295 |
args.setEntityType(entityType);
|
|
|
296 |
args.setUserIds(userIds);
|
|
|
297 |
sendBase("activateEntityMonitoring", args);
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
public void recv_activateEntityMonitoring() throws AlertServiceException, org.apache.thrift.TException
|
|
|
301 |
{
|
|
|
302 |
activateEntityMonitoring_result result = new activateEntityMonitoring_result();
|
|
|
303 |
receiveBase(result, "activateEntityMonitoring");
|
|
|
304 |
if (result.e != null) {
|
|
|
305 |
throw result.e;
|
|
|
306 |
}
|
|
|
307 |
return;
|
|
|
308 |
}
|
|
|
309 |
|
|
|
310 |
public void deActivateEntityMonitoring(EntityType entityType) throws AlertServiceException, org.apache.thrift.TException
|
|
|
311 |
{
|
|
|
312 |
send_deActivateEntityMonitoring(entityType);
|
|
|
313 |
recv_deActivateEntityMonitoring();
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
public void send_deActivateEntityMonitoring(EntityType entityType) throws org.apache.thrift.TException
|
|
|
317 |
{
|
|
|
318 |
deActivateEntityMonitoring_args args = new deActivateEntityMonitoring_args();
|
|
|
319 |
args.setEntityType(entityType);
|
|
|
320 |
sendBase("deActivateEntityMonitoring", args);
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public void recv_deActivateEntityMonitoring() throws AlertServiceException, org.apache.thrift.TException
|
|
|
324 |
{
|
|
|
325 |
deActivateEntityMonitoring_result result = new deActivateEntityMonitoring_result();
|
|
|
326 |
receiveBase(result, "deActivateEntityMonitoring");
|
|
|
327 |
if (result.e != null) {
|
|
|
328 |
throw result.e;
|
|
|
329 |
}
|
|
|
330 |
return;
|
|
|
331 |
}
|
|
|
332 |
|
|
|
333 |
public void registerEventType(AlertMapper alertMap) throws AlertServiceException, org.apache.thrift.TException
|
|
|
334 |
{
|
|
|
335 |
send_registerEventType(alertMap);
|
|
|
336 |
recv_registerEventType();
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public void send_registerEventType(AlertMapper alertMap) throws org.apache.thrift.TException
|
|
|
340 |
{
|
|
|
341 |
registerEventType_args args = new registerEventType_args();
|
|
|
342 |
args.setAlertMap(alertMap);
|
|
|
343 |
sendBase("registerEventType", args);
|
|
|
344 |
}
|
|
|
345 |
|
|
|
346 |
public void recv_registerEventType() throws AlertServiceException, org.apache.thrift.TException
|
|
|
347 |
{
|
|
|
348 |
registerEventType_result result = new registerEventType_result();
|
|
|
349 |
receiveBase(result, "registerEventType");
|
|
|
350 |
if (result.e != null) {
|
|
|
351 |
throw result.e;
|
|
|
352 |
}
|
|
|
353 |
return;
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
}
|
|
|
357 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
358 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
359 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
360 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
361 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
362 |
this.clientManager = clientManager;
|
|
|
363 |
this.protocolFactory = protocolFactory;
|
|
|
364 |
}
|
|
|
365 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
366 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
367 |
}
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
371 |
super(protocolFactory, clientManager, transport);
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
public void scheduleAlert(MonitoredEntity entity, org.apache.thrift.async.AsyncMethodCallback<scheduleAlert_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
375 |
checkReady();
|
|
|
376 |
scheduleAlert_call method_call = new scheduleAlert_call(entity, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
377 |
this.___currentMethod = method_call;
|
|
|
378 |
___manager.call(method_call);
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
public static class scheduleAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
382 |
private MonitoredEntity entity;
|
|
|
383 |
public scheduleAlert_call(MonitoredEntity entity, org.apache.thrift.async.AsyncMethodCallback<scheduleAlert_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
384 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
385 |
this.entity = entity;
|
|
|
386 |
}
|
|
|
387 |
|
|
|
388 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
389 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scheduleAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
390 |
scheduleAlert_args args = new scheduleAlert_args();
|
|
|
391 |
args.setEntity(entity);
|
|
|
392 |
args.write(prot);
|
|
|
393 |
prot.writeMessageEnd();
|
|
|
394 |
}
|
|
|
395 |
|
|
|
396 |
public void getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
397 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
398 |
throw new IllegalStateException("Method call not finished!");
|
|
|
399 |
}
|
|
|
400 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
401 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
402 |
(new Client(prot)).recv_scheduleAlert();
|
|
|
403 |
}
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void updateMonitoredObject(MonitoredEntity entity, org.apache.thrift.async.AsyncMethodCallback<updateMonitoredObject_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
407 |
checkReady();
|
|
|
408 |
updateMonitoredObject_call method_call = new updateMonitoredObject_call(entity, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
409 |
this.___currentMethod = method_call;
|
|
|
410 |
___manager.call(method_call);
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public static class updateMonitoredObject_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
414 |
private MonitoredEntity entity;
|
|
|
415 |
public updateMonitoredObject_call(MonitoredEntity entity, org.apache.thrift.async.AsyncMethodCallback<updateMonitoredObject_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
416 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
417 |
this.entity = entity;
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
421 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMonitoredObject", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
422 |
updateMonitoredObject_args args = new updateMonitoredObject_args();
|
|
|
423 |
args.setEntity(entity);
|
|
|
424 |
args.write(prot);
|
|
|
425 |
prot.writeMessageEnd();
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
429 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
430 |
throw new IllegalStateException("Method call not finished!");
|
|
|
431 |
}
|
|
|
432 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
433 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
434 |
(new Client(prot)).recv_updateMonitoredObject();
|
|
|
435 |
}
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
public void endMonitoringEntity(EntityType entityType, String entityIdentifier, org.apache.thrift.async.AsyncMethodCallback<endMonitoringEntity_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
439 |
checkReady();
|
|
|
440 |
endMonitoringEntity_call method_call = new endMonitoringEntity_call(entityType, entityIdentifier, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
441 |
this.___currentMethod = method_call;
|
|
|
442 |
___manager.call(method_call);
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
public static class endMonitoringEntity_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
446 |
private EntityType entityType;
|
|
|
447 |
private String entityIdentifier;
|
|
|
448 |
public endMonitoringEntity_call(EntityType entityType, String entityIdentifier, org.apache.thrift.async.AsyncMethodCallback<endMonitoringEntity_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
449 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
450 |
this.entityType = entityType;
|
|
|
451 |
this.entityIdentifier = entityIdentifier;
|
|
|
452 |
}
|
|
|
453 |
|
|
|
454 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
455 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("endMonitoringEntity", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
456 |
endMonitoringEntity_args args = new endMonitoringEntity_args();
|
|
|
457 |
args.setEntityType(entityType);
|
|
|
458 |
args.setEntityIdentifier(entityIdentifier);
|
|
|
459 |
args.write(prot);
|
|
|
460 |
prot.writeMessageEnd();
|
|
|
461 |
}
|
|
|
462 |
|
|
|
463 |
public void getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
464 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
465 |
throw new IllegalStateException("Method call not finished!");
|
|
|
466 |
}
|
|
|
467 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
468 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
469 |
(new Client(prot)).recv_endMonitoringEntity();
|
|
|
470 |
}
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public void getEntities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getEntities_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
474 |
checkReady();
|
|
|
475 |
getEntities_call method_call = new getEntities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
476 |
this.___currentMethod = method_call;
|
|
|
477 |
___manager.call(method_call);
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
public static class getEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
481 |
private SearchFilter searchFilter;
|
|
|
482 |
public getEntities_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getEntities_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
483 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
484 |
this.searchFilter = searchFilter;
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
488 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
489 |
getEntities_args args = new getEntities_args();
|
|
|
490 |
args.setSearchFilter(searchFilter);
|
|
|
491 |
args.write(prot);
|
|
|
492 |
prot.writeMessageEnd();
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public List<MonitoredEntity> getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
496 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
497 |
throw new IllegalStateException("Method call not finished!");
|
|
|
498 |
}
|
|
|
499 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
500 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
501 |
return (new Client(prot)).recv_getEntities();
|
|
|
502 |
}
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
public void getAlertedEntities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAlertedEntities_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
506 |
checkReady();
|
|
|
507 |
getAlertedEntities_call method_call = new getAlertedEntities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
508 |
this.___currentMethod = method_call;
|
|
|
509 |
___manager.call(method_call);
|
|
|
510 |
}
|
|
|
511 |
|
|
|
512 |
public static class getAlertedEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
513 |
private SearchFilter searchFilter;
|
|
|
514 |
public getAlertedEntities_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAlertedEntities_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
515 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
516 |
this.searchFilter = searchFilter;
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
520 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlertedEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
521 |
getAlertedEntities_args args = new getAlertedEntities_args();
|
|
|
522 |
args.setSearchFilter(searchFilter);
|
|
|
523 |
args.write(prot);
|
|
|
524 |
prot.writeMessageEnd();
|
|
|
525 |
}
|
|
|
526 |
|
|
|
527 |
public List<AlertedEntity> getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
528 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
529 |
throw new IllegalStateException("Method call not finished!");
|
|
|
530 |
}
|
|
|
531 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
532 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
533 |
return (new Client(prot)).recv_getAlertedEntities();
|
|
|
534 |
}
|
|
|
535 |
}
|
|
|
536 |
|
|
|
537 |
public void getAlertMapper(EntityType entityType, int eventType, org.apache.thrift.async.AsyncMethodCallback<getAlertMapper_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
538 |
checkReady();
|
|
|
539 |
getAlertMapper_call method_call = new getAlertMapper_call(entityType, eventType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
540 |
this.___currentMethod = method_call;
|
|
|
541 |
___manager.call(method_call);
|
|
|
542 |
}
|
|
|
543 |
|
|
|
544 |
public static class getAlertMapper_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
545 |
private EntityType entityType;
|
|
|
546 |
private int eventType;
|
|
|
547 |
public getAlertMapper_call(EntityType entityType, int eventType, org.apache.thrift.async.AsyncMethodCallback<getAlertMapper_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
548 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
549 |
this.entityType = entityType;
|
|
|
550 |
this.eventType = eventType;
|
|
|
551 |
}
|
|
|
552 |
|
|
|
553 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
554 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlertMapper", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
555 |
getAlertMapper_args args = new getAlertMapper_args();
|
|
|
556 |
args.setEntityType(entityType);
|
|
|
557 |
args.setEventType(eventType);
|
|
|
558 |
args.write(prot);
|
|
|
559 |
prot.writeMessageEnd();
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public AlertMapper getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
563 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
564 |
throw new IllegalStateException("Method call not finished!");
|
|
|
565 |
}
|
|
|
566 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
567 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
568 |
return (new Client(prot)).recv_getAlertMapper();
|
|
|
569 |
}
|
|
|
570 |
}
|
|
|
571 |
|
|
|
572 |
public void activateEntityMonitoring(EntityType entityType, String userIds, org.apache.thrift.async.AsyncMethodCallback<activateEntityMonitoring_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
573 |
checkReady();
|
|
|
574 |
activateEntityMonitoring_call method_call = new activateEntityMonitoring_call(entityType, userIds, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
575 |
this.___currentMethod = method_call;
|
|
|
576 |
___manager.call(method_call);
|
|
|
577 |
}
|
|
|
578 |
|
|
|
579 |
public static class activateEntityMonitoring_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
580 |
private EntityType entityType;
|
|
|
581 |
private String userIds;
|
|
|
582 |
public activateEntityMonitoring_call(EntityType entityType, String userIds, org.apache.thrift.async.AsyncMethodCallback<activateEntityMonitoring_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
583 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
584 |
this.entityType = entityType;
|
|
|
585 |
this.userIds = userIds;
|
|
|
586 |
}
|
|
|
587 |
|
|
|
588 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
589 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("activateEntityMonitoring", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
590 |
activateEntityMonitoring_args args = new activateEntityMonitoring_args();
|
|
|
591 |
args.setEntityType(entityType);
|
|
|
592 |
args.setUserIds(userIds);
|
|
|
593 |
args.write(prot);
|
|
|
594 |
prot.writeMessageEnd();
|
|
|
595 |
}
|
|
|
596 |
|
|
|
597 |
public void getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
598 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
599 |
throw new IllegalStateException("Method call not finished!");
|
|
|
600 |
}
|
|
|
601 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
602 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
603 |
(new Client(prot)).recv_activateEntityMonitoring();
|
|
|
604 |
}
|
|
|
605 |
}
|
|
|
606 |
|
|
|
607 |
public void deActivateEntityMonitoring(EntityType entityType, org.apache.thrift.async.AsyncMethodCallback<deActivateEntityMonitoring_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
608 |
checkReady();
|
|
|
609 |
deActivateEntityMonitoring_call method_call = new deActivateEntityMonitoring_call(entityType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
610 |
this.___currentMethod = method_call;
|
|
|
611 |
___manager.call(method_call);
|
|
|
612 |
}
|
|
|
613 |
|
|
|
614 |
public static class deActivateEntityMonitoring_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
615 |
private EntityType entityType;
|
|
|
616 |
public deActivateEntityMonitoring_call(EntityType entityType, org.apache.thrift.async.AsyncMethodCallback<deActivateEntityMonitoring_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
617 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
618 |
this.entityType = entityType;
|
|
|
619 |
}
|
|
|
620 |
|
|
|
621 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
622 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deActivateEntityMonitoring", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
623 |
deActivateEntityMonitoring_args args = new deActivateEntityMonitoring_args();
|
|
|
624 |
args.setEntityType(entityType);
|
|
|
625 |
args.write(prot);
|
|
|
626 |
prot.writeMessageEnd();
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
public void getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
630 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
631 |
throw new IllegalStateException("Method call not finished!");
|
|
|
632 |
}
|
|
|
633 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
634 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
635 |
(new Client(prot)).recv_deActivateEntityMonitoring();
|
|
|
636 |
}
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
public void registerEventType(AlertMapper alertMap, org.apache.thrift.async.AsyncMethodCallback<registerEventType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
640 |
checkReady();
|
|
|
641 |
registerEventType_call method_call = new registerEventType_call(alertMap, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
642 |
this.___currentMethod = method_call;
|
|
|
643 |
___manager.call(method_call);
|
|
|
644 |
}
|
|
|
645 |
|
|
|
646 |
public static class registerEventType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
647 |
private AlertMapper alertMap;
|
|
|
648 |
public registerEventType_call(AlertMapper alertMap, org.apache.thrift.async.AsyncMethodCallback<registerEventType_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
649 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
650 |
this.alertMap = alertMap;
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
654 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerEventType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
655 |
registerEventType_args args = new registerEventType_args();
|
|
|
656 |
args.setAlertMap(alertMap);
|
|
|
657 |
args.write(prot);
|
|
|
658 |
prot.writeMessageEnd();
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public void getResult() throws AlertServiceException, org.apache.thrift.TException {
|
|
|
662 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
663 |
throw new IllegalStateException("Method call not finished!");
|
|
|
664 |
}
|
|
|
665 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
666 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
667 |
(new Client(prot)).recv_registerEventType();
|
|
|
668 |
}
|
|
|
669 |
}
|
|
|
670 |
|
|
|
671 |
}
|
|
|
672 |
|
|
|
673 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
674 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
675 |
public Processor(I iface) {
|
|
|
676 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
677 |
}
|
|
|
678 |
|
|
|
679 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
680 |
super(iface, getProcessMap(processMap));
|
|
|
681 |
}
|
|
|
682 |
|
|
|
683 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
684 |
processMap.put("scheduleAlert", new scheduleAlert());
|
|
|
685 |
processMap.put("updateMonitoredObject", new updateMonitoredObject());
|
|
|
686 |
processMap.put("endMonitoringEntity", new endMonitoringEntity());
|
|
|
687 |
processMap.put("getEntities", new getEntities());
|
|
|
688 |
processMap.put("getAlertedEntities", new getAlertedEntities());
|
|
|
689 |
processMap.put("getAlertMapper", new getAlertMapper());
|
|
|
690 |
processMap.put("activateEntityMonitoring", new activateEntityMonitoring());
|
|
|
691 |
processMap.put("deActivateEntityMonitoring", new deActivateEntityMonitoring());
|
|
|
692 |
processMap.put("registerEventType", new registerEventType());
|
|
|
693 |
return processMap;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
private static class scheduleAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scheduleAlert_args> {
|
|
|
697 |
public scheduleAlert() {
|
|
|
698 |
super("scheduleAlert");
|
|
|
699 |
}
|
|
|
700 |
|
|
|
701 |
protected scheduleAlert_args getEmptyArgsInstance() {
|
|
|
702 |
return new scheduleAlert_args();
|
|
|
703 |
}
|
|
|
704 |
|
|
|
705 |
protected scheduleAlert_result getResult(I iface, scheduleAlert_args args) throws org.apache.thrift.TException {
|
|
|
706 |
scheduleAlert_result result = new scheduleAlert_result();
|
|
|
707 |
try {
|
|
|
708 |
iface.scheduleAlert(args.entity);
|
|
|
709 |
} catch (AlertServiceException e) {
|
|
|
710 |
result.e = e;
|
|
|
711 |
}
|
|
|
712 |
return result;
|
|
|
713 |
}
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
private static class updateMonitoredObject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMonitoredObject_args> {
|
|
|
717 |
public updateMonitoredObject() {
|
|
|
718 |
super("updateMonitoredObject");
|
|
|
719 |
}
|
|
|
720 |
|
|
|
721 |
protected updateMonitoredObject_args getEmptyArgsInstance() {
|
|
|
722 |
return new updateMonitoredObject_args();
|
|
|
723 |
}
|
|
|
724 |
|
|
|
725 |
protected updateMonitoredObject_result getResult(I iface, updateMonitoredObject_args args) throws org.apache.thrift.TException {
|
|
|
726 |
updateMonitoredObject_result result = new updateMonitoredObject_result();
|
|
|
727 |
try {
|
|
|
728 |
iface.updateMonitoredObject(args.entity);
|
|
|
729 |
} catch (AlertServiceException e) {
|
|
|
730 |
result.e = e;
|
|
|
731 |
}
|
|
|
732 |
return result;
|
|
|
733 |
}
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
private static class endMonitoringEntity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, endMonitoringEntity_args> {
|
|
|
737 |
public endMonitoringEntity() {
|
|
|
738 |
super("endMonitoringEntity");
|
|
|
739 |
}
|
|
|
740 |
|
|
|
741 |
protected endMonitoringEntity_args getEmptyArgsInstance() {
|
|
|
742 |
return new endMonitoringEntity_args();
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
protected endMonitoringEntity_result getResult(I iface, endMonitoringEntity_args args) throws org.apache.thrift.TException {
|
|
|
746 |
endMonitoringEntity_result result = new endMonitoringEntity_result();
|
|
|
747 |
try {
|
|
|
748 |
iface.endMonitoringEntity(args.entityType, args.entityIdentifier);
|
|
|
749 |
} catch (AlertServiceException e) {
|
|
|
750 |
result.e = e;
|
|
|
751 |
}
|
|
|
752 |
return result;
|
|
|
753 |
}
|
|
|
754 |
}
|
|
|
755 |
|
|
|
756 |
private static class getEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntities_args> {
|
|
|
757 |
public getEntities() {
|
|
|
758 |
super("getEntities");
|
|
|
759 |
}
|
|
|
760 |
|
|
|
761 |
protected getEntities_args getEmptyArgsInstance() {
|
|
|
762 |
return new getEntities_args();
|
|
|
763 |
}
|
|
|
764 |
|
|
|
765 |
protected getEntities_result getResult(I iface, getEntities_args args) throws org.apache.thrift.TException {
|
|
|
766 |
getEntities_result result = new getEntities_result();
|
|
|
767 |
try {
|
|
|
768 |
result.success = iface.getEntities(args.searchFilter);
|
|
|
769 |
} catch (AlertServiceException e) {
|
|
|
770 |
result.e = e;
|
|
|
771 |
}
|
|
|
772 |
return result;
|
|
|
773 |
}
|
|
|
774 |
}
|
|
|
775 |
|
|
|
776 |
private static class getAlertedEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAlertedEntities_args> {
|
|
|
777 |
public getAlertedEntities() {
|
|
|
778 |
super("getAlertedEntities");
|
|
|
779 |
}
|
|
|
780 |
|
|
|
781 |
protected getAlertedEntities_args getEmptyArgsInstance() {
|
|
|
782 |
return new getAlertedEntities_args();
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
protected getAlertedEntities_result getResult(I iface, getAlertedEntities_args args) throws org.apache.thrift.TException {
|
|
|
786 |
getAlertedEntities_result result = new getAlertedEntities_result();
|
|
|
787 |
try {
|
|
|
788 |
result.success = iface.getAlertedEntities(args.searchFilter);
|
|
|
789 |
} catch (AlertServiceException e) {
|
|
|
790 |
result.e = e;
|
|
|
791 |
}
|
|
|
792 |
return result;
|
|
|
793 |
}
|
|
|
794 |
}
|
|
|
795 |
|
|
|
796 |
private static class getAlertMapper<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAlertMapper_args> {
|
|
|
797 |
public getAlertMapper() {
|
|
|
798 |
super("getAlertMapper");
|
|
|
799 |
}
|
|
|
800 |
|
|
|
801 |
protected getAlertMapper_args getEmptyArgsInstance() {
|
|
|
802 |
return new getAlertMapper_args();
|
|
|
803 |
}
|
|
|
804 |
|
|
|
805 |
protected getAlertMapper_result getResult(I iface, getAlertMapper_args args) throws org.apache.thrift.TException {
|
|
|
806 |
getAlertMapper_result result = new getAlertMapper_result();
|
|
|
807 |
try {
|
|
|
808 |
result.success = iface.getAlertMapper(args.entityType, args.eventType);
|
|
|
809 |
} catch (AlertServiceException e) {
|
|
|
810 |
result.e = e;
|
|
|
811 |
}
|
|
|
812 |
return result;
|
|
|
813 |
}
|
|
|
814 |
}
|
|
|
815 |
|
|
|
816 |
private static class activateEntityMonitoring<I extends Iface> extends org.apache.thrift.ProcessFunction<I, activateEntityMonitoring_args> {
|
|
|
817 |
public activateEntityMonitoring() {
|
|
|
818 |
super("activateEntityMonitoring");
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
protected activateEntityMonitoring_args getEmptyArgsInstance() {
|
|
|
822 |
return new activateEntityMonitoring_args();
|
|
|
823 |
}
|
|
|
824 |
|
|
|
825 |
protected activateEntityMonitoring_result getResult(I iface, activateEntityMonitoring_args args) throws org.apache.thrift.TException {
|
|
|
826 |
activateEntityMonitoring_result result = new activateEntityMonitoring_result();
|
|
|
827 |
try {
|
|
|
828 |
iface.activateEntityMonitoring(args.entityType, args.userIds);
|
|
|
829 |
} catch (AlertServiceException e) {
|
|
|
830 |
result.e = e;
|
|
|
831 |
}
|
|
|
832 |
return result;
|
|
|
833 |
}
|
|
|
834 |
}
|
|
|
835 |
|
|
|
836 |
private static class deActivateEntityMonitoring<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deActivateEntityMonitoring_args> {
|
|
|
837 |
public deActivateEntityMonitoring() {
|
|
|
838 |
super("deActivateEntityMonitoring");
|
|
|
839 |
}
|
|
|
840 |
|
|
|
841 |
protected deActivateEntityMonitoring_args getEmptyArgsInstance() {
|
|
|
842 |
return new deActivateEntityMonitoring_args();
|
|
|
843 |
}
|
|
|
844 |
|
|
|
845 |
protected deActivateEntityMonitoring_result getResult(I iface, deActivateEntityMonitoring_args args) throws org.apache.thrift.TException {
|
|
|
846 |
deActivateEntityMonitoring_result result = new deActivateEntityMonitoring_result();
|
|
|
847 |
try {
|
|
|
848 |
iface.deActivateEntityMonitoring(args.entityType);
|
|
|
849 |
} catch (AlertServiceException e) {
|
|
|
850 |
result.e = e;
|
|
|
851 |
}
|
|
|
852 |
return result;
|
|
|
853 |
}
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
private static class registerEventType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, registerEventType_args> {
|
|
|
857 |
public registerEventType() {
|
|
|
858 |
super("registerEventType");
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
protected registerEventType_args getEmptyArgsInstance() {
|
|
|
862 |
return new registerEventType_args();
|
|
|
863 |
}
|
|
|
864 |
|
|
|
865 |
protected registerEventType_result getResult(I iface, registerEventType_args args) throws org.apache.thrift.TException {
|
|
|
866 |
registerEventType_result result = new registerEventType_result();
|
|
|
867 |
try {
|
|
|
868 |
iface.registerEventType(args.alertMap);
|
|
|
869 |
} catch (AlertServiceException e) {
|
|
|
870 |
result.e = e;
|
|
|
871 |
}
|
|
|
872 |
return result;
|
|
|
873 |
}
|
|
|
874 |
}
|
|
|
875 |
|
|
|
876 |
}
|
|
|
877 |
|
|
|
878 |
public static class scheduleAlert_args implements org.apache.thrift.TBase<scheduleAlert_args, scheduleAlert_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
879 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scheduleAlert_args");
|
|
|
880 |
|
|
|
881 |
private static final org.apache.thrift.protocol.TField ENTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("entity", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
882 |
|
|
|
883 |
private MonitoredEntity entity; // required
|
|
|
884 |
|
|
|
885 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
886 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
887 |
ENTITY((short)1, "entity");
|
|
|
888 |
|
|
|
889 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
890 |
|
|
|
891 |
static {
|
|
|
892 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
893 |
byName.put(field.getFieldName(), field);
|
|
|
894 |
}
|
|
|
895 |
}
|
|
|
896 |
|
|
|
897 |
/**
|
|
|
898 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
899 |
*/
|
|
|
900 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
901 |
switch(fieldId) {
|
|
|
902 |
case 1: // ENTITY
|
|
|
903 |
return ENTITY;
|
|
|
904 |
default:
|
|
|
905 |
return null;
|
|
|
906 |
}
|
|
|
907 |
}
|
|
|
908 |
|
|
|
909 |
/**
|
|
|
910 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
911 |
* if it is not found.
|
|
|
912 |
*/
|
|
|
913 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
914 |
_Fields fields = findByThriftId(fieldId);
|
|
|
915 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
916 |
return fields;
|
|
|
917 |
}
|
|
|
918 |
|
|
|
919 |
/**
|
|
|
920 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
921 |
*/
|
|
|
922 |
public static _Fields findByName(String name) {
|
|
|
923 |
return byName.get(name);
|
|
|
924 |
}
|
|
|
925 |
|
|
|
926 |
private final short _thriftId;
|
|
|
927 |
private final String _fieldName;
|
|
|
928 |
|
|
|
929 |
_Fields(short thriftId, String fieldName) {
|
|
|
930 |
_thriftId = thriftId;
|
|
|
931 |
_fieldName = fieldName;
|
|
|
932 |
}
|
|
|
933 |
|
|
|
934 |
public short getThriftFieldId() {
|
|
|
935 |
return _thriftId;
|
|
|
936 |
}
|
|
|
937 |
|
|
|
938 |
public String getFieldName() {
|
|
|
939 |
return _fieldName;
|
|
|
940 |
}
|
|
|
941 |
}
|
|
|
942 |
|
|
|
943 |
// isset id assignments
|
|
|
944 |
|
|
|
945 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
946 |
static {
|
|
|
947 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
948 |
tmpMap.put(_Fields.ENTITY, new org.apache.thrift.meta_data.FieldMetaData("entity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
949 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MonitoredEntity.class)));
|
|
|
950 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
951 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scheduleAlert_args.class, metaDataMap);
|
|
|
952 |
}
|
|
|
953 |
|
|
|
954 |
public scheduleAlert_args() {
|
|
|
955 |
}
|
|
|
956 |
|
|
|
957 |
public scheduleAlert_args(
|
|
|
958 |
MonitoredEntity entity)
|
|
|
959 |
{
|
|
|
960 |
this();
|
|
|
961 |
this.entity = entity;
|
|
|
962 |
}
|
|
|
963 |
|
|
|
964 |
/**
|
|
|
965 |
* Performs a deep copy on <i>other</i>.
|
|
|
966 |
*/
|
|
|
967 |
public scheduleAlert_args(scheduleAlert_args other) {
|
|
|
968 |
if (other.isSetEntity()) {
|
|
|
969 |
this.entity = new MonitoredEntity(other.entity);
|
|
|
970 |
}
|
|
|
971 |
}
|
|
|
972 |
|
|
|
973 |
public scheduleAlert_args deepCopy() {
|
|
|
974 |
return new scheduleAlert_args(this);
|
|
|
975 |
}
|
|
|
976 |
|
|
|
977 |
@Override
|
|
|
978 |
public void clear() {
|
|
|
979 |
this.entity = null;
|
|
|
980 |
}
|
|
|
981 |
|
|
|
982 |
public MonitoredEntity getEntity() {
|
|
|
983 |
return this.entity;
|
|
|
984 |
}
|
|
|
985 |
|
|
|
986 |
public void setEntity(MonitoredEntity entity) {
|
|
|
987 |
this.entity = entity;
|
|
|
988 |
}
|
|
|
989 |
|
|
|
990 |
public void unsetEntity() {
|
|
|
991 |
this.entity = null;
|
|
|
992 |
}
|
|
|
993 |
|
|
|
994 |
/** Returns true if field entity is set (has been assigned a value) and false otherwise */
|
|
|
995 |
public boolean isSetEntity() {
|
|
|
996 |
return this.entity != null;
|
|
|
997 |
}
|
|
|
998 |
|
|
|
999 |
public void setEntityIsSet(boolean value) {
|
|
|
1000 |
if (!value) {
|
|
|
1001 |
this.entity = null;
|
|
|
1002 |
}
|
|
|
1003 |
}
|
|
|
1004 |
|
|
|
1005 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1006 |
switch (field) {
|
|
|
1007 |
case ENTITY:
|
|
|
1008 |
if (value == null) {
|
|
|
1009 |
unsetEntity();
|
|
|
1010 |
} else {
|
|
|
1011 |
setEntity((MonitoredEntity)value);
|
|
|
1012 |
}
|
|
|
1013 |
break;
|
|
|
1014 |
|
|
|
1015 |
}
|
|
|
1016 |
}
|
|
|
1017 |
|
|
|
1018 |
public Object getFieldValue(_Fields field) {
|
|
|
1019 |
switch (field) {
|
|
|
1020 |
case ENTITY:
|
|
|
1021 |
return getEntity();
|
|
|
1022 |
|
|
|
1023 |
}
|
|
|
1024 |
throw new IllegalStateException();
|
|
|
1025 |
}
|
|
|
1026 |
|
|
|
1027 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1028 |
public boolean isSet(_Fields field) {
|
|
|
1029 |
if (field == null) {
|
|
|
1030 |
throw new IllegalArgumentException();
|
|
|
1031 |
}
|
|
|
1032 |
|
|
|
1033 |
switch (field) {
|
|
|
1034 |
case ENTITY:
|
|
|
1035 |
return isSetEntity();
|
|
|
1036 |
}
|
|
|
1037 |
throw new IllegalStateException();
|
|
|
1038 |
}
|
|
|
1039 |
|
|
|
1040 |
@Override
|
|
|
1041 |
public boolean equals(Object that) {
|
|
|
1042 |
if (that == null)
|
|
|
1043 |
return false;
|
|
|
1044 |
if (that instanceof scheduleAlert_args)
|
|
|
1045 |
return this.equals((scheduleAlert_args)that);
|
|
|
1046 |
return false;
|
|
|
1047 |
}
|
|
|
1048 |
|
|
|
1049 |
public boolean equals(scheduleAlert_args that) {
|
|
|
1050 |
if (that == null)
|
|
|
1051 |
return false;
|
|
|
1052 |
|
|
|
1053 |
boolean this_present_entity = true && this.isSetEntity();
|
|
|
1054 |
boolean that_present_entity = true && that.isSetEntity();
|
|
|
1055 |
if (this_present_entity || that_present_entity) {
|
|
|
1056 |
if (!(this_present_entity && that_present_entity))
|
|
|
1057 |
return false;
|
|
|
1058 |
if (!this.entity.equals(that.entity))
|
|
|
1059 |
return false;
|
|
|
1060 |
}
|
|
|
1061 |
|
|
|
1062 |
return true;
|
|
|
1063 |
}
|
|
|
1064 |
|
|
|
1065 |
@Override
|
|
|
1066 |
public int hashCode() {
|
|
|
1067 |
return 0;
|
|
|
1068 |
}
|
|
|
1069 |
|
|
|
1070 |
public int compareTo(scheduleAlert_args other) {
|
|
|
1071 |
if (!getClass().equals(other.getClass())) {
|
|
|
1072 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
int lastComparison = 0;
|
|
|
1076 |
scheduleAlert_args typedOther = (scheduleAlert_args)other;
|
|
|
1077 |
|
|
|
1078 |
lastComparison = Boolean.valueOf(isSetEntity()).compareTo(typedOther.isSetEntity());
|
|
|
1079 |
if (lastComparison != 0) {
|
|
|
1080 |
return lastComparison;
|
|
|
1081 |
}
|
|
|
1082 |
if (isSetEntity()) {
|
|
|
1083 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity, typedOther.entity);
|
|
|
1084 |
if (lastComparison != 0) {
|
|
|
1085 |
return lastComparison;
|
|
|
1086 |
}
|
|
|
1087 |
}
|
|
|
1088 |
return 0;
|
|
|
1089 |
}
|
|
|
1090 |
|
|
|
1091 |
public _Fields fieldForId(int fieldId) {
|
|
|
1092 |
return _Fields.findByThriftId(fieldId);
|
|
|
1093 |
}
|
|
|
1094 |
|
|
|
1095 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1096 |
org.apache.thrift.protocol.TField field;
|
|
|
1097 |
iprot.readStructBegin();
|
|
|
1098 |
while (true)
|
|
|
1099 |
{
|
|
|
1100 |
field = iprot.readFieldBegin();
|
|
|
1101 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1102 |
break;
|
|
|
1103 |
}
|
|
|
1104 |
switch (field.id) {
|
|
|
1105 |
case 1: // ENTITY
|
|
|
1106 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1107 |
this.entity = new MonitoredEntity();
|
|
|
1108 |
this.entity.read(iprot);
|
|
|
1109 |
} else {
|
|
|
1110 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1111 |
}
|
|
|
1112 |
break;
|
|
|
1113 |
default:
|
|
|
1114 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1115 |
}
|
|
|
1116 |
iprot.readFieldEnd();
|
|
|
1117 |
}
|
|
|
1118 |
iprot.readStructEnd();
|
|
|
1119 |
validate();
|
|
|
1120 |
}
|
|
|
1121 |
|
|
|
1122 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1123 |
validate();
|
|
|
1124 |
|
|
|
1125 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1126 |
if (this.entity != null) {
|
|
|
1127 |
oprot.writeFieldBegin(ENTITY_FIELD_DESC);
|
|
|
1128 |
this.entity.write(oprot);
|
|
|
1129 |
oprot.writeFieldEnd();
|
|
|
1130 |
}
|
|
|
1131 |
oprot.writeFieldStop();
|
|
|
1132 |
oprot.writeStructEnd();
|
|
|
1133 |
}
|
|
|
1134 |
|
|
|
1135 |
@Override
|
|
|
1136 |
public String toString() {
|
|
|
1137 |
StringBuilder sb = new StringBuilder("scheduleAlert_args(");
|
|
|
1138 |
boolean first = true;
|
|
|
1139 |
|
|
|
1140 |
sb.append("entity:");
|
|
|
1141 |
if (this.entity == null) {
|
|
|
1142 |
sb.append("null");
|
|
|
1143 |
} else {
|
|
|
1144 |
sb.append(this.entity);
|
|
|
1145 |
}
|
|
|
1146 |
first = false;
|
|
|
1147 |
sb.append(")");
|
|
|
1148 |
return sb.toString();
|
|
|
1149 |
}
|
|
|
1150 |
|
|
|
1151 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1152 |
// check for required fields
|
|
|
1153 |
}
|
|
|
1154 |
|
|
|
1155 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1156 |
try {
|
|
|
1157 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1158 |
} catch (org.apache.thrift.TException te) {
|
|
|
1159 |
throw new java.io.IOException(te);
|
|
|
1160 |
}
|
|
|
1161 |
}
|
|
|
1162 |
|
|
|
1163 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1164 |
try {
|
|
|
1165 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1166 |
} catch (org.apache.thrift.TException te) {
|
|
|
1167 |
throw new java.io.IOException(te);
|
|
|
1168 |
}
|
|
|
1169 |
}
|
|
|
1170 |
|
|
|
1171 |
}
|
|
|
1172 |
|
|
|
1173 |
public static class scheduleAlert_result implements org.apache.thrift.TBase<scheduleAlert_result, scheduleAlert_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1174 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scheduleAlert_result");
|
|
|
1175 |
|
|
|
1176 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
1177 |
|
|
|
1178 |
private AlertServiceException e; // required
|
|
|
1179 |
|
|
|
1180 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1181 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
1182 |
E((short)1, "e");
|
|
|
1183 |
|
|
|
1184 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1185 |
|
|
|
1186 |
static {
|
|
|
1187 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1188 |
byName.put(field.getFieldName(), field);
|
|
|
1189 |
}
|
|
|
1190 |
}
|
|
|
1191 |
|
|
|
1192 |
/**
|
|
|
1193 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1194 |
*/
|
|
|
1195 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1196 |
switch(fieldId) {
|
|
|
1197 |
case 1: // E
|
|
|
1198 |
return E;
|
|
|
1199 |
default:
|
|
|
1200 |
return null;
|
|
|
1201 |
}
|
|
|
1202 |
}
|
|
|
1203 |
|
|
|
1204 |
/**
|
|
|
1205 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1206 |
* if it is not found.
|
|
|
1207 |
*/
|
|
|
1208 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1209 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1210 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1211 |
return fields;
|
|
|
1212 |
}
|
|
|
1213 |
|
|
|
1214 |
/**
|
|
|
1215 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1216 |
*/
|
|
|
1217 |
public static _Fields findByName(String name) {
|
|
|
1218 |
return byName.get(name);
|
|
|
1219 |
}
|
|
|
1220 |
|
|
|
1221 |
private final short _thriftId;
|
|
|
1222 |
private final String _fieldName;
|
|
|
1223 |
|
|
|
1224 |
_Fields(short thriftId, String fieldName) {
|
|
|
1225 |
_thriftId = thriftId;
|
|
|
1226 |
_fieldName = fieldName;
|
|
|
1227 |
}
|
|
|
1228 |
|
|
|
1229 |
public short getThriftFieldId() {
|
|
|
1230 |
return _thriftId;
|
|
|
1231 |
}
|
|
|
1232 |
|
|
|
1233 |
public String getFieldName() {
|
|
|
1234 |
return _fieldName;
|
|
|
1235 |
}
|
|
|
1236 |
}
|
|
|
1237 |
|
|
|
1238 |
// isset id assignments
|
|
|
1239 |
|
|
|
1240 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1241 |
static {
|
|
|
1242 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1243 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1244 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1245 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1246 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scheduleAlert_result.class, metaDataMap);
|
|
|
1247 |
}
|
|
|
1248 |
|
|
|
1249 |
public scheduleAlert_result() {
|
|
|
1250 |
}
|
|
|
1251 |
|
|
|
1252 |
public scheduleAlert_result(
|
|
|
1253 |
AlertServiceException e)
|
|
|
1254 |
{
|
|
|
1255 |
this();
|
|
|
1256 |
this.e = e;
|
|
|
1257 |
}
|
|
|
1258 |
|
|
|
1259 |
/**
|
|
|
1260 |
* Performs a deep copy on <i>other</i>.
|
|
|
1261 |
*/
|
|
|
1262 |
public scheduleAlert_result(scheduleAlert_result other) {
|
|
|
1263 |
if (other.isSetE()) {
|
|
|
1264 |
this.e = new AlertServiceException(other.e);
|
|
|
1265 |
}
|
|
|
1266 |
}
|
|
|
1267 |
|
|
|
1268 |
public scheduleAlert_result deepCopy() {
|
|
|
1269 |
return new scheduleAlert_result(this);
|
|
|
1270 |
}
|
|
|
1271 |
|
|
|
1272 |
@Override
|
|
|
1273 |
public void clear() {
|
|
|
1274 |
this.e = null;
|
|
|
1275 |
}
|
|
|
1276 |
|
|
|
1277 |
public AlertServiceException getE() {
|
|
|
1278 |
return this.e;
|
|
|
1279 |
}
|
|
|
1280 |
|
|
|
1281 |
public void setE(AlertServiceException e) {
|
|
|
1282 |
this.e = e;
|
|
|
1283 |
}
|
|
|
1284 |
|
|
|
1285 |
public void unsetE() {
|
|
|
1286 |
this.e = null;
|
|
|
1287 |
}
|
|
|
1288 |
|
|
|
1289 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
1290 |
public boolean isSetE() {
|
|
|
1291 |
return this.e != null;
|
|
|
1292 |
}
|
|
|
1293 |
|
|
|
1294 |
public void setEIsSet(boolean value) {
|
|
|
1295 |
if (!value) {
|
|
|
1296 |
this.e = null;
|
|
|
1297 |
}
|
|
|
1298 |
}
|
|
|
1299 |
|
|
|
1300 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1301 |
switch (field) {
|
|
|
1302 |
case E:
|
|
|
1303 |
if (value == null) {
|
|
|
1304 |
unsetE();
|
|
|
1305 |
} else {
|
|
|
1306 |
setE((AlertServiceException)value);
|
|
|
1307 |
}
|
|
|
1308 |
break;
|
|
|
1309 |
|
|
|
1310 |
}
|
|
|
1311 |
}
|
|
|
1312 |
|
|
|
1313 |
public Object getFieldValue(_Fields field) {
|
|
|
1314 |
switch (field) {
|
|
|
1315 |
case E:
|
|
|
1316 |
return getE();
|
|
|
1317 |
|
|
|
1318 |
}
|
|
|
1319 |
throw new IllegalStateException();
|
|
|
1320 |
}
|
|
|
1321 |
|
|
|
1322 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1323 |
public boolean isSet(_Fields field) {
|
|
|
1324 |
if (field == null) {
|
|
|
1325 |
throw new IllegalArgumentException();
|
|
|
1326 |
}
|
|
|
1327 |
|
|
|
1328 |
switch (field) {
|
|
|
1329 |
case E:
|
|
|
1330 |
return isSetE();
|
|
|
1331 |
}
|
|
|
1332 |
throw new IllegalStateException();
|
|
|
1333 |
}
|
|
|
1334 |
|
|
|
1335 |
@Override
|
|
|
1336 |
public boolean equals(Object that) {
|
|
|
1337 |
if (that == null)
|
|
|
1338 |
return false;
|
|
|
1339 |
if (that instanceof scheduleAlert_result)
|
|
|
1340 |
return this.equals((scheduleAlert_result)that);
|
|
|
1341 |
return false;
|
|
|
1342 |
}
|
|
|
1343 |
|
|
|
1344 |
public boolean equals(scheduleAlert_result that) {
|
|
|
1345 |
if (that == null)
|
|
|
1346 |
return false;
|
|
|
1347 |
|
|
|
1348 |
boolean this_present_e = true && this.isSetE();
|
|
|
1349 |
boolean that_present_e = true && that.isSetE();
|
|
|
1350 |
if (this_present_e || that_present_e) {
|
|
|
1351 |
if (!(this_present_e && that_present_e))
|
|
|
1352 |
return false;
|
|
|
1353 |
if (!this.e.equals(that.e))
|
|
|
1354 |
return false;
|
|
|
1355 |
}
|
|
|
1356 |
|
|
|
1357 |
return true;
|
|
|
1358 |
}
|
|
|
1359 |
|
|
|
1360 |
@Override
|
|
|
1361 |
public int hashCode() {
|
|
|
1362 |
return 0;
|
|
|
1363 |
}
|
|
|
1364 |
|
|
|
1365 |
public int compareTo(scheduleAlert_result other) {
|
|
|
1366 |
if (!getClass().equals(other.getClass())) {
|
|
|
1367 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1368 |
}
|
|
|
1369 |
|
|
|
1370 |
int lastComparison = 0;
|
|
|
1371 |
scheduleAlert_result typedOther = (scheduleAlert_result)other;
|
|
|
1372 |
|
|
|
1373 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
1374 |
if (lastComparison != 0) {
|
|
|
1375 |
return lastComparison;
|
|
|
1376 |
}
|
|
|
1377 |
if (isSetE()) {
|
|
|
1378 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
1379 |
if (lastComparison != 0) {
|
|
|
1380 |
return lastComparison;
|
|
|
1381 |
}
|
|
|
1382 |
}
|
|
|
1383 |
return 0;
|
|
|
1384 |
}
|
|
|
1385 |
|
|
|
1386 |
public _Fields fieldForId(int fieldId) {
|
|
|
1387 |
return _Fields.findByThriftId(fieldId);
|
|
|
1388 |
}
|
|
|
1389 |
|
|
|
1390 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1391 |
org.apache.thrift.protocol.TField field;
|
|
|
1392 |
iprot.readStructBegin();
|
|
|
1393 |
while (true)
|
|
|
1394 |
{
|
|
|
1395 |
field = iprot.readFieldBegin();
|
|
|
1396 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1397 |
break;
|
|
|
1398 |
}
|
|
|
1399 |
switch (field.id) {
|
|
|
1400 |
case 1: // E
|
|
|
1401 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1402 |
this.e = new AlertServiceException();
|
|
|
1403 |
this.e.read(iprot);
|
|
|
1404 |
} else {
|
|
|
1405 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1406 |
}
|
|
|
1407 |
break;
|
|
|
1408 |
default:
|
|
|
1409 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1410 |
}
|
|
|
1411 |
iprot.readFieldEnd();
|
|
|
1412 |
}
|
|
|
1413 |
iprot.readStructEnd();
|
|
|
1414 |
validate();
|
|
|
1415 |
}
|
|
|
1416 |
|
|
|
1417 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1418 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1419 |
|
|
|
1420 |
if (this.isSetE()) {
|
|
|
1421 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
1422 |
this.e.write(oprot);
|
|
|
1423 |
oprot.writeFieldEnd();
|
|
|
1424 |
}
|
|
|
1425 |
oprot.writeFieldStop();
|
|
|
1426 |
oprot.writeStructEnd();
|
|
|
1427 |
}
|
|
|
1428 |
|
|
|
1429 |
@Override
|
|
|
1430 |
public String toString() {
|
|
|
1431 |
StringBuilder sb = new StringBuilder("scheduleAlert_result(");
|
|
|
1432 |
boolean first = true;
|
|
|
1433 |
|
|
|
1434 |
sb.append("e:");
|
|
|
1435 |
if (this.e == null) {
|
|
|
1436 |
sb.append("null");
|
|
|
1437 |
} else {
|
|
|
1438 |
sb.append(this.e);
|
|
|
1439 |
}
|
|
|
1440 |
first = false;
|
|
|
1441 |
sb.append(")");
|
|
|
1442 |
return sb.toString();
|
|
|
1443 |
}
|
|
|
1444 |
|
|
|
1445 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1446 |
// check for required fields
|
|
|
1447 |
}
|
|
|
1448 |
|
|
|
1449 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1450 |
try {
|
|
|
1451 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1452 |
} catch (org.apache.thrift.TException te) {
|
|
|
1453 |
throw new java.io.IOException(te);
|
|
|
1454 |
}
|
|
|
1455 |
}
|
|
|
1456 |
|
|
|
1457 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1458 |
try {
|
|
|
1459 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1460 |
} catch (org.apache.thrift.TException te) {
|
|
|
1461 |
throw new java.io.IOException(te);
|
|
|
1462 |
}
|
|
|
1463 |
}
|
|
|
1464 |
|
|
|
1465 |
}
|
|
|
1466 |
|
|
|
1467 |
public static class updateMonitoredObject_args implements org.apache.thrift.TBase<updateMonitoredObject_args, updateMonitoredObject_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1468 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMonitoredObject_args");
|
|
|
1469 |
|
|
|
1470 |
private static final org.apache.thrift.protocol.TField ENTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("entity", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
1471 |
|
|
|
1472 |
private MonitoredEntity entity; // required
|
|
|
1473 |
|
|
|
1474 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1475 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
1476 |
ENTITY((short)1, "entity");
|
|
|
1477 |
|
|
|
1478 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1479 |
|
|
|
1480 |
static {
|
|
|
1481 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1482 |
byName.put(field.getFieldName(), field);
|
|
|
1483 |
}
|
|
|
1484 |
}
|
|
|
1485 |
|
|
|
1486 |
/**
|
|
|
1487 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1488 |
*/
|
|
|
1489 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1490 |
switch(fieldId) {
|
|
|
1491 |
case 1: // ENTITY
|
|
|
1492 |
return ENTITY;
|
|
|
1493 |
default:
|
|
|
1494 |
return null;
|
|
|
1495 |
}
|
|
|
1496 |
}
|
|
|
1497 |
|
|
|
1498 |
/**
|
|
|
1499 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1500 |
* if it is not found.
|
|
|
1501 |
*/
|
|
|
1502 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1503 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1504 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1505 |
return fields;
|
|
|
1506 |
}
|
|
|
1507 |
|
|
|
1508 |
/**
|
|
|
1509 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1510 |
*/
|
|
|
1511 |
public static _Fields findByName(String name) {
|
|
|
1512 |
return byName.get(name);
|
|
|
1513 |
}
|
|
|
1514 |
|
|
|
1515 |
private final short _thriftId;
|
|
|
1516 |
private final String _fieldName;
|
|
|
1517 |
|
|
|
1518 |
_Fields(short thriftId, String fieldName) {
|
|
|
1519 |
_thriftId = thriftId;
|
|
|
1520 |
_fieldName = fieldName;
|
|
|
1521 |
}
|
|
|
1522 |
|
|
|
1523 |
public short getThriftFieldId() {
|
|
|
1524 |
return _thriftId;
|
|
|
1525 |
}
|
|
|
1526 |
|
|
|
1527 |
public String getFieldName() {
|
|
|
1528 |
return _fieldName;
|
|
|
1529 |
}
|
|
|
1530 |
}
|
|
|
1531 |
|
|
|
1532 |
// isset id assignments
|
|
|
1533 |
|
|
|
1534 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1535 |
static {
|
|
|
1536 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1537 |
tmpMap.put(_Fields.ENTITY, new org.apache.thrift.meta_data.FieldMetaData("entity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1538 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MonitoredEntity.class)));
|
|
|
1539 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1540 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMonitoredObject_args.class, metaDataMap);
|
|
|
1541 |
}
|
|
|
1542 |
|
|
|
1543 |
public updateMonitoredObject_args() {
|
|
|
1544 |
}
|
|
|
1545 |
|
|
|
1546 |
public updateMonitoredObject_args(
|
|
|
1547 |
MonitoredEntity entity)
|
|
|
1548 |
{
|
|
|
1549 |
this();
|
|
|
1550 |
this.entity = entity;
|
|
|
1551 |
}
|
|
|
1552 |
|
|
|
1553 |
/**
|
|
|
1554 |
* Performs a deep copy on <i>other</i>.
|
|
|
1555 |
*/
|
|
|
1556 |
public updateMonitoredObject_args(updateMonitoredObject_args other) {
|
|
|
1557 |
if (other.isSetEntity()) {
|
|
|
1558 |
this.entity = new MonitoredEntity(other.entity);
|
|
|
1559 |
}
|
|
|
1560 |
}
|
|
|
1561 |
|
|
|
1562 |
public updateMonitoredObject_args deepCopy() {
|
|
|
1563 |
return new updateMonitoredObject_args(this);
|
|
|
1564 |
}
|
|
|
1565 |
|
|
|
1566 |
@Override
|
|
|
1567 |
public void clear() {
|
|
|
1568 |
this.entity = null;
|
|
|
1569 |
}
|
|
|
1570 |
|
|
|
1571 |
public MonitoredEntity getEntity() {
|
|
|
1572 |
return this.entity;
|
|
|
1573 |
}
|
|
|
1574 |
|
|
|
1575 |
public void setEntity(MonitoredEntity entity) {
|
|
|
1576 |
this.entity = entity;
|
|
|
1577 |
}
|
|
|
1578 |
|
|
|
1579 |
public void unsetEntity() {
|
|
|
1580 |
this.entity = null;
|
|
|
1581 |
}
|
|
|
1582 |
|
|
|
1583 |
/** Returns true if field entity is set (has been assigned a value) and false otherwise */
|
|
|
1584 |
public boolean isSetEntity() {
|
|
|
1585 |
return this.entity != null;
|
|
|
1586 |
}
|
|
|
1587 |
|
|
|
1588 |
public void setEntityIsSet(boolean value) {
|
|
|
1589 |
if (!value) {
|
|
|
1590 |
this.entity = null;
|
|
|
1591 |
}
|
|
|
1592 |
}
|
|
|
1593 |
|
|
|
1594 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1595 |
switch (field) {
|
|
|
1596 |
case ENTITY:
|
|
|
1597 |
if (value == null) {
|
|
|
1598 |
unsetEntity();
|
|
|
1599 |
} else {
|
|
|
1600 |
setEntity((MonitoredEntity)value);
|
|
|
1601 |
}
|
|
|
1602 |
break;
|
|
|
1603 |
|
|
|
1604 |
}
|
|
|
1605 |
}
|
|
|
1606 |
|
|
|
1607 |
public Object getFieldValue(_Fields field) {
|
|
|
1608 |
switch (field) {
|
|
|
1609 |
case ENTITY:
|
|
|
1610 |
return getEntity();
|
|
|
1611 |
|
|
|
1612 |
}
|
|
|
1613 |
throw new IllegalStateException();
|
|
|
1614 |
}
|
|
|
1615 |
|
|
|
1616 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1617 |
public boolean isSet(_Fields field) {
|
|
|
1618 |
if (field == null) {
|
|
|
1619 |
throw new IllegalArgumentException();
|
|
|
1620 |
}
|
|
|
1621 |
|
|
|
1622 |
switch (field) {
|
|
|
1623 |
case ENTITY:
|
|
|
1624 |
return isSetEntity();
|
|
|
1625 |
}
|
|
|
1626 |
throw new IllegalStateException();
|
|
|
1627 |
}
|
|
|
1628 |
|
|
|
1629 |
@Override
|
|
|
1630 |
public boolean equals(Object that) {
|
|
|
1631 |
if (that == null)
|
|
|
1632 |
return false;
|
|
|
1633 |
if (that instanceof updateMonitoredObject_args)
|
|
|
1634 |
return this.equals((updateMonitoredObject_args)that);
|
|
|
1635 |
return false;
|
|
|
1636 |
}
|
|
|
1637 |
|
|
|
1638 |
public boolean equals(updateMonitoredObject_args that) {
|
|
|
1639 |
if (that == null)
|
|
|
1640 |
return false;
|
|
|
1641 |
|
|
|
1642 |
boolean this_present_entity = true && this.isSetEntity();
|
|
|
1643 |
boolean that_present_entity = true && that.isSetEntity();
|
|
|
1644 |
if (this_present_entity || that_present_entity) {
|
|
|
1645 |
if (!(this_present_entity && that_present_entity))
|
|
|
1646 |
return false;
|
|
|
1647 |
if (!this.entity.equals(that.entity))
|
|
|
1648 |
return false;
|
|
|
1649 |
}
|
|
|
1650 |
|
|
|
1651 |
return true;
|
|
|
1652 |
}
|
|
|
1653 |
|
|
|
1654 |
@Override
|
|
|
1655 |
public int hashCode() {
|
|
|
1656 |
return 0;
|
|
|
1657 |
}
|
|
|
1658 |
|
|
|
1659 |
public int compareTo(updateMonitoredObject_args other) {
|
|
|
1660 |
if (!getClass().equals(other.getClass())) {
|
|
|
1661 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1662 |
}
|
|
|
1663 |
|
|
|
1664 |
int lastComparison = 0;
|
|
|
1665 |
updateMonitoredObject_args typedOther = (updateMonitoredObject_args)other;
|
|
|
1666 |
|
|
|
1667 |
lastComparison = Boolean.valueOf(isSetEntity()).compareTo(typedOther.isSetEntity());
|
|
|
1668 |
if (lastComparison != 0) {
|
|
|
1669 |
return lastComparison;
|
|
|
1670 |
}
|
|
|
1671 |
if (isSetEntity()) {
|
|
|
1672 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity, typedOther.entity);
|
|
|
1673 |
if (lastComparison != 0) {
|
|
|
1674 |
return lastComparison;
|
|
|
1675 |
}
|
|
|
1676 |
}
|
|
|
1677 |
return 0;
|
|
|
1678 |
}
|
|
|
1679 |
|
|
|
1680 |
public _Fields fieldForId(int fieldId) {
|
|
|
1681 |
return _Fields.findByThriftId(fieldId);
|
|
|
1682 |
}
|
|
|
1683 |
|
|
|
1684 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1685 |
org.apache.thrift.protocol.TField field;
|
|
|
1686 |
iprot.readStructBegin();
|
|
|
1687 |
while (true)
|
|
|
1688 |
{
|
|
|
1689 |
field = iprot.readFieldBegin();
|
|
|
1690 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1691 |
break;
|
|
|
1692 |
}
|
|
|
1693 |
switch (field.id) {
|
|
|
1694 |
case 1: // ENTITY
|
|
|
1695 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1696 |
this.entity = new MonitoredEntity();
|
|
|
1697 |
this.entity.read(iprot);
|
|
|
1698 |
} else {
|
|
|
1699 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1700 |
}
|
|
|
1701 |
break;
|
|
|
1702 |
default:
|
|
|
1703 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1704 |
}
|
|
|
1705 |
iprot.readFieldEnd();
|
|
|
1706 |
}
|
|
|
1707 |
iprot.readStructEnd();
|
|
|
1708 |
validate();
|
|
|
1709 |
}
|
|
|
1710 |
|
|
|
1711 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1712 |
validate();
|
|
|
1713 |
|
|
|
1714 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1715 |
if (this.entity != null) {
|
|
|
1716 |
oprot.writeFieldBegin(ENTITY_FIELD_DESC);
|
|
|
1717 |
this.entity.write(oprot);
|
|
|
1718 |
oprot.writeFieldEnd();
|
|
|
1719 |
}
|
|
|
1720 |
oprot.writeFieldStop();
|
|
|
1721 |
oprot.writeStructEnd();
|
|
|
1722 |
}
|
|
|
1723 |
|
|
|
1724 |
@Override
|
|
|
1725 |
public String toString() {
|
|
|
1726 |
StringBuilder sb = new StringBuilder("updateMonitoredObject_args(");
|
|
|
1727 |
boolean first = true;
|
|
|
1728 |
|
|
|
1729 |
sb.append("entity:");
|
|
|
1730 |
if (this.entity == null) {
|
|
|
1731 |
sb.append("null");
|
|
|
1732 |
} else {
|
|
|
1733 |
sb.append(this.entity);
|
|
|
1734 |
}
|
|
|
1735 |
first = false;
|
|
|
1736 |
sb.append(")");
|
|
|
1737 |
return sb.toString();
|
|
|
1738 |
}
|
|
|
1739 |
|
|
|
1740 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1741 |
// check for required fields
|
|
|
1742 |
}
|
|
|
1743 |
|
|
|
1744 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1745 |
try {
|
|
|
1746 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1747 |
} catch (org.apache.thrift.TException te) {
|
|
|
1748 |
throw new java.io.IOException(te);
|
|
|
1749 |
}
|
|
|
1750 |
}
|
|
|
1751 |
|
|
|
1752 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1753 |
try {
|
|
|
1754 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1755 |
} catch (org.apache.thrift.TException te) {
|
|
|
1756 |
throw new java.io.IOException(te);
|
|
|
1757 |
}
|
|
|
1758 |
}
|
|
|
1759 |
|
|
|
1760 |
}
|
|
|
1761 |
|
|
|
1762 |
public static class updateMonitoredObject_result implements org.apache.thrift.TBase<updateMonitoredObject_result, updateMonitoredObject_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1763 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMonitoredObject_result");
|
|
|
1764 |
|
|
|
1765 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
1766 |
|
|
|
1767 |
private AlertServiceException e; // required
|
|
|
1768 |
|
|
|
1769 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1770 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
1771 |
E((short)1, "e");
|
|
|
1772 |
|
|
|
1773 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1774 |
|
|
|
1775 |
static {
|
|
|
1776 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1777 |
byName.put(field.getFieldName(), field);
|
|
|
1778 |
}
|
|
|
1779 |
}
|
|
|
1780 |
|
|
|
1781 |
/**
|
|
|
1782 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1783 |
*/
|
|
|
1784 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1785 |
switch(fieldId) {
|
|
|
1786 |
case 1: // E
|
|
|
1787 |
return E;
|
|
|
1788 |
default:
|
|
|
1789 |
return null;
|
|
|
1790 |
}
|
|
|
1791 |
}
|
|
|
1792 |
|
|
|
1793 |
/**
|
|
|
1794 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1795 |
* if it is not found.
|
|
|
1796 |
*/
|
|
|
1797 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1798 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1799 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1800 |
return fields;
|
|
|
1801 |
}
|
|
|
1802 |
|
|
|
1803 |
/**
|
|
|
1804 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1805 |
*/
|
|
|
1806 |
public static _Fields findByName(String name) {
|
|
|
1807 |
return byName.get(name);
|
|
|
1808 |
}
|
|
|
1809 |
|
|
|
1810 |
private final short _thriftId;
|
|
|
1811 |
private final String _fieldName;
|
|
|
1812 |
|
|
|
1813 |
_Fields(short thriftId, String fieldName) {
|
|
|
1814 |
_thriftId = thriftId;
|
|
|
1815 |
_fieldName = fieldName;
|
|
|
1816 |
}
|
|
|
1817 |
|
|
|
1818 |
public short getThriftFieldId() {
|
|
|
1819 |
return _thriftId;
|
|
|
1820 |
}
|
|
|
1821 |
|
|
|
1822 |
public String getFieldName() {
|
|
|
1823 |
return _fieldName;
|
|
|
1824 |
}
|
|
|
1825 |
}
|
|
|
1826 |
|
|
|
1827 |
// isset id assignments
|
|
|
1828 |
|
|
|
1829 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1830 |
static {
|
|
|
1831 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1832 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1833 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1834 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1835 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMonitoredObject_result.class, metaDataMap);
|
|
|
1836 |
}
|
|
|
1837 |
|
|
|
1838 |
public updateMonitoredObject_result() {
|
|
|
1839 |
}
|
|
|
1840 |
|
|
|
1841 |
public updateMonitoredObject_result(
|
|
|
1842 |
AlertServiceException e)
|
|
|
1843 |
{
|
|
|
1844 |
this();
|
|
|
1845 |
this.e = e;
|
|
|
1846 |
}
|
|
|
1847 |
|
|
|
1848 |
/**
|
|
|
1849 |
* Performs a deep copy on <i>other</i>.
|
|
|
1850 |
*/
|
|
|
1851 |
public updateMonitoredObject_result(updateMonitoredObject_result other) {
|
|
|
1852 |
if (other.isSetE()) {
|
|
|
1853 |
this.e = new AlertServiceException(other.e);
|
|
|
1854 |
}
|
|
|
1855 |
}
|
|
|
1856 |
|
|
|
1857 |
public updateMonitoredObject_result deepCopy() {
|
|
|
1858 |
return new updateMonitoredObject_result(this);
|
|
|
1859 |
}
|
|
|
1860 |
|
|
|
1861 |
@Override
|
|
|
1862 |
public void clear() {
|
|
|
1863 |
this.e = null;
|
|
|
1864 |
}
|
|
|
1865 |
|
|
|
1866 |
public AlertServiceException getE() {
|
|
|
1867 |
return this.e;
|
|
|
1868 |
}
|
|
|
1869 |
|
|
|
1870 |
public void setE(AlertServiceException e) {
|
|
|
1871 |
this.e = e;
|
|
|
1872 |
}
|
|
|
1873 |
|
|
|
1874 |
public void unsetE() {
|
|
|
1875 |
this.e = null;
|
|
|
1876 |
}
|
|
|
1877 |
|
|
|
1878 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
1879 |
public boolean isSetE() {
|
|
|
1880 |
return this.e != null;
|
|
|
1881 |
}
|
|
|
1882 |
|
|
|
1883 |
public void setEIsSet(boolean value) {
|
|
|
1884 |
if (!value) {
|
|
|
1885 |
this.e = null;
|
|
|
1886 |
}
|
|
|
1887 |
}
|
|
|
1888 |
|
|
|
1889 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1890 |
switch (field) {
|
|
|
1891 |
case E:
|
|
|
1892 |
if (value == null) {
|
|
|
1893 |
unsetE();
|
|
|
1894 |
} else {
|
|
|
1895 |
setE((AlertServiceException)value);
|
|
|
1896 |
}
|
|
|
1897 |
break;
|
|
|
1898 |
|
|
|
1899 |
}
|
|
|
1900 |
}
|
|
|
1901 |
|
|
|
1902 |
public Object getFieldValue(_Fields field) {
|
|
|
1903 |
switch (field) {
|
|
|
1904 |
case E:
|
|
|
1905 |
return getE();
|
|
|
1906 |
|
|
|
1907 |
}
|
|
|
1908 |
throw new IllegalStateException();
|
|
|
1909 |
}
|
|
|
1910 |
|
|
|
1911 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1912 |
public boolean isSet(_Fields field) {
|
|
|
1913 |
if (field == null) {
|
|
|
1914 |
throw new IllegalArgumentException();
|
|
|
1915 |
}
|
|
|
1916 |
|
|
|
1917 |
switch (field) {
|
|
|
1918 |
case E:
|
|
|
1919 |
return isSetE();
|
|
|
1920 |
}
|
|
|
1921 |
throw new IllegalStateException();
|
|
|
1922 |
}
|
|
|
1923 |
|
|
|
1924 |
@Override
|
|
|
1925 |
public boolean equals(Object that) {
|
|
|
1926 |
if (that == null)
|
|
|
1927 |
return false;
|
|
|
1928 |
if (that instanceof updateMonitoredObject_result)
|
|
|
1929 |
return this.equals((updateMonitoredObject_result)that);
|
|
|
1930 |
return false;
|
|
|
1931 |
}
|
|
|
1932 |
|
|
|
1933 |
public boolean equals(updateMonitoredObject_result that) {
|
|
|
1934 |
if (that == null)
|
|
|
1935 |
return false;
|
|
|
1936 |
|
|
|
1937 |
boolean this_present_e = true && this.isSetE();
|
|
|
1938 |
boolean that_present_e = true && that.isSetE();
|
|
|
1939 |
if (this_present_e || that_present_e) {
|
|
|
1940 |
if (!(this_present_e && that_present_e))
|
|
|
1941 |
return false;
|
|
|
1942 |
if (!this.e.equals(that.e))
|
|
|
1943 |
return false;
|
|
|
1944 |
}
|
|
|
1945 |
|
|
|
1946 |
return true;
|
|
|
1947 |
}
|
|
|
1948 |
|
|
|
1949 |
@Override
|
|
|
1950 |
public int hashCode() {
|
|
|
1951 |
return 0;
|
|
|
1952 |
}
|
|
|
1953 |
|
|
|
1954 |
public int compareTo(updateMonitoredObject_result other) {
|
|
|
1955 |
if (!getClass().equals(other.getClass())) {
|
|
|
1956 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1957 |
}
|
|
|
1958 |
|
|
|
1959 |
int lastComparison = 0;
|
|
|
1960 |
updateMonitoredObject_result typedOther = (updateMonitoredObject_result)other;
|
|
|
1961 |
|
|
|
1962 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
1963 |
if (lastComparison != 0) {
|
|
|
1964 |
return lastComparison;
|
|
|
1965 |
}
|
|
|
1966 |
if (isSetE()) {
|
|
|
1967 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
1968 |
if (lastComparison != 0) {
|
|
|
1969 |
return lastComparison;
|
|
|
1970 |
}
|
|
|
1971 |
}
|
|
|
1972 |
return 0;
|
|
|
1973 |
}
|
|
|
1974 |
|
|
|
1975 |
public _Fields fieldForId(int fieldId) {
|
|
|
1976 |
return _Fields.findByThriftId(fieldId);
|
|
|
1977 |
}
|
|
|
1978 |
|
|
|
1979 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1980 |
org.apache.thrift.protocol.TField field;
|
|
|
1981 |
iprot.readStructBegin();
|
|
|
1982 |
while (true)
|
|
|
1983 |
{
|
|
|
1984 |
field = iprot.readFieldBegin();
|
|
|
1985 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1986 |
break;
|
|
|
1987 |
}
|
|
|
1988 |
switch (field.id) {
|
|
|
1989 |
case 1: // E
|
|
|
1990 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1991 |
this.e = new AlertServiceException();
|
|
|
1992 |
this.e.read(iprot);
|
|
|
1993 |
} else {
|
|
|
1994 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1995 |
}
|
|
|
1996 |
break;
|
|
|
1997 |
default:
|
|
|
1998 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1999 |
}
|
|
|
2000 |
iprot.readFieldEnd();
|
|
|
2001 |
}
|
|
|
2002 |
iprot.readStructEnd();
|
|
|
2003 |
validate();
|
|
|
2004 |
}
|
|
|
2005 |
|
|
|
2006 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2007 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2008 |
|
|
|
2009 |
if (this.isSetE()) {
|
|
|
2010 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
2011 |
this.e.write(oprot);
|
|
|
2012 |
oprot.writeFieldEnd();
|
|
|
2013 |
}
|
|
|
2014 |
oprot.writeFieldStop();
|
|
|
2015 |
oprot.writeStructEnd();
|
|
|
2016 |
}
|
|
|
2017 |
|
|
|
2018 |
@Override
|
|
|
2019 |
public String toString() {
|
|
|
2020 |
StringBuilder sb = new StringBuilder("updateMonitoredObject_result(");
|
|
|
2021 |
boolean first = true;
|
|
|
2022 |
|
|
|
2023 |
sb.append("e:");
|
|
|
2024 |
if (this.e == null) {
|
|
|
2025 |
sb.append("null");
|
|
|
2026 |
} else {
|
|
|
2027 |
sb.append(this.e);
|
|
|
2028 |
}
|
|
|
2029 |
first = false;
|
|
|
2030 |
sb.append(")");
|
|
|
2031 |
return sb.toString();
|
|
|
2032 |
}
|
|
|
2033 |
|
|
|
2034 |
public void validate() throws org.apache.thrift.TException {
|
|
|
2035 |
// check for required fields
|
|
|
2036 |
}
|
|
|
2037 |
|
|
|
2038 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2039 |
try {
|
|
|
2040 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2041 |
} catch (org.apache.thrift.TException te) {
|
|
|
2042 |
throw new java.io.IOException(te);
|
|
|
2043 |
}
|
|
|
2044 |
}
|
|
|
2045 |
|
|
|
2046 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2047 |
try {
|
|
|
2048 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2049 |
} catch (org.apache.thrift.TException te) {
|
|
|
2050 |
throw new java.io.IOException(te);
|
|
|
2051 |
}
|
|
|
2052 |
}
|
|
|
2053 |
|
|
|
2054 |
}
|
|
|
2055 |
|
|
|
2056 |
public static class endMonitoringEntity_args implements org.apache.thrift.TBase<endMonitoringEntity_args, endMonitoringEntity_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2057 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("endMonitoringEntity_args");
|
|
|
2058 |
|
|
|
2059 |
private static final org.apache.thrift.protocol.TField ENTITY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("entityType", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
|
2060 |
private static final org.apache.thrift.protocol.TField ENTITY_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("entityIdentifier", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
2061 |
|
|
|
2062 |
private EntityType entityType; // required
|
|
|
2063 |
private String entityIdentifier; // required
|
|
|
2064 |
|
|
|
2065 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
2066 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
2067 |
/**
|
|
|
2068 |
*
|
|
|
2069 |
* @see EntityType
|
|
|
2070 |
*/
|
|
|
2071 |
ENTITY_TYPE((short)1, "entityType"),
|
|
|
2072 |
ENTITY_IDENTIFIER((short)2, "entityIdentifier");
|
|
|
2073 |
|
|
|
2074 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2075 |
|
|
|
2076 |
static {
|
|
|
2077 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2078 |
byName.put(field.getFieldName(), field);
|
|
|
2079 |
}
|
|
|
2080 |
}
|
|
|
2081 |
|
|
|
2082 |
/**
|
|
|
2083 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2084 |
*/
|
|
|
2085 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
2086 |
switch(fieldId) {
|
|
|
2087 |
case 1: // ENTITY_TYPE
|
|
|
2088 |
return ENTITY_TYPE;
|
|
|
2089 |
case 2: // ENTITY_IDENTIFIER
|
|
|
2090 |
return ENTITY_IDENTIFIER;
|
|
|
2091 |
default:
|
|
|
2092 |
return null;
|
|
|
2093 |
}
|
|
|
2094 |
}
|
|
|
2095 |
|
|
|
2096 |
/**
|
|
|
2097 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2098 |
* if it is not found.
|
|
|
2099 |
*/
|
|
|
2100 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2101 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2102 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2103 |
return fields;
|
|
|
2104 |
}
|
|
|
2105 |
|
|
|
2106 |
/**
|
|
|
2107 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2108 |
*/
|
|
|
2109 |
public static _Fields findByName(String name) {
|
|
|
2110 |
return byName.get(name);
|
|
|
2111 |
}
|
|
|
2112 |
|
|
|
2113 |
private final short _thriftId;
|
|
|
2114 |
private final String _fieldName;
|
|
|
2115 |
|
|
|
2116 |
_Fields(short thriftId, String fieldName) {
|
|
|
2117 |
_thriftId = thriftId;
|
|
|
2118 |
_fieldName = fieldName;
|
|
|
2119 |
}
|
|
|
2120 |
|
|
|
2121 |
public short getThriftFieldId() {
|
|
|
2122 |
return _thriftId;
|
|
|
2123 |
}
|
|
|
2124 |
|
|
|
2125 |
public String getFieldName() {
|
|
|
2126 |
return _fieldName;
|
|
|
2127 |
}
|
|
|
2128 |
}
|
|
|
2129 |
|
|
|
2130 |
// isset id assignments
|
|
|
2131 |
|
|
|
2132 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
2133 |
static {
|
|
|
2134 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2135 |
tmpMap.put(_Fields.ENTITY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("entityType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2136 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, EntityType.class)));
|
|
|
2137 |
tmpMap.put(_Fields.ENTITY_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("entityIdentifier", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2138 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
2139 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2140 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(endMonitoringEntity_args.class, metaDataMap);
|
|
|
2141 |
}
|
|
|
2142 |
|
|
|
2143 |
public endMonitoringEntity_args() {
|
|
|
2144 |
}
|
|
|
2145 |
|
|
|
2146 |
public endMonitoringEntity_args(
|
|
|
2147 |
EntityType entityType,
|
|
|
2148 |
String entityIdentifier)
|
|
|
2149 |
{
|
|
|
2150 |
this();
|
|
|
2151 |
this.entityType = entityType;
|
|
|
2152 |
this.entityIdentifier = entityIdentifier;
|
|
|
2153 |
}
|
|
|
2154 |
|
|
|
2155 |
/**
|
|
|
2156 |
* Performs a deep copy on <i>other</i>.
|
|
|
2157 |
*/
|
|
|
2158 |
public endMonitoringEntity_args(endMonitoringEntity_args other) {
|
|
|
2159 |
if (other.isSetEntityType()) {
|
|
|
2160 |
this.entityType = other.entityType;
|
|
|
2161 |
}
|
|
|
2162 |
if (other.isSetEntityIdentifier()) {
|
|
|
2163 |
this.entityIdentifier = other.entityIdentifier;
|
|
|
2164 |
}
|
|
|
2165 |
}
|
|
|
2166 |
|
|
|
2167 |
public endMonitoringEntity_args deepCopy() {
|
|
|
2168 |
return new endMonitoringEntity_args(this);
|
|
|
2169 |
}
|
|
|
2170 |
|
|
|
2171 |
@Override
|
|
|
2172 |
public void clear() {
|
|
|
2173 |
this.entityType = null;
|
|
|
2174 |
this.entityIdentifier = null;
|
|
|
2175 |
}
|
|
|
2176 |
|
|
|
2177 |
/**
|
|
|
2178 |
*
|
|
|
2179 |
* @see EntityType
|
|
|
2180 |
*/
|
|
|
2181 |
public EntityType getEntityType() {
|
|
|
2182 |
return this.entityType;
|
|
|
2183 |
}
|
|
|
2184 |
|
|
|
2185 |
/**
|
|
|
2186 |
*
|
|
|
2187 |
* @see EntityType
|
|
|
2188 |
*/
|
|
|
2189 |
public void setEntityType(EntityType entityType) {
|
|
|
2190 |
this.entityType = entityType;
|
|
|
2191 |
}
|
|
|
2192 |
|
|
|
2193 |
public void unsetEntityType() {
|
|
|
2194 |
this.entityType = null;
|
|
|
2195 |
}
|
|
|
2196 |
|
|
|
2197 |
/** Returns true if field entityType is set (has been assigned a value) and false otherwise */
|
|
|
2198 |
public boolean isSetEntityType() {
|
|
|
2199 |
return this.entityType != null;
|
|
|
2200 |
}
|
|
|
2201 |
|
|
|
2202 |
public void setEntityTypeIsSet(boolean value) {
|
|
|
2203 |
if (!value) {
|
|
|
2204 |
this.entityType = null;
|
|
|
2205 |
}
|
|
|
2206 |
}
|
|
|
2207 |
|
|
|
2208 |
public String getEntityIdentifier() {
|
|
|
2209 |
return this.entityIdentifier;
|
|
|
2210 |
}
|
|
|
2211 |
|
|
|
2212 |
public void setEntityIdentifier(String entityIdentifier) {
|
|
|
2213 |
this.entityIdentifier = entityIdentifier;
|
|
|
2214 |
}
|
|
|
2215 |
|
|
|
2216 |
public void unsetEntityIdentifier() {
|
|
|
2217 |
this.entityIdentifier = null;
|
|
|
2218 |
}
|
|
|
2219 |
|
|
|
2220 |
/** Returns true if field entityIdentifier is set (has been assigned a value) and false otherwise */
|
|
|
2221 |
public boolean isSetEntityIdentifier() {
|
|
|
2222 |
return this.entityIdentifier != null;
|
|
|
2223 |
}
|
|
|
2224 |
|
|
|
2225 |
public void setEntityIdentifierIsSet(boolean value) {
|
|
|
2226 |
if (!value) {
|
|
|
2227 |
this.entityIdentifier = null;
|
|
|
2228 |
}
|
|
|
2229 |
}
|
|
|
2230 |
|
|
|
2231 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2232 |
switch (field) {
|
|
|
2233 |
case ENTITY_TYPE:
|
|
|
2234 |
if (value == null) {
|
|
|
2235 |
unsetEntityType();
|
|
|
2236 |
} else {
|
|
|
2237 |
setEntityType((EntityType)value);
|
|
|
2238 |
}
|
|
|
2239 |
break;
|
|
|
2240 |
|
|
|
2241 |
case ENTITY_IDENTIFIER:
|
|
|
2242 |
if (value == null) {
|
|
|
2243 |
unsetEntityIdentifier();
|
|
|
2244 |
} else {
|
|
|
2245 |
setEntityIdentifier((String)value);
|
|
|
2246 |
}
|
|
|
2247 |
break;
|
|
|
2248 |
|
|
|
2249 |
}
|
|
|
2250 |
}
|
|
|
2251 |
|
|
|
2252 |
public Object getFieldValue(_Fields field) {
|
|
|
2253 |
switch (field) {
|
|
|
2254 |
case ENTITY_TYPE:
|
|
|
2255 |
return getEntityType();
|
|
|
2256 |
|
|
|
2257 |
case ENTITY_IDENTIFIER:
|
|
|
2258 |
return getEntityIdentifier();
|
|
|
2259 |
|
|
|
2260 |
}
|
|
|
2261 |
throw new IllegalStateException();
|
|
|
2262 |
}
|
|
|
2263 |
|
|
|
2264 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2265 |
public boolean isSet(_Fields field) {
|
|
|
2266 |
if (field == null) {
|
|
|
2267 |
throw new IllegalArgumentException();
|
|
|
2268 |
}
|
|
|
2269 |
|
|
|
2270 |
switch (field) {
|
|
|
2271 |
case ENTITY_TYPE:
|
|
|
2272 |
return isSetEntityType();
|
|
|
2273 |
case ENTITY_IDENTIFIER:
|
|
|
2274 |
return isSetEntityIdentifier();
|
|
|
2275 |
}
|
|
|
2276 |
throw new IllegalStateException();
|
|
|
2277 |
}
|
|
|
2278 |
|
|
|
2279 |
@Override
|
|
|
2280 |
public boolean equals(Object that) {
|
|
|
2281 |
if (that == null)
|
|
|
2282 |
return false;
|
|
|
2283 |
if (that instanceof endMonitoringEntity_args)
|
|
|
2284 |
return this.equals((endMonitoringEntity_args)that);
|
|
|
2285 |
return false;
|
|
|
2286 |
}
|
|
|
2287 |
|
|
|
2288 |
public boolean equals(endMonitoringEntity_args that) {
|
|
|
2289 |
if (that == null)
|
|
|
2290 |
return false;
|
|
|
2291 |
|
|
|
2292 |
boolean this_present_entityType = true && this.isSetEntityType();
|
|
|
2293 |
boolean that_present_entityType = true && that.isSetEntityType();
|
|
|
2294 |
if (this_present_entityType || that_present_entityType) {
|
|
|
2295 |
if (!(this_present_entityType && that_present_entityType))
|
|
|
2296 |
return false;
|
|
|
2297 |
if (!this.entityType.equals(that.entityType))
|
|
|
2298 |
return false;
|
|
|
2299 |
}
|
|
|
2300 |
|
|
|
2301 |
boolean this_present_entityIdentifier = true && this.isSetEntityIdentifier();
|
|
|
2302 |
boolean that_present_entityIdentifier = true && that.isSetEntityIdentifier();
|
|
|
2303 |
if (this_present_entityIdentifier || that_present_entityIdentifier) {
|
|
|
2304 |
if (!(this_present_entityIdentifier && that_present_entityIdentifier))
|
|
|
2305 |
return false;
|
|
|
2306 |
if (!this.entityIdentifier.equals(that.entityIdentifier))
|
|
|
2307 |
return false;
|
|
|
2308 |
}
|
|
|
2309 |
|
|
|
2310 |
return true;
|
|
|
2311 |
}
|
|
|
2312 |
|
|
|
2313 |
@Override
|
|
|
2314 |
public int hashCode() {
|
|
|
2315 |
return 0;
|
|
|
2316 |
}
|
|
|
2317 |
|
|
|
2318 |
public int compareTo(endMonitoringEntity_args other) {
|
|
|
2319 |
if (!getClass().equals(other.getClass())) {
|
|
|
2320 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2321 |
}
|
|
|
2322 |
|
|
|
2323 |
int lastComparison = 0;
|
|
|
2324 |
endMonitoringEntity_args typedOther = (endMonitoringEntity_args)other;
|
|
|
2325 |
|
|
|
2326 |
lastComparison = Boolean.valueOf(isSetEntityType()).compareTo(typedOther.isSetEntityType());
|
|
|
2327 |
if (lastComparison != 0) {
|
|
|
2328 |
return lastComparison;
|
|
|
2329 |
}
|
|
|
2330 |
if (isSetEntityType()) {
|
|
|
2331 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityType, typedOther.entityType);
|
|
|
2332 |
if (lastComparison != 0) {
|
|
|
2333 |
return lastComparison;
|
|
|
2334 |
}
|
|
|
2335 |
}
|
|
|
2336 |
lastComparison = Boolean.valueOf(isSetEntityIdentifier()).compareTo(typedOther.isSetEntityIdentifier());
|
|
|
2337 |
if (lastComparison != 0) {
|
|
|
2338 |
return lastComparison;
|
|
|
2339 |
}
|
|
|
2340 |
if (isSetEntityIdentifier()) {
|
|
|
2341 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIdentifier, typedOther.entityIdentifier);
|
|
|
2342 |
if (lastComparison != 0) {
|
|
|
2343 |
return lastComparison;
|
|
|
2344 |
}
|
|
|
2345 |
}
|
|
|
2346 |
return 0;
|
|
|
2347 |
}
|
|
|
2348 |
|
|
|
2349 |
public _Fields fieldForId(int fieldId) {
|
|
|
2350 |
return _Fields.findByThriftId(fieldId);
|
|
|
2351 |
}
|
|
|
2352 |
|
|
|
2353 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2354 |
org.apache.thrift.protocol.TField field;
|
|
|
2355 |
iprot.readStructBegin();
|
|
|
2356 |
while (true)
|
|
|
2357 |
{
|
|
|
2358 |
field = iprot.readFieldBegin();
|
|
|
2359 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
2360 |
break;
|
|
|
2361 |
}
|
|
|
2362 |
switch (field.id) {
|
|
|
2363 |
case 1: // ENTITY_TYPE
|
|
|
2364 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
2365 |
this.entityType = EntityType.findByValue(iprot.readI32());
|
|
|
2366 |
} else {
|
|
|
2367 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2368 |
}
|
|
|
2369 |
break;
|
|
|
2370 |
case 2: // ENTITY_IDENTIFIER
|
|
|
2371 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2372 |
this.entityIdentifier = iprot.readString();
|
|
|
2373 |
} else {
|
|
|
2374 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2375 |
}
|
|
|
2376 |
break;
|
|
|
2377 |
default:
|
|
|
2378 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2379 |
}
|
|
|
2380 |
iprot.readFieldEnd();
|
|
|
2381 |
}
|
|
|
2382 |
iprot.readStructEnd();
|
|
|
2383 |
validate();
|
|
|
2384 |
}
|
|
|
2385 |
|
|
|
2386 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2387 |
validate();
|
|
|
2388 |
|
|
|
2389 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2390 |
if (this.entityType != null) {
|
|
|
2391 |
oprot.writeFieldBegin(ENTITY_TYPE_FIELD_DESC);
|
|
|
2392 |
oprot.writeI32(this.entityType.getValue());
|
|
|
2393 |
oprot.writeFieldEnd();
|
|
|
2394 |
}
|
|
|
2395 |
if (this.entityIdentifier != null) {
|
|
|
2396 |
oprot.writeFieldBegin(ENTITY_IDENTIFIER_FIELD_DESC);
|
|
|
2397 |
oprot.writeString(this.entityIdentifier);
|
|
|
2398 |
oprot.writeFieldEnd();
|
|
|
2399 |
}
|
|
|
2400 |
oprot.writeFieldStop();
|
|
|
2401 |
oprot.writeStructEnd();
|
|
|
2402 |
}
|
|
|
2403 |
|
|
|
2404 |
@Override
|
|
|
2405 |
public String toString() {
|
|
|
2406 |
StringBuilder sb = new StringBuilder("endMonitoringEntity_args(");
|
|
|
2407 |
boolean first = true;
|
|
|
2408 |
|
|
|
2409 |
sb.append("entityType:");
|
|
|
2410 |
if (this.entityType == null) {
|
|
|
2411 |
sb.append("null");
|
|
|
2412 |
} else {
|
|
|
2413 |
sb.append(this.entityType);
|
|
|
2414 |
}
|
|
|
2415 |
first = false;
|
|
|
2416 |
if (!first) sb.append(", ");
|
|
|
2417 |
sb.append("entityIdentifier:");
|
|
|
2418 |
if (this.entityIdentifier == null) {
|
|
|
2419 |
sb.append("null");
|
|
|
2420 |
} else {
|
|
|
2421 |
sb.append(this.entityIdentifier);
|
|
|
2422 |
}
|
|
|
2423 |
first = false;
|
|
|
2424 |
sb.append(")");
|
|
|
2425 |
return sb.toString();
|
|
|
2426 |
}
|
|
|
2427 |
|
|
|
2428 |
public void validate() throws org.apache.thrift.TException {
|
|
|
2429 |
// check for required fields
|
|
|
2430 |
}
|
|
|
2431 |
|
|
|
2432 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2433 |
try {
|
|
|
2434 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2435 |
} catch (org.apache.thrift.TException te) {
|
|
|
2436 |
throw new java.io.IOException(te);
|
|
|
2437 |
}
|
|
|
2438 |
}
|
|
|
2439 |
|
|
|
2440 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2441 |
try {
|
|
|
2442 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2443 |
} catch (org.apache.thrift.TException te) {
|
|
|
2444 |
throw new java.io.IOException(te);
|
|
|
2445 |
}
|
|
|
2446 |
}
|
|
|
2447 |
|
|
|
2448 |
}
|
|
|
2449 |
|
|
|
2450 |
public static class endMonitoringEntity_result implements org.apache.thrift.TBase<endMonitoringEntity_result, endMonitoringEntity_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2451 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("endMonitoringEntity_result");
|
|
|
2452 |
|
|
|
2453 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
2454 |
|
|
|
2455 |
private AlertServiceException e; // required
|
|
|
2456 |
|
|
|
2457 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
2458 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
2459 |
E((short)1, "e");
|
|
|
2460 |
|
|
|
2461 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2462 |
|
|
|
2463 |
static {
|
|
|
2464 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2465 |
byName.put(field.getFieldName(), field);
|
|
|
2466 |
}
|
|
|
2467 |
}
|
|
|
2468 |
|
|
|
2469 |
/**
|
|
|
2470 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2471 |
*/
|
|
|
2472 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
2473 |
switch(fieldId) {
|
|
|
2474 |
case 1: // E
|
|
|
2475 |
return E;
|
|
|
2476 |
default:
|
|
|
2477 |
return null;
|
|
|
2478 |
}
|
|
|
2479 |
}
|
|
|
2480 |
|
|
|
2481 |
/**
|
|
|
2482 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2483 |
* if it is not found.
|
|
|
2484 |
*/
|
|
|
2485 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2486 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2487 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2488 |
return fields;
|
|
|
2489 |
}
|
|
|
2490 |
|
|
|
2491 |
/**
|
|
|
2492 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2493 |
*/
|
|
|
2494 |
public static _Fields findByName(String name) {
|
|
|
2495 |
return byName.get(name);
|
|
|
2496 |
}
|
|
|
2497 |
|
|
|
2498 |
private final short _thriftId;
|
|
|
2499 |
private final String _fieldName;
|
|
|
2500 |
|
|
|
2501 |
_Fields(short thriftId, String fieldName) {
|
|
|
2502 |
_thriftId = thriftId;
|
|
|
2503 |
_fieldName = fieldName;
|
|
|
2504 |
}
|
|
|
2505 |
|
|
|
2506 |
public short getThriftFieldId() {
|
|
|
2507 |
return _thriftId;
|
|
|
2508 |
}
|
|
|
2509 |
|
|
|
2510 |
public String getFieldName() {
|
|
|
2511 |
return _fieldName;
|
|
|
2512 |
}
|
|
|
2513 |
}
|
|
|
2514 |
|
|
|
2515 |
// isset id assignments
|
|
|
2516 |
|
|
|
2517 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
2518 |
static {
|
|
|
2519 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2520 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2521 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2522 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2523 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(endMonitoringEntity_result.class, metaDataMap);
|
|
|
2524 |
}
|
|
|
2525 |
|
|
|
2526 |
public endMonitoringEntity_result() {
|
|
|
2527 |
}
|
|
|
2528 |
|
|
|
2529 |
public endMonitoringEntity_result(
|
|
|
2530 |
AlertServiceException e)
|
|
|
2531 |
{
|
|
|
2532 |
this();
|
|
|
2533 |
this.e = e;
|
|
|
2534 |
}
|
|
|
2535 |
|
|
|
2536 |
/**
|
|
|
2537 |
* Performs a deep copy on <i>other</i>.
|
|
|
2538 |
*/
|
|
|
2539 |
public endMonitoringEntity_result(endMonitoringEntity_result other) {
|
|
|
2540 |
if (other.isSetE()) {
|
|
|
2541 |
this.e = new AlertServiceException(other.e);
|
|
|
2542 |
}
|
|
|
2543 |
}
|
|
|
2544 |
|
|
|
2545 |
public endMonitoringEntity_result deepCopy() {
|
|
|
2546 |
return new endMonitoringEntity_result(this);
|
|
|
2547 |
}
|
|
|
2548 |
|
|
|
2549 |
@Override
|
|
|
2550 |
public void clear() {
|
|
|
2551 |
this.e = null;
|
|
|
2552 |
}
|
|
|
2553 |
|
|
|
2554 |
public AlertServiceException getE() {
|
|
|
2555 |
return this.e;
|
|
|
2556 |
}
|
|
|
2557 |
|
|
|
2558 |
public void setE(AlertServiceException e) {
|
|
|
2559 |
this.e = e;
|
|
|
2560 |
}
|
|
|
2561 |
|
|
|
2562 |
public void unsetE() {
|
|
|
2563 |
this.e = null;
|
|
|
2564 |
}
|
|
|
2565 |
|
|
|
2566 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
2567 |
public boolean isSetE() {
|
|
|
2568 |
return this.e != null;
|
|
|
2569 |
}
|
|
|
2570 |
|
|
|
2571 |
public void setEIsSet(boolean value) {
|
|
|
2572 |
if (!value) {
|
|
|
2573 |
this.e = null;
|
|
|
2574 |
}
|
|
|
2575 |
}
|
|
|
2576 |
|
|
|
2577 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2578 |
switch (field) {
|
|
|
2579 |
case E:
|
|
|
2580 |
if (value == null) {
|
|
|
2581 |
unsetE();
|
|
|
2582 |
} else {
|
|
|
2583 |
setE((AlertServiceException)value);
|
|
|
2584 |
}
|
|
|
2585 |
break;
|
|
|
2586 |
|
|
|
2587 |
}
|
|
|
2588 |
}
|
|
|
2589 |
|
|
|
2590 |
public Object getFieldValue(_Fields field) {
|
|
|
2591 |
switch (field) {
|
|
|
2592 |
case E:
|
|
|
2593 |
return getE();
|
|
|
2594 |
|
|
|
2595 |
}
|
|
|
2596 |
throw new IllegalStateException();
|
|
|
2597 |
}
|
|
|
2598 |
|
|
|
2599 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2600 |
public boolean isSet(_Fields field) {
|
|
|
2601 |
if (field == null) {
|
|
|
2602 |
throw new IllegalArgumentException();
|
|
|
2603 |
}
|
|
|
2604 |
|
|
|
2605 |
switch (field) {
|
|
|
2606 |
case E:
|
|
|
2607 |
return isSetE();
|
|
|
2608 |
}
|
|
|
2609 |
throw new IllegalStateException();
|
|
|
2610 |
}
|
|
|
2611 |
|
|
|
2612 |
@Override
|
|
|
2613 |
public boolean equals(Object that) {
|
|
|
2614 |
if (that == null)
|
|
|
2615 |
return false;
|
|
|
2616 |
if (that instanceof endMonitoringEntity_result)
|
|
|
2617 |
return this.equals((endMonitoringEntity_result)that);
|
|
|
2618 |
return false;
|
|
|
2619 |
}
|
|
|
2620 |
|
|
|
2621 |
public boolean equals(endMonitoringEntity_result that) {
|
|
|
2622 |
if (that == null)
|
|
|
2623 |
return false;
|
|
|
2624 |
|
|
|
2625 |
boolean this_present_e = true && this.isSetE();
|
|
|
2626 |
boolean that_present_e = true && that.isSetE();
|
|
|
2627 |
if (this_present_e || that_present_e) {
|
|
|
2628 |
if (!(this_present_e && that_present_e))
|
|
|
2629 |
return false;
|
|
|
2630 |
if (!this.e.equals(that.e))
|
|
|
2631 |
return false;
|
|
|
2632 |
}
|
|
|
2633 |
|
|
|
2634 |
return true;
|
|
|
2635 |
}
|
|
|
2636 |
|
|
|
2637 |
@Override
|
|
|
2638 |
public int hashCode() {
|
|
|
2639 |
return 0;
|
|
|
2640 |
}
|
|
|
2641 |
|
|
|
2642 |
public int compareTo(endMonitoringEntity_result other) {
|
|
|
2643 |
if (!getClass().equals(other.getClass())) {
|
|
|
2644 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2645 |
}
|
|
|
2646 |
|
|
|
2647 |
int lastComparison = 0;
|
|
|
2648 |
endMonitoringEntity_result typedOther = (endMonitoringEntity_result)other;
|
|
|
2649 |
|
|
|
2650 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
2651 |
if (lastComparison != 0) {
|
|
|
2652 |
return lastComparison;
|
|
|
2653 |
}
|
|
|
2654 |
if (isSetE()) {
|
|
|
2655 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
2656 |
if (lastComparison != 0) {
|
|
|
2657 |
return lastComparison;
|
|
|
2658 |
}
|
|
|
2659 |
}
|
|
|
2660 |
return 0;
|
|
|
2661 |
}
|
|
|
2662 |
|
|
|
2663 |
public _Fields fieldForId(int fieldId) {
|
|
|
2664 |
return _Fields.findByThriftId(fieldId);
|
|
|
2665 |
}
|
|
|
2666 |
|
|
|
2667 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2668 |
org.apache.thrift.protocol.TField field;
|
|
|
2669 |
iprot.readStructBegin();
|
|
|
2670 |
while (true)
|
|
|
2671 |
{
|
|
|
2672 |
field = iprot.readFieldBegin();
|
|
|
2673 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
2674 |
break;
|
|
|
2675 |
}
|
|
|
2676 |
switch (field.id) {
|
|
|
2677 |
case 1: // E
|
|
|
2678 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2679 |
this.e = new AlertServiceException();
|
|
|
2680 |
this.e.read(iprot);
|
|
|
2681 |
} else {
|
|
|
2682 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2683 |
}
|
|
|
2684 |
break;
|
|
|
2685 |
default:
|
|
|
2686 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2687 |
}
|
|
|
2688 |
iprot.readFieldEnd();
|
|
|
2689 |
}
|
|
|
2690 |
iprot.readStructEnd();
|
|
|
2691 |
validate();
|
|
|
2692 |
}
|
|
|
2693 |
|
|
|
2694 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2695 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2696 |
|
|
|
2697 |
if (this.isSetE()) {
|
|
|
2698 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
2699 |
this.e.write(oprot);
|
|
|
2700 |
oprot.writeFieldEnd();
|
|
|
2701 |
}
|
|
|
2702 |
oprot.writeFieldStop();
|
|
|
2703 |
oprot.writeStructEnd();
|
|
|
2704 |
}
|
|
|
2705 |
|
|
|
2706 |
@Override
|
|
|
2707 |
public String toString() {
|
|
|
2708 |
StringBuilder sb = new StringBuilder("endMonitoringEntity_result(");
|
|
|
2709 |
boolean first = true;
|
|
|
2710 |
|
|
|
2711 |
sb.append("e:");
|
|
|
2712 |
if (this.e == null) {
|
|
|
2713 |
sb.append("null");
|
|
|
2714 |
} else {
|
|
|
2715 |
sb.append(this.e);
|
|
|
2716 |
}
|
|
|
2717 |
first = false;
|
|
|
2718 |
sb.append(")");
|
|
|
2719 |
return sb.toString();
|
|
|
2720 |
}
|
|
|
2721 |
|
|
|
2722 |
public void validate() throws org.apache.thrift.TException {
|
|
|
2723 |
// check for required fields
|
|
|
2724 |
}
|
|
|
2725 |
|
|
|
2726 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2727 |
try {
|
|
|
2728 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2729 |
} catch (org.apache.thrift.TException te) {
|
|
|
2730 |
throw new java.io.IOException(te);
|
|
|
2731 |
}
|
|
|
2732 |
}
|
|
|
2733 |
|
|
|
2734 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2735 |
try {
|
|
|
2736 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2737 |
} catch (org.apache.thrift.TException te) {
|
|
|
2738 |
throw new java.io.IOException(te);
|
|
|
2739 |
}
|
|
|
2740 |
}
|
|
|
2741 |
|
|
|
2742 |
}
|
|
|
2743 |
|
|
|
2744 |
public static class getEntities_args implements org.apache.thrift.TBase<getEntities_args, getEntities_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2745 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntities_args");
|
|
|
2746 |
|
|
|
2747 |
private static final org.apache.thrift.protocol.TField SEARCH_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("searchFilter", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
2748 |
|
|
|
2749 |
private SearchFilter searchFilter; // required
|
|
|
2750 |
|
|
|
2751 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
2752 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
2753 |
SEARCH_FILTER((short)1, "searchFilter");
|
|
|
2754 |
|
|
|
2755 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2756 |
|
|
|
2757 |
static {
|
|
|
2758 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2759 |
byName.put(field.getFieldName(), field);
|
|
|
2760 |
}
|
|
|
2761 |
}
|
|
|
2762 |
|
|
|
2763 |
/**
|
|
|
2764 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2765 |
*/
|
|
|
2766 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
2767 |
switch(fieldId) {
|
|
|
2768 |
case 1: // SEARCH_FILTER
|
|
|
2769 |
return SEARCH_FILTER;
|
|
|
2770 |
default:
|
|
|
2771 |
return null;
|
|
|
2772 |
}
|
|
|
2773 |
}
|
|
|
2774 |
|
|
|
2775 |
/**
|
|
|
2776 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2777 |
* if it is not found.
|
|
|
2778 |
*/
|
|
|
2779 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2780 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2781 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2782 |
return fields;
|
|
|
2783 |
}
|
|
|
2784 |
|
|
|
2785 |
/**
|
|
|
2786 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2787 |
*/
|
|
|
2788 |
public static _Fields findByName(String name) {
|
|
|
2789 |
return byName.get(name);
|
|
|
2790 |
}
|
|
|
2791 |
|
|
|
2792 |
private final short _thriftId;
|
|
|
2793 |
private final String _fieldName;
|
|
|
2794 |
|
|
|
2795 |
_Fields(short thriftId, String fieldName) {
|
|
|
2796 |
_thriftId = thriftId;
|
|
|
2797 |
_fieldName = fieldName;
|
|
|
2798 |
}
|
|
|
2799 |
|
|
|
2800 |
public short getThriftFieldId() {
|
|
|
2801 |
return _thriftId;
|
|
|
2802 |
}
|
|
|
2803 |
|
|
|
2804 |
public String getFieldName() {
|
|
|
2805 |
return _fieldName;
|
|
|
2806 |
}
|
|
|
2807 |
}
|
|
|
2808 |
|
|
|
2809 |
// isset id assignments
|
|
|
2810 |
|
|
|
2811 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
2812 |
static {
|
|
|
2813 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2814 |
tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2815 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
|
|
|
2816 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2817 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntities_args.class, metaDataMap);
|
|
|
2818 |
}
|
|
|
2819 |
|
|
|
2820 |
public getEntities_args() {
|
|
|
2821 |
}
|
|
|
2822 |
|
|
|
2823 |
public getEntities_args(
|
|
|
2824 |
SearchFilter searchFilter)
|
|
|
2825 |
{
|
|
|
2826 |
this();
|
|
|
2827 |
this.searchFilter = searchFilter;
|
|
|
2828 |
}
|
|
|
2829 |
|
|
|
2830 |
/**
|
|
|
2831 |
* Performs a deep copy on <i>other</i>.
|
|
|
2832 |
*/
|
|
|
2833 |
public getEntities_args(getEntities_args other) {
|
|
|
2834 |
if (other.isSetSearchFilter()) {
|
|
|
2835 |
this.searchFilter = new SearchFilter(other.searchFilter);
|
|
|
2836 |
}
|
|
|
2837 |
}
|
|
|
2838 |
|
|
|
2839 |
public getEntities_args deepCopy() {
|
|
|
2840 |
return new getEntities_args(this);
|
|
|
2841 |
}
|
|
|
2842 |
|
|
|
2843 |
@Override
|
|
|
2844 |
public void clear() {
|
|
|
2845 |
this.searchFilter = null;
|
|
|
2846 |
}
|
|
|
2847 |
|
|
|
2848 |
public SearchFilter getSearchFilter() {
|
|
|
2849 |
return this.searchFilter;
|
|
|
2850 |
}
|
|
|
2851 |
|
|
|
2852 |
public void setSearchFilter(SearchFilter searchFilter) {
|
|
|
2853 |
this.searchFilter = searchFilter;
|
|
|
2854 |
}
|
|
|
2855 |
|
|
|
2856 |
public void unsetSearchFilter() {
|
|
|
2857 |
this.searchFilter = null;
|
|
|
2858 |
}
|
|
|
2859 |
|
|
|
2860 |
/** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
|
|
|
2861 |
public boolean isSetSearchFilter() {
|
|
|
2862 |
return this.searchFilter != null;
|
|
|
2863 |
}
|
|
|
2864 |
|
|
|
2865 |
public void setSearchFilterIsSet(boolean value) {
|
|
|
2866 |
if (!value) {
|
|
|
2867 |
this.searchFilter = null;
|
|
|
2868 |
}
|
|
|
2869 |
}
|
|
|
2870 |
|
|
|
2871 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2872 |
switch (field) {
|
|
|
2873 |
case SEARCH_FILTER:
|
|
|
2874 |
if (value == null) {
|
|
|
2875 |
unsetSearchFilter();
|
|
|
2876 |
} else {
|
|
|
2877 |
setSearchFilter((SearchFilter)value);
|
|
|
2878 |
}
|
|
|
2879 |
break;
|
|
|
2880 |
|
|
|
2881 |
}
|
|
|
2882 |
}
|
|
|
2883 |
|
|
|
2884 |
public Object getFieldValue(_Fields field) {
|
|
|
2885 |
switch (field) {
|
|
|
2886 |
case SEARCH_FILTER:
|
|
|
2887 |
return getSearchFilter();
|
|
|
2888 |
|
|
|
2889 |
}
|
|
|
2890 |
throw new IllegalStateException();
|
|
|
2891 |
}
|
|
|
2892 |
|
|
|
2893 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2894 |
public boolean isSet(_Fields field) {
|
|
|
2895 |
if (field == null) {
|
|
|
2896 |
throw new IllegalArgumentException();
|
|
|
2897 |
}
|
|
|
2898 |
|
|
|
2899 |
switch (field) {
|
|
|
2900 |
case SEARCH_FILTER:
|
|
|
2901 |
return isSetSearchFilter();
|
|
|
2902 |
}
|
|
|
2903 |
throw new IllegalStateException();
|
|
|
2904 |
}
|
|
|
2905 |
|
|
|
2906 |
@Override
|
|
|
2907 |
public boolean equals(Object that) {
|
|
|
2908 |
if (that == null)
|
|
|
2909 |
return false;
|
|
|
2910 |
if (that instanceof getEntities_args)
|
|
|
2911 |
return this.equals((getEntities_args)that);
|
|
|
2912 |
return false;
|
|
|
2913 |
}
|
|
|
2914 |
|
|
|
2915 |
public boolean equals(getEntities_args that) {
|
|
|
2916 |
if (that == null)
|
|
|
2917 |
return false;
|
|
|
2918 |
|
|
|
2919 |
boolean this_present_searchFilter = true && this.isSetSearchFilter();
|
|
|
2920 |
boolean that_present_searchFilter = true && that.isSetSearchFilter();
|
|
|
2921 |
if (this_present_searchFilter || that_present_searchFilter) {
|
|
|
2922 |
if (!(this_present_searchFilter && that_present_searchFilter))
|
|
|
2923 |
return false;
|
|
|
2924 |
if (!this.searchFilter.equals(that.searchFilter))
|
|
|
2925 |
return false;
|
|
|
2926 |
}
|
|
|
2927 |
|
|
|
2928 |
return true;
|
|
|
2929 |
}
|
|
|
2930 |
|
|
|
2931 |
@Override
|
|
|
2932 |
public int hashCode() {
|
|
|
2933 |
return 0;
|
|
|
2934 |
}
|
|
|
2935 |
|
|
|
2936 |
public int compareTo(getEntities_args other) {
|
|
|
2937 |
if (!getClass().equals(other.getClass())) {
|
|
|
2938 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2939 |
}
|
|
|
2940 |
|
|
|
2941 |
int lastComparison = 0;
|
|
|
2942 |
getEntities_args typedOther = (getEntities_args)other;
|
|
|
2943 |
|
|
|
2944 |
lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
|
|
|
2945 |
if (lastComparison != 0) {
|
|
|
2946 |
return lastComparison;
|
|
|
2947 |
}
|
|
|
2948 |
if (isSetSearchFilter()) {
|
|
|
2949 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
|
|
|
2950 |
if (lastComparison != 0) {
|
|
|
2951 |
return lastComparison;
|
|
|
2952 |
}
|
|
|
2953 |
}
|
|
|
2954 |
return 0;
|
|
|
2955 |
}
|
|
|
2956 |
|
|
|
2957 |
public _Fields fieldForId(int fieldId) {
|
|
|
2958 |
return _Fields.findByThriftId(fieldId);
|
|
|
2959 |
}
|
|
|
2960 |
|
|
|
2961 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2962 |
org.apache.thrift.protocol.TField field;
|
|
|
2963 |
iprot.readStructBegin();
|
|
|
2964 |
while (true)
|
|
|
2965 |
{
|
|
|
2966 |
field = iprot.readFieldBegin();
|
|
|
2967 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
2968 |
break;
|
|
|
2969 |
}
|
|
|
2970 |
switch (field.id) {
|
|
|
2971 |
case 1: // SEARCH_FILTER
|
|
|
2972 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2973 |
this.searchFilter = new SearchFilter();
|
|
|
2974 |
this.searchFilter.read(iprot);
|
|
|
2975 |
} else {
|
|
|
2976 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2977 |
}
|
|
|
2978 |
break;
|
|
|
2979 |
default:
|
|
|
2980 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2981 |
}
|
|
|
2982 |
iprot.readFieldEnd();
|
|
|
2983 |
}
|
|
|
2984 |
iprot.readStructEnd();
|
|
|
2985 |
validate();
|
|
|
2986 |
}
|
|
|
2987 |
|
|
|
2988 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2989 |
validate();
|
|
|
2990 |
|
|
|
2991 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2992 |
if (this.searchFilter != null) {
|
|
|
2993 |
oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
|
|
|
2994 |
this.searchFilter.write(oprot);
|
|
|
2995 |
oprot.writeFieldEnd();
|
|
|
2996 |
}
|
|
|
2997 |
oprot.writeFieldStop();
|
|
|
2998 |
oprot.writeStructEnd();
|
|
|
2999 |
}
|
|
|
3000 |
|
|
|
3001 |
@Override
|
|
|
3002 |
public String toString() {
|
|
|
3003 |
StringBuilder sb = new StringBuilder("getEntities_args(");
|
|
|
3004 |
boolean first = true;
|
|
|
3005 |
|
|
|
3006 |
sb.append("searchFilter:");
|
|
|
3007 |
if (this.searchFilter == null) {
|
|
|
3008 |
sb.append("null");
|
|
|
3009 |
} else {
|
|
|
3010 |
sb.append(this.searchFilter);
|
|
|
3011 |
}
|
|
|
3012 |
first = false;
|
|
|
3013 |
sb.append(")");
|
|
|
3014 |
return sb.toString();
|
|
|
3015 |
}
|
|
|
3016 |
|
|
|
3017 |
public void validate() throws org.apache.thrift.TException {
|
|
|
3018 |
// check for required fields
|
|
|
3019 |
}
|
|
|
3020 |
|
|
|
3021 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3022 |
try {
|
|
|
3023 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3024 |
} catch (org.apache.thrift.TException te) {
|
|
|
3025 |
throw new java.io.IOException(te);
|
|
|
3026 |
}
|
|
|
3027 |
}
|
|
|
3028 |
|
|
|
3029 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3030 |
try {
|
|
|
3031 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3032 |
} catch (org.apache.thrift.TException te) {
|
|
|
3033 |
throw new java.io.IOException(te);
|
|
|
3034 |
}
|
|
|
3035 |
}
|
|
|
3036 |
|
|
|
3037 |
}
|
|
|
3038 |
|
|
|
3039 |
public static class getEntities_result implements org.apache.thrift.TBase<getEntities_result, getEntities_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3040 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntities_result");
|
|
|
3041 |
|
|
|
3042 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
3043 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
3044 |
|
|
|
3045 |
private List<MonitoredEntity> success; // required
|
|
|
3046 |
private AlertServiceException e; // required
|
|
|
3047 |
|
|
|
3048 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
3049 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
3050 |
SUCCESS((short)0, "success"),
|
|
|
3051 |
E((short)1, "e");
|
|
|
3052 |
|
|
|
3053 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3054 |
|
|
|
3055 |
static {
|
|
|
3056 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3057 |
byName.put(field.getFieldName(), field);
|
|
|
3058 |
}
|
|
|
3059 |
}
|
|
|
3060 |
|
|
|
3061 |
/**
|
|
|
3062 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3063 |
*/
|
|
|
3064 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
3065 |
switch(fieldId) {
|
|
|
3066 |
case 0: // SUCCESS
|
|
|
3067 |
return SUCCESS;
|
|
|
3068 |
case 1: // E
|
|
|
3069 |
return E;
|
|
|
3070 |
default:
|
|
|
3071 |
return null;
|
|
|
3072 |
}
|
|
|
3073 |
}
|
|
|
3074 |
|
|
|
3075 |
/**
|
|
|
3076 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3077 |
* if it is not found.
|
|
|
3078 |
*/
|
|
|
3079 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3080 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3081 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3082 |
return fields;
|
|
|
3083 |
}
|
|
|
3084 |
|
|
|
3085 |
/**
|
|
|
3086 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3087 |
*/
|
|
|
3088 |
public static _Fields findByName(String name) {
|
|
|
3089 |
return byName.get(name);
|
|
|
3090 |
}
|
|
|
3091 |
|
|
|
3092 |
private final short _thriftId;
|
|
|
3093 |
private final String _fieldName;
|
|
|
3094 |
|
|
|
3095 |
_Fields(short thriftId, String fieldName) {
|
|
|
3096 |
_thriftId = thriftId;
|
|
|
3097 |
_fieldName = fieldName;
|
|
|
3098 |
}
|
|
|
3099 |
|
|
|
3100 |
public short getThriftFieldId() {
|
|
|
3101 |
return _thriftId;
|
|
|
3102 |
}
|
|
|
3103 |
|
|
|
3104 |
public String getFieldName() {
|
|
|
3105 |
return _fieldName;
|
|
|
3106 |
}
|
|
|
3107 |
}
|
|
|
3108 |
|
|
|
3109 |
// isset id assignments
|
|
|
3110 |
|
|
|
3111 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
3112 |
static {
|
|
|
3113 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3114 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3115 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
3116 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MonitoredEntity.class))));
|
|
|
3117 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3118 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3119 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3120 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntities_result.class, metaDataMap);
|
|
|
3121 |
}
|
|
|
3122 |
|
|
|
3123 |
public getEntities_result() {
|
|
|
3124 |
}
|
|
|
3125 |
|
|
|
3126 |
public getEntities_result(
|
|
|
3127 |
List<MonitoredEntity> success,
|
|
|
3128 |
AlertServiceException e)
|
|
|
3129 |
{
|
|
|
3130 |
this();
|
|
|
3131 |
this.success = success;
|
|
|
3132 |
this.e = e;
|
|
|
3133 |
}
|
|
|
3134 |
|
|
|
3135 |
/**
|
|
|
3136 |
* Performs a deep copy on <i>other</i>.
|
|
|
3137 |
*/
|
|
|
3138 |
public getEntities_result(getEntities_result other) {
|
|
|
3139 |
if (other.isSetSuccess()) {
|
|
|
3140 |
List<MonitoredEntity> __this__success = new ArrayList<MonitoredEntity>();
|
|
|
3141 |
for (MonitoredEntity other_element : other.success) {
|
|
|
3142 |
__this__success.add(new MonitoredEntity(other_element));
|
|
|
3143 |
}
|
|
|
3144 |
this.success = __this__success;
|
|
|
3145 |
}
|
|
|
3146 |
if (other.isSetE()) {
|
|
|
3147 |
this.e = new AlertServiceException(other.e);
|
|
|
3148 |
}
|
|
|
3149 |
}
|
|
|
3150 |
|
|
|
3151 |
public getEntities_result deepCopy() {
|
|
|
3152 |
return new getEntities_result(this);
|
|
|
3153 |
}
|
|
|
3154 |
|
|
|
3155 |
@Override
|
|
|
3156 |
public void clear() {
|
|
|
3157 |
this.success = null;
|
|
|
3158 |
this.e = null;
|
|
|
3159 |
}
|
|
|
3160 |
|
|
|
3161 |
public int getSuccessSize() {
|
|
|
3162 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
3163 |
}
|
|
|
3164 |
|
|
|
3165 |
public java.util.Iterator<MonitoredEntity> getSuccessIterator() {
|
|
|
3166 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
3167 |
}
|
|
|
3168 |
|
|
|
3169 |
public void addToSuccess(MonitoredEntity elem) {
|
|
|
3170 |
if (this.success == null) {
|
|
|
3171 |
this.success = new ArrayList<MonitoredEntity>();
|
|
|
3172 |
}
|
|
|
3173 |
this.success.add(elem);
|
|
|
3174 |
}
|
|
|
3175 |
|
|
|
3176 |
public List<MonitoredEntity> getSuccess() {
|
|
|
3177 |
return this.success;
|
|
|
3178 |
}
|
|
|
3179 |
|
|
|
3180 |
public void setSuccess(List<MonitoredEntity> success) {
|
|
|
3181 |
this.success = success;
|
|
|
3182 |
}
|
|
|
3183 |
|
|
|
3184 |
public void unsetSuccess() {
|
|
|
3185 |
this.success = null;
|
|
|
3186 |
}
|
|
|
3187 |
|
|
|
3188 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
3189 |
public boolean isSetSuccess() {
|
|
|
3190 |
return this.success != null;
|
|
|
3191 |
}
|
|
|
3192 |
|
|
|
3193 |
public void setSuccessIsSet(boolean value) {
|
|
|
3194 |
if (!value) {
|
|
|
3195 |
this.success = null;
|
|
|
3196 |
}
|
|
|
3197 |
}
|
|
|
3198 |
|
|
|
3199 |
public AlertServiceException getE() {
|
|
|
3200 |
return this.e;
|
|
|
3201 |
}
|
|
|
3202 |
|
|
|
3203 |
public void setE(AlertServiceException e) {
|
|
|
3204 |
this.e = e;
|
|
|
3205 |
}
|
|
|
3206 |
|
|
|
3207 |
public void unsetE() {
|
|
|
3208 |
this.e = null;
|
|
|
3209 |
}
|
|
|
3210 |
|
|
|
3211 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
3212 |
public boolean isSetE() {
|
|
|
3213 |
return this.e != null;
|
|
|
3214 |
}
|
|
|
3215 |
|
|
|
3216 |
public void setEIsSet(boolean value) {
|
|
|
3217 |
if (!value) {
|
|
|
3218 |
this.e = null;
|
|
|
3219 |
}
|
|
|
3220 |
}
|
|
|
3221 |
|
|
|
3222 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3223 |
switch (field) {
|
|
|
3224 |
case SUCCESS:
|
|
|
3225 |
if (value == null) {
|
|
|
3226 |
unsetSuccess();
|
|
|
3227 |
} else {
|
|
|
3228 |
setSuccess((List<MonitoredEntity>)value);
|
|
|
3229 |
}
|
|
|
3230 |
break;
|
|
|
3231 |
|
|
|
3232 |
case E:
|
|
|
3233 |
if (value == null) {
|
|
|
3234 |
unsetE();
|
|
|
3235 |
} else {
|
|
|
3236 |
setE((AlertServiceException)value);
|
|
|
3237 |
}
|
|
|
3238 |
break;
|
|
|
3239 |
|
|
|
3240 |
}
|
|
|
3241 |
}
|
|
|
3242 |
|
|
|
3243 |
public Object getFieldValue(_Fields field) {
|
|
|
3244 |
switch (field) {
|
|
|
3245 |
case SUCCESS:
|
|
|
3246 |
return getSuccess();
|
|
|
3247 |
|
|
|
3248 |
case E:
|
|
|
3249 |
return getE();
|
|
|
3250 |
|
|
|
3251 |
}
|
|
|
3252 |
throw new IllegalStateException();
|
|
|
3253 |
}
|
|
|
3254 |
|
|
|
3255 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3256 |
public boolean isSet(_Fields field) {
|
|
|
3257 |
if (field == null) {
|
|
|
3258 |
throw new IllegalArgumentException();
|
|
|
3259 |
}
|
|
|
3260 |
|
|
|
3261 |
switch (field) {
|
|
|
3262 |
case SUCCESS:
|
|
|
3263 |
return isSetSuccess();
|
|
|
3264 |
case E:
|
|
|
3265 |
return isSetE();
|
|
|
3266 |
}
|
|
|
3267 |
throw new IllegalStateException();
|
|
|
3268 |
}
|
|
|
3269 |
|
|
|
3270 |
@Override
|
|
|
3271 |
public boolean equals(Object that) {
|
|
|
3272 |
if (that == null)
|
|
|
3273 |
return false;
|
|
|
3274 |
if (that instanceof getEntities_result)
|
|
|
3275 |
return this.equals((getEntities_result)that);
|
|
|
3276 |
return false;
|
|
|
3277 |
}
|
|
|
3278 |
|
|
|
3279 |
public boolean equals(getEntities_result that) {
|
|
|
3280 |
if (that == null)
|
|
|
3281 |
return false;
|
|
|
3282 |
|
|
|
3283 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3284 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3285 |
if (this_present_success || that_present_success) {
|
|
|
3286 |
if (!(this_present_success && that_present_success))
|
|
|
3287 |
return false;
|
|
|
3288 |
if (!this.success.equals(that.success))
|
|
|
3289 |
return false;
|
|
|
3290 |
}
|
|
|
3291 |
|
|
|
3292 |
boolean this_present_e = true && this.isSetE();
|
|
|
3293 |
boolean that_present_e = true && that.isSetE();
|
|
|
3294 |
if (this_present_e || that_present_e) {
|
|
|
3295 |
if (!(this_present_e && that_present_e))
|
|
|
3296 |
return false;
|
|
|
3297 |
if (!this.e.equals(that.e))
|
|
|
3298 |
return false;
|
|
|
3299 |
}
|
|
|
3300 |
|
|
|
3301 |
return true;
|
|
|
3302 |
}
|
|
|
3303 |
|
|
|
3304 |
@Override
|
|
|
3305 |
public int hashCode() {
|
|
|
3306 |
return 0;
|
|
|
3307 |
}
|
|
|
3308 |
|
|
|
3309 |
public int compareTo(getEntities_result other) {
|
|
|
3310 |
if (!getClass().equals(other.getClass())) {
|
|
|
3311 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3312 |
}
|
|
|
3313 |
|
|
|
3314 |
int lastComparison = 0;
|
|
|
3315 |
getEntities_result typedOther = (getEntities_result)other;
|
|
|
3316 |
|
|
|
3317 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
3318 |
if (lastComparison != 0) {
|
|
|
3319 |
return lastComparison;
|
|
|
3320 |
}
|
|
|
3321 |
if (isSetSuccess()) {
|
|
|
3322 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3323 |
if (lastComparison != 0) {
|
|
|
3324 |
return lastComparison;
|
|
|
3325 |
}
|
|
|
3326 |
}
|
|
|
3327 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
3328 |
if (lastComparison != 0) {
|
|
|
3329 |
return lastComparison;
|
|
|
3330 |
}
|
|
|
3331 |
if (isSetE()) {
|
|
|
3332 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
3333 |
if (lastComparison != 0) {
|
|
|
3334 |
return lastComparison;
|
|
|
3335 |
}
|
|
|
3336 |
}
|
|
|
3337 |
return 0;
|
|
|
3338 |
}
|
|
|
3339 |
|
|
|
3340 |
public _Fields fieldForId(int fieldId) {
|
|
|
3341 |
return _Fields.findByThriftId(fieldId);
|
|
|
3342 |
}
|
|
|
3343 |
|
|
|
3344 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3345 |
org.apache.thrift.protocol.TField field;
|
|
|
3346 |
iprot.readStructBegin();
|
|
|
3347 |
while (true)
|
|
|
3348 |
{
|
|
|
3349 |
field = iprot.readFieldBegin();
|
|
|
3350 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
3351 |
break;
|
|
|
3352 |
}
|
|
|
3353 |
switch (field.id) {
|
|
|
3354 |
case 0: // SUCCESS
|
|
|
3355 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
3356 |
{
|
|
|
3357 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
3358 |
this.success = new ArrayList<MonitoredEntity>(_list0.size);
|
|
|
3359 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
|
|
3360 |
{
|
|
|
3361 |
MonitoredEntity _elem2; // required
|
|
|
3362 |
_elem2 = new MonitoredEntity();
|
|
|
3363 |
_elem2.read(iprot);
|
|
|
3364 |
this.success.add(_elem2);
|
|
|
3365 |
}
|
|
|
3366 |
iprot.readListEnd();
|
|
|
3367 |
}
|
|
|
3368 |
} else {
|
|
|
3369 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3370 |
}
|
|
|
3371 |
break;
|
|
|
3372 |
case 1: // E
|
|
|
3373 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3374 |
this.e = new AlertServiceException();
|
|
|
3375 |
this.e.read(iprot);
|
|
|
3376 |
} else {
|
|
|
3377 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3378 |
}
|
|
|
3379 |
break;
|
|
|
3380 |
default:
|
|
|
3381 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3382 |
}
|
|
|
3383 |
iprot.readFieldEnd();
|
|
|
3384 |
}
|
|
|
3385 |
iprot.readStructEnd();
|
|
|
3386 |
validate();
|
|
|
3387 |
}
|
|
|
3388 |
|
|
|
3389 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
3390 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3391 |
|
|
|
3392 |
if (this.isSetSuccess()) {
|
|
|
3393 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3394 |
{
|
|
|
3395 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
3396 |
for (MonitoredEntity _iter3 : this.success)
|
|
|
3397 |
{
|
|
|
3398 |
_iter3.write(oprot);
|
|
|
3399 |
}
|
|
|
3400 |
oprot.writeListEnd();
|
|
|
3401 |
}
|
|
|
3402 |
oprot.writeFieldEnd();
|
|
|
3403 |
} else if (this.isSetE()) {
|
|
|
3404 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
3405 |
this.e.write(oprot);
|
|
|
3406 |
oprot.writeFieldEnd();
|
|
|
3407 |
}
|
|
|
3408 |
oprot.writeFieldStop();
|
|
|
3409 |
oprot.writeStructEnd();
|
|
|
3410 |
}
|
|
|
3411 |
|
|
|
3412 |
@Override
|
|
|
3413 |
public String toString() {
|
|
|
3414 |
StringBuilder sb = new StringBuilder("getEntities_result(");
|
|
|
3415 |
boolean first = true;
|
|
|
3416 |
|
|
|
3417 |
sb.append("success:");
|
|
|
3418 |
if (this.success == null) {
|
|
|
3419 |
sb.append("null");
|
|
|
3420 |
} else {
|
|
|
3421 |
sb.append(this.success);
|
|
|
3422 |
}
|
|
|
3423 |
first = false;
|
|
|
3424 |
if (!first) sb.append(", ");
|
|
|
3425 |
sb.append("e:");
|
|
|
3426 |
if (this.e == null) {
|
|
|
3427 |
sb.append("null");
|
|
|
3428 |
} else {
|
|
|
3429 |
sb.append(this.e);
|
|
|
3430 |
}
|
|
|
3431 |
first = false;
|
|
|
3432 |
sb.append(")");
|
|
|
3433 |
return sb.toString();
|
|
|
3434 |
}
|
|
|
3435 |
|
|
|
3436 |
public void validate() throws org.apache.thrift.TException {
|
|
|
3437 |
// check for required fields
|
|
|
3438 |
}
|
|
|
3439 |
|
|
|
3440 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3441 |
try {
|
|
|
3442 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3443 |
} catch (org.apache.thrift.TException te) {
|
|
|
3444 |
throw new java.io.IOException(te);
|
|
|
3445 |
}
|
|
|
3446 |
}
|
|
|
3447 |
|
|
|
3448 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3449 |
try {
|
|
|
3450 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3451 |
} catch (org.apache.thrift.TException te) {
|
|
|
3452 |
throw new java.io.IOException(te);
|
|
|
3453 |
}
|
|
|
3454 |
}
|
|
|
3455 |
|
|
|
3456 |
}
|
|
|
3457 |
|
|
|
3458 |
public static class getAlertedEntities_args implements org.apache.thrift.TBase<getAlertedEntities_args, getAlertedEntities_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3459 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlertedEntities_args");
|
|
|
3460 |
|
|
|
3461 |
private static final org.apache.thrift.protocol.TField SEARCH_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("searchFilter", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
3462 |
|
|
|
3463 |
private SearchFilter searchFilter; // required
|
|
|
3464 |
|
|
|
3465 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
3466 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
3467 |
SEARCH_FILTER((short)1, "searchFilter");
|
|
|
3468 |
|
|
|
3469 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3470 |
|
|
|
3471 |
static {
|
|
|
3472 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3473 |
byName.put(field.getFieldName(), field);
|
|
|
3474 |
}
|
|
|
3475 |
}
|
|
|
3476 |
|
|
|
3477 |
/**
|
|
|
3478 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3479 |
*/
|
|
|
3480 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
3481 |
switch(fieldId) {
|
|
|
3482 |
case 1: // SEARCH_FILTER
|
|
|
3483 |
return SEARCH_FILTER;
|
|
|
3484 |
default:
|
|
|
3485 |
return null;
|
|
|
3486 |
}
|
|
|
3487 |
}
|
|
|
3488 |
|
|
|
3489 |
/**
|
|
|
3490 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3491 |
* if it is not found.
|
|
|
3492 |
*/
|
|
|
3493 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3494 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3495 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3496 |
return fields;
|
|
|
3497 |
}
|
|
|
3498 |
|
|
|
3499 |
/**
|
|
|
3500 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3501 |
*/
|
|
|
3502 |
public static _Fields findByName(String name) {
|
|
|
3503 |
return byName.get(name);
|
|
|
3504 |
}
|
|
|
3505 |
|
|
|
3506 |
private final short _thriftId;
|
|
|
3507 |
private final String _fieldName;
|
|
|
3508 |
|
|
|
3509 |
_Fields(short thriftId, String fieldName) {
|
|
|
3510 |
_thriftId = thriftId;
|
|
|
3511 |
_fieldName = fieldName;
|
|
|
3512 |
}
|
|
|
3513 |
|
|
|
3514 |
public short getThriftFieldId() {
|
|
|
3515 |
return _thriftId;
|
|
|
3516 |
}
|
|
|
3517 |
|
|
|
3518 |
public String getFieldName() {
|
|
|
3519 |
return _fieldName;
|
|
|
3520 |
}
|
|
|
3521 |
}
|
|
|
3522 |
|
|
|
3523 |
// isset id assignments
|
|
|
3524 |
|
|
|
3525 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
3526 |
static {
|
|
|
3527 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3528 |
tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3529 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
|
|
|
3530 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3531 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlertedEntities_args.class, metaDataMap);
|
|
|
3532 |
}
|
|
|
3533 |
|
|
|
3534 |
public getAlertedEntities_args() {
|
|
|
3535 |
}
|
|
|
3536 |
|
|
|
3537 |
public getAlertedEntities_args(
|
|
|
3538 |
SearchFilter searchFilter)
|
|
|
3539 |
{
|
|
|
3540 |
this();
|
|
|
3541 |
this.searchFilter = searchFilter;
|
|
|
3542 |
}
|
|
|
3543 |
|
|
|
3544 |
/**
|
|
|
3545 |
* Performs a deep copy on <i>other</i>.
|
|
|
3546 |
*/
|
|
|
3547 |
public getAlertedEntities_args(getAlertedEntities_args other) {
|
|
|
3548 |
if (other.isSetSearchFilter()) {
|
|
|
3549 |
this.searchFilter = new SearchFilter(other.searchFilter);
|
|
|
3550 |
}
|
|
|
3551 |
}
|
|
|
3552 |
|
|
|
3553 |
public getAlertedEntities_args deepCopy() {
|
|
|
3554 |
return new getAlertedEntities_args(this);
|
|
|
3555 |
}
|
|
|
3556 |
|
|
|
3557 |
@Override
|
|
|
3558 |
public void clear() {
|
|
|
3559 |
this.searchFilter = null;
|
|
|
3560 |
}
|
|
|
3561 |
|
|
|
3562 |
public SearchFilter getSearchFilter() {
|
|
|
3563 |
return this.searchFilter;
|
|
|
3564 |
}
|
|
|
3565 |
|
|
|
3566 |
public void setSearchFilter(SearchFilter searchFilter) {
|
|
|
3567 |
this.searchFilter = searchFilter;
|
|
|
3568 |
}
|
|
|
3569 |
|
|
|
3570 |
public void unsetSearchFilter() {
|
|
|
3571 |
this.searchFilter = null;
|
|
|
3572 |
}
|
|
|
3573 |
|
|
|
3574 |
/** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
|
|
|
3575 |
public boolean isSetSearchFilter() {
|
|
|
3576 |
return this.searchFilter != null;
|
|
|
3577 |
}
|
|
|
3578 |
|
|
|
3579 |
public void setSearchFilterIsSet(boolean value) {
|
|
|
3580 |
if (!value) {
|
|
|
3581 |
this.searchFilter = null;
|
|
|
3582 |
}
|
|
|
3583 |
}
|
|
|
3584 |
|
|
|
3585 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3586 |
switch (field) {
|
|
|
3587 |
case SEARCH_FILTER:
|
|
|
3588 |
if (value == null) {
|
|
|
3589 |
unsetSearchFilter();
|
|
|
3590 |
} else {
|
|
|
3591 |
setSearchFilter((SearchFilter)value);
|
|
|
3592 |
}
|
|
|
3593 |
break;
|
|
|
3594 |
|
|
|
3595 |
}
|
|
|
3596 |
}
|
|
|
3597 |
|
|
|
3598 |
public Object getFieldValue(_Fields field) {
|
|
|
3599 |
switch (field) {
|
|
|
3600 |
case SEARCH_FILTER:
|
|
|
3601 |
return getSearchFilter();
|
|
|
3602 |
|
|
|
3603 |
}
|
|
|
3604 |
throw new IllegalStateException();
|
|
|
3605 |
}
|
|
|
3606 |
|
|
|
3607 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3608 |
public boolean isSet(_Fields field) {
|
|
|
3609 |
if (field == null) {
|
|
|
3610 |
throw new IllegalArgumentException();
|
|
|
3611 |
}
|
|
|
3612 |
|
|
|
3613 |
switch (field) {
|
|
|
3614 |
case SEARCH_FILTER:
|
|
|
3615 |
return isSetSearchFilter();
|
|
|
3616 |
}
|
|
|
3617 |
throw new IllegalStateException();
|
|
|
3618 |
}
|
|
|
3619 |
|
|
|
3620 |
@Override
|
|
|
3621 |
public boolean equals(Object that) {
|
|
|
3622 |
if (that == null)
|
|
|
3623 |
return false;
|
|
|
3624 |
if (that instanceof getAlertedEntities_args)
|
|
|
3625 |
return this.equals((getAlertedEntities_args)that);
|
|
|
3626 |
return false;
|
|
|
3627 |
}
|
|
|
3628 |
|
|
|
3629 |
public boolean equals(getAlertedEntities_args that) {
|
|
|
3630 |
if (that == null)
|
|
|
3631 |
return false;
|
|
|
3632 |
|
|
|
3633 |
boolean this_present_searchFilter = true && this.isSetSearchFilter();
|
|
|
3634 |
boolean that_present_searchFilter = true && that.isSetSearchFilter();
|
|
|
3635 |
if (this_present_searchFilter || that_present_searchFilter) {
|
|
|
3636 |
if (!(this_present_searchFilter && that_present_searchFilter))
|
|
|
3637 |
return false;
|
|
|
3638 |
if (!this.searchFilter.equals(that.searchFilter))
|
|
|
3639 |
return false;
|
|
|
3640 |
}
|
|
|
3641 |
|
|
|
3642 |
return true;
|
|
|
3643 |
}
|
|
|
3644 |
|
|
|
3645 |
@Override
|
|
|
3646 |
public int hashCode() {
|
|
|
3647 |
return 0;
|
|
|
3648 |
}
|
|
|
3649 |
|
|
|
3650 |
public int compareTo(getAlertedEntities_args other) {
|
|
|
3651 |
if (!getClass().equals(other.getClass())) {
|
|
|
3652 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3653 |
}
|
|
|
3654 |
|
|
|
3655 |
int lastComparison = 0;
|
|
|
3656 |
getAlertedEntities_args typedOther = (getAlertedEntities_args)other;
|
|
|
3657 |
|
|
|
3658 |
lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
|
|
|
3659 |
if (lastComparison != 0) {
|
|
|
3660 |
return lastComparison;
|
|
|
3661 |
}
|
|
|
3662 |
if (isSetSearchFilter()) {
|
|
|
3663 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
|
|
|
3664 |
if (lastComparison != 0) {
|
|
|
3665 |
return lastComparison;
|
|
|
3666 |
}
|
|
|
3667 |
}
|
|
|
3668 |
return 0;
|
|
|
3669 |
}
|
|
|
3670 |
|
|
|
3671 |
public _Fields fieldForId(int fieldId) {
|
|
|
3672 |
return _Fields.findByThriftId(fieldId);
|
|
|
3673 |
}
|
|
|
3674 |
|
|
|
3675 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3676 |
org.apache.thrift.protocol.TField field;
|
|
|
3677 |
iprot.readStructBegin();
|
|
|
3678 |
while (true)
|
|
|
3679 |
{
|
|
|
3680 |
field = iprot.readFieldBegin();
|
|
|
3681 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
3682 |
break;
|
|
|
3683 |
}
|
|
|
3684 |
switch (field.id) {
|
|
|
3685 |
case 1: // SEARCH_FILTER
|
|
|
3686 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3687 |
this.searchFilter = new SearchFilter();
|
|
|
3688 |
this.searchFilter.read(iprot);
|
|
|
3689 |
} else {
|
|
|
3690 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3691 |
}
|
|
|
3692 |
break;
|
|
|
3693 |
default:
|
|
|
3694 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3695 |
}
|
|
|
3696 |
iprot.readFieldEnd();
|
|
|
3697 |
}
|
|
|
3698 |
iprot.readStructEnd();
|
|
|
3699 |
validate();
|
|
|
3700 |
}
|
|
|
3701 |
|
|
|
3702 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
3703 |
validate();
|
|
|
3704 |
|
|
|
3705 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3706 |
if (this.searchFilter != null) {
|
|
|
3707 |
oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
|
|
|
3708 |
this.searchFilter.write(oprot);
|
|
|
3709 |
oprot.writeFieldEnd();
|
|
|
3710 |
}
|
|
|
3711 |
oprot.writeFieldStop();
|
|
|
3712 |
oprot.writeStructEnd();
|
|
|
3713 |
}
|
|
|
3714 |
|
|
|
3715 |
@Override
|
|
|
3716 |
public String toString() {
|
|
|
3717 |
StringBuilder sb = new StringBuilder("getAlertedEntities_args(");
|
|
|
3718 |
boolean first = true;
|
|
|
3719 |
|
|
|
3720 |
sb.append("searchFilter:");
|
|
|
3721 |
if (this.searchFilter == null) {
|
|
|
3722 |
sb.append("null");
|
|
|
3723 |
} else {
|
|
|
3724 |
sb.append(this.searchFilter);
|
|
|
3725 |
}
|
|
|
3726 |
first = false;
|
|
|
3727 |
sb.append(")");
|
|
|
3728 |
return sb.toString();
|
|
|
3729 |
}
|
|
|
3730 |
|
|
|
3731 |
public void validate() throws org.apache.thrift.TException {
|
|
|
3732 |
// check for required fields
|
|
|
3733 |
}
|
|
|
3734 |
|
|
|
3735 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3736 |
try {
|
|
|
3737 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3738 |
} catch (org.apache.thrift.TException te) {
|
|
|
3739 |
throw new java.io.IOException(te);
|
|
|
3740 |
}
|
|
|
3741 |
}
|
|
|
3742 |
|
|
|
3743 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3744 |
try {
|
|
|
3745 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3746 |
} catch (org.apache.thrift.TException te) {
|
|
|
3747 |
throw new java.io.IOException(te);
|
|
|
3748 |
}
|
|
|
3749 |
}
|
|
|
3750 |
|
|
|
3751 |
}
|
|
|
3752 |
|
|
|
3753 |
public static class getAlertedEntities_result implements org.apache.thrift.TBase<getAlertedEntities_result, getAlertedEntities_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3754 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlertedEntities_result");
|
|
|
3755 |
|
|
|
3756 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
3757 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
3758 |
|
|
|
3759 |
private List<AlertedEntity> success; // required
|
|
|
3760 |
private AlertServiceException e; // required
|
|
|
3761 |
|
|
|
3762 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
3763 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
3764 |
SUCCESS((short)0, "success"),
|
|
|
3765 |
E((short)1, "e");
|
|
|
3766 |
|
|
|
3767 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3768 |
|
|
|
3769 |
static {
|
|
|
3770 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3771 |
byName.put(field.getFieldName(), field);
|
|
|
3772 |
}
|
|
|
3773 |
}
|
|
|
3774 |
|
|
|
3775 |
/**
|
|
|
3776 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3777 |
*/
|
|
|
3778 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
3779 |
switch(fieldId) {
|
|
|
3780 |
case 0: // SUCCESS
|
|
|
3781 |
return SUCCESS;
|
|
|
3782 |
case 1: // E
|
|
|
3783 |
return E;
|
|
|
3784 |
default:
|
|
|
3785 |
return null;
|
|
|
3786 |
}
|
|
|
3787 |
}
|
|
|
3788 |
|
|
|
3789 |
/**
|
|
|
3790 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3791 |
* if it is not found.
|
|
|
3792 |
*/
|
|
|
3793 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3794 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3795 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3796 |
return fields;
|
|
|
3797 |
}
|
|
|
3798 |
|
|
|
3799 |
/**
|
|
|
3800 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3801 |
*/
|
|
|
3802 |
public static _Fields findByName(String name) {
|
|
|
3803 |
return byName.get(name);
|
|
|
3804 |
}
|
|
|
3805 |
|
|
|
3806 |
private final short _thriftId;
|
|
|
3807 |
private final String _fieldName;
|
|
|
3808 |
|
|
|
3809 |
_Fields(short thriftId, String fieldName) {
|
|
|
3810 |
_thriftId = thriftId;
|
|
|
3811 |
_fieldName = fieldName;
|
|
|
3812 |
}
|
|
|
3813 |
|
|
|
3814 |
public short getThriftFieldId() {
|
|
|
3815 |
return _thriftId;
|
|
|
3816 |
}
|
|
|
3817 |
|
|
|
3818 |
public String getFieldName() {
|
|
|
3819 |
return _fieldName;
|
|
|
3820 |
}
|
|
|
3821 |
}
|
|
|
3822 |
|
|
|
3823 |
// isset id assignments
|
|
|
3824 |
|
|
|
3825 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
3826 |
static {
|
|
|
3827 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3828 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3829 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
3830 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlertedEntity.class))));
|
|
|
3831 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3832 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3833 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3834 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlertedEntities_result.class, metaDataMap);
|
|
|
3835 |
}
|
|
|
3836 |
|
|
|
3837 |
public getAlertedEntities_result() {
|
|
|
3838 |
}
|
|
|
3839 |
|
|
|
3840 |
public getAlertedEntities_result(
|
|
|
3841 |
List<AlertedEntity> success,
|
|
|
3842 |
AlertServiceException e)
|
|
|
3843 |
{
|
|
|
3844 |
this();
|
|
|
3845 |
this.success = success;
|
|
|
3846 |
this.e = e;
|
|
|
3847 |
}
|
|
|
3848 |
|
|
|
3849 |
/**
|
|
|
3850 |
* Performs a deep copy on <i>other</i>.
|
|
|
3851 |
*/
|
|
|
3852 |
public getAlertedEntities_result(getAlertedEntities_result other) {
|
|
|
3853 |
if (other.isSetSuccess()) {
|
|
|
3854 |
List<AlertedEntity> __this__success = new ArrayList<AlertedEntity>();
|
|
|
3855 |
for (AlertedEntity other_element : other.success) {
|
|
|
3856 |
__this__success.add(new AlertedEntity(other_element));
|
|
|
3857 |
}
|
|
|
3858 |
this.success = __this__success;
|
|
|
3859 |
}
|
|
|
3860 |
if (other.isSetE()) {
|
|
|
3861 |
this.e = new AlertServiceException(other.e);
|
|
|
3862 |
}
|
|
|
3863 |
}
|
|
|
3864 |
|
|
|
3865 |
public getAlertedEntities_result deepCopy() {
|
|
|
3866 |
return new getAlertedEntities_result(this);
|
|
|
3867 |
}
|
|
|
3868 |
|
|
|
3869 |
@Override
|
|
|
3870 |
public void clear() {
|
|
|
3871 |
this.success = null;
|
|
|
3872 |
this.e = null;
|
|
|
3873 |
}
|
|
|
3874 |
|
|
|
3875 |
public int getSuccessSize() {
|
|
|
3876 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
3877 |
}
|
|
|
3878 |
|
|
|
3879 |
public java.util.Iterator<AlertedEntity> getSuccessIterator() {
|
|
|
3880 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
3881 |
}
|
|
|
3882 |
|
|
|
3883 |
public void addToSuccess(AlertedEntity elem) {
|
|
|
3884 |
if (this.success == null) {
|
|
|
3885 |
this.success = new ArrayList<AlertedEntity>();
|
|
|
3886 |
}
|
|
|
3887 |
this.success.add(elem);
|
|
|
3888 |
}
|
|
|
3889 |
|
|
|
3890 |
public List<AlertedEntity> getSuccess() {
|
|
|
3891 |
return this.success;
|
|
|
3892 |
}
|
|
|
3893 |
|
|
|
3894 |
public void setSuccess(List<AlertedEntity> success) {
|
|
|
3895 |
this.success = success;
|
|
|
3896 |
}
|
|
|
3897 |
|
|
|
3898 |
public void unsetSuccess() {
|
|
|
3899 |
this.success = null;
|
|
|
3900 |
}
|
|
|
3901 |
|
|
|
3902 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
3903 |
public boolean isSetSuccess() {
|
|
|
3904 |
return this.success != null;
|
|
|
3905 |
}
|
|
|
3906 |
|
|
|
3907 |
public void setSuccessIsSet(boolean value) {
|
|
|
3908 |
if (!value) {
|
|
|
3909 |
this.success = null;
|
|
|
3910 |
}
|
|
|
3911 |
}
|
|
|
3912 |
|
|
|
3913 |
public AlertServiceException getE() {
|
|
|
3914 |
return this.e;
|
|
|
3915 |
}
|
|
|
3916 |
|
|
|
3917 |
public void setE(AlertServiceException e) {
|
|
|
3918 |
this.e = e;
|
|
|
3919 |
}
|
|
|
3920 |
|
|
|
3921 |
public void unsetE() {
|
|
|
3922 |
this.e = null;
|
|
|
3923 |
}
|
|
|
3924 |
|
|
|
3925 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
3926 |
public boolean isSetE() {
|
|
|
3927 |
return this.e != null;
|
|
|
3928 |
}
|
|
|
3929 |
|
|
|
3930 |
public void setEIsSet(boolean value) {
|
|
|
3931 |
if (!value) {
|
|
|
3932 |
this.e = null;
|
|
|
3933 |
}
|
|
|
3934 |
}
|
|
|
3935 |
|
|
|
3936 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3937 |
switch (field) {
|
|
|
3938 |
case SUCCESS:
|
|
|
3939 |
if (value == null) {
|
|
|
3940 |
unsetSuccess();
|
|
|
3941 |
} else {
|
|
|
3942 |
setSuccess((List<AlertedEntity>)value);
|
|
|
3943 |
}
|
|
|
3944 |
break;
|
|
|
3945 |
|
|
|
3946 |
case E:
|
|
|
3947 |
if (value == null) {
|
|
|
3948 |
unsetE();
|
|
|
3949 |
} else {
|
|
|
3950 |
setE((AlertServiceException)value);
|
|
|
3951 |
}
|
|
|
3952 |
break;
|
|
|
3953 |
|
|
|
3954 |
}
|
|
|
3955 |
}
|
|
|
3956 |
|
|
|
3957 |
public Object getFieldValue(_Fields field) {
|
|
|
3958 |
switch (field) {
|
|
|
3959 |
case SUCCESS:
|
|
|
3960 |
return getSuccess();
|
|
|
3961 |
|
|
|
3962 |
case E:
|
|
|
3963 |
return getE();
|
|
|
3964 |
|
|
|
3965 |
}
|
|
|
3966 |
throw new IllegalStateException();
|
|
|
3967 |
}
|
|
|
3968 |
|
|
|
3969 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3970 |
public boolean isSet(_Fields field) {
|
|
|
3971 |
if (field == null) {
|
|
|
3972 |
throw new IllegalArgumentException();
|
|
|
3973 |
}
|
|
|
3974 |
|
|
|
3975 |
switch (field) {
|
|
|
3976 |
case SUCCESS:
|
|
|
3977 |
return isSetSuccess();
|
|
|
3978 |
case E:
|
|
|
3979 |
return isSetE();
|
|
|
3980 |
}
|
|
|
3981 |
throw new IllegalStateException();
|
|
|
3982 |
}
|
|
|
3983 |
|
|
|
3984 |
@Override
|
|
|
3985 |
public boolean equals(Object that) {
|
|
|
3986 |
if (that == null)
|
|
|
3987 |
return false;
|
|
|
3988 |
if (that instanceof getAlertedEntities_result)
|
|
|
3989 |
return this.equals((getAlertedEntities_result)that);
|
|
|
3990 |
return false;
|
|
|
3991 |
}
|
|
|
3992 |
|
|
|
3993 |
public boolean equals(getAlertedEntities_result that) {
|
|
|
3994 |
if (that == null)
|
|
|
3995 |
return false;
|
|
|
3996 |
|
|
|
3997 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3998 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3999 |
if (this_present_success || that_present_success) {
|
|
|
4000 |
if (!(this_present_success && that_present_success))
|
|
|
4001 |
return false;
|
|
|
4002 |
if (!this.success.equals(that.success))
|
|
|
4003 |
return false;
|
|
|
4004 |
}
|
|
|
4005 |
|
|
|
4006 |
boolean this_present_e = true && this.isSetE();
|
|
|
4007 |
boolean that_present_e = true && that.isSetE();
|
|
|
4008 |
if (this_present_e || that_present_e) {
|
|
|
4009 |
if (!(this_present_e && that_present_e))
|
|
|
4010 |
return false;
|
|
|
4011 |
if (!this.e.equals(that.e))
|
|
|
4012 |
return false;
|
|
|
4013 |
}
|
|
|
4014 |
|
|
|
4015 |
return true;
|
|
|
4016 |
}
|
|
|
4017 |
|
|
|
4018 |
@Override
|
|
|
4019 |
public int hashCode() {
|
|
|
4020 |
return 0;
|
|
|
4021 |
}
|
|
|
4022 |
|
|
|
4023 |
public int compareTo(getAlertedEntities_result other) {
|
|
|
4024 |
if (!getClass().equals(other.getClass())) {
|
|
|
4025 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4026 |
}
|
|
|
4027 |
|
|
|
4028 |
int lastComparison = 0;
|
|
|
4029 |
getAlertedEntities_result typedOther = (getAlertedEntities_result)other;
|
|
|
4030 |
|
|
|
4031 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
4032 |
if (lastComparison != 0) {
|
|
|
4033 |
return lastComparison;
|
|
|
4034 |
}
|
|
|
4035 |
if (isSetSuccess()) {
|
|
|
4036 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4037 |
if (lastComparison != 0) {
|
|
|
4038 |
return lastComparison;
|
|
|
4039 |
}
|
|
|
4040 |
}
|
|
|
4041 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
4042 |
if (lastComparison != 0) {
|
|
|
4043 |
return lastComparison;
|
|
|
4044 |
}
|
|
|
4045 |
if (isSetE()) {
|
|
|
4046 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
4047 |
if (lastComparison != 0) {
|
|
|
4048 |
return lastComparison;
|
|
|
4049 |
}
|
|
|
4050 |
}
|
|
|
4051 |
return 0;
|
|
|
4052 |
}
|
|
|
4053 |
|
|
|
4054 |
public _Fields fieldForId(int fieldId) {
|
|
|
4055 |
return _Fields.findByThriftId(fieldId);
|
|
|
4056 |
}
|
|
|
4057 |
|
|
|
4058 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4059 |
org.apache.thrift.protocol.TField field;
|
|
|
4060 |
iprot.readStructBegin();
|
|
|
4061 |
while (true)
|
|
|
4062 |
{
|
|
|
4063 |
field = iprot.readFieldBegin();
|
|
|
4064 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
4065 |
break;
|
|
|
4066 |
}
|
|
|
4067 |
switch (field.id) {
|
|
|
4068 |
case 0: // SUCCESS
|
|
|
4069 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
4070 |
{
|
|
|
4071 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
4072 |
this.success = new ArrayList<AlertedEntity>(_list4.size);
|
|
|
4073 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
|
|
4074 |
{
|
|
|
4075 |
AlertedEntity _elem6; // required
|
|
|
4076 |
_elem6 = new AlertedEntity();
|
|
|
4077 |
_elem6.read(iprot);
|
|
|
4078 |
this.success.add(_elem6);
|
|
|
4079 |
}
|
|
|
4080 |
iprot.readListEnd();
|
|
|
4081 |
}
|
|
|
4082 |
} else {
|
|
|
4083 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4084 |
}
|
|
|
4085 |
break;
|
|
|
4086 |
case 1: // E
|
|
|
4087 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4088 |
this.e = new AlertServiceException();
|
|
|
4089 |
this.e.read(iprot);
|
|
|
4090 |
} else {
|
|
|
4091 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4092 |
}
|
|
|
4093 |
break;
|
|
|
4094 |
default:
|
|
|
4095 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4096 |
}
|
|
|
4097 |
iprot.readFieldEnd();
|
|
|
4098 |
}
|
|
|
4099 |
iprot.readStructEnd();
|
|
|
4100 |
validate();
|
|
|
4101 |
}
|
|
|
4102 |
|
|
|
4103 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
4104 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4105 |
|
|
|
4106 |
if (this.isSetSuccess()) {
|
|
|
4107 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4108 |
{
|
|
|
4109 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
4110 |
for (AlertedEntity _iter7 : this.success)
|
|
|
4111 |
{
|
|
|
4112 |
_iter7.write(oprot);
|
|
|
4113 |
}
|
|
|
4114 |
oprot.writeListEnd();
|
|
|
4115 |
}
|
|
|
4116 |
oprot.writeFieldEnd();
|
|
|
4117 |
} else if (this.isSetE()) {
|
|
|
4118 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
4119 |
this.e.write(oprot);
|
|
|
4120 |
oprot.writeFieldEnd();
|
|
|
4121 |
}
|
|
|
4122 |
oprot.writeFieldStop();
|
|
|
4123 |
oprot.writeStructEnd();
|
|
|
4124 |
}
|
|
|
4125 |
|
|
|
4126 |
@Override
|
|
|
4127 |
public String toString() {
|
|
|
4128 |
StringBuilder sb = new StringBuilder("getAlertedEntities_result(");
|
|
|
4129 |
boolean first = true;
|
|
|
4130 |
|
|
|
4131 |
sb.append("success:");
|
|
|
4132 |
if (this.success == null) {
|
|
|
4133 |
sb.append("null");
|
|
|
4134 |
} else {
|
|
|
4135 |
sb.append(this.success);
|
|
|
4136 |
}
|
|
|
4137 |
first = false;
|
|
|
4138 |
if (!first) sb.append(", ");
|
|
|
4139 |
sb.append("e:");
|
|
|
4140 |
if (this.e == null) {
|
|
|
4141 |
sb.append("null");
|
|
|
4142 |
} else {
|
|
|
4143 |
sb.append(this.e);
|
|
|
4144 |
}
|
|
|
4145 |
first = false;
|
|
|
4146 |
sb.append(")");
|
|
|
4147 |
return sb.toString();
|
|
|
4148 |
}
|
|
|
4149 |
|
|
|
4150 |
public void validate() throws org.apache.thrift.TException {
|
|
|
4151 |
// check for required fields
|
|
|
4152 |
}
|
|
|
4153 |
|
|
|
4154 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4155 |
try {
|
|
|
4156 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4157 |
} catch (org.apache.thrift.TException te) {
|
|
|
4158 |
throw new java.io.IOException(te);
|
|
|
4159 |
}
|
|
|
4160 |
}
|
|
|
4161 |
|
|
|
4162 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4163 |
try {
|
|
|
4164 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4165 |
} catch (org.apache.thrift.TException te) {
|
|
|
4166 |
throw new java.io.IOException(te);
|
|
|
4167 |
}
|
|
|
4168 |
}
|
|
|
4169 |
|
|
|
4170 |
}
|
|
|
4171 |
|
|
|
4172 |
public static class getAlertMapper_args implements org.apache.thrift.TBase<getAlertMapper_args, getAlertMapper_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4173 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlertMapper_args");
|
|
|
4174 |
|
|
|
4175 |
private static final org.apache.thrift.protocol.TField ENTITY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("entityType", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
|
4176 |
private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)2);
|
|
|
4177 |
|
|
|
4178 |
private EntityType entityType; // required
|
|
|
4179 |
private int eventType; // required
|
|
|
4180 |
|
|
|
4181 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4182 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
4183 |
/**
|
|
|
4184 |
*
|
|
|
4185 |
* @see EntityType
|
|
|
4186 |
*/
|
|
|
4187 |
ENTITY_TYPE((short)1, "entityType"),
|
|
|
4188 |
EVENT_TYPE((short)2, "eventType");
|
|
|
4189 |
|
|
|
4190 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4191 |
|
|
|
4192 |
static {
|
|
|
4193 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4194 |
byName.put(field.getFieldName(), field);
|
|
|
4195 |
}
|
|
|
4196 |
}
|
|
|
4197 |
|
|
|
4198 |
/**
|
|
|
4199 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4200 |
*/
|
|
|
4201 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4202 |
switch(fieldId) {
|
|
|
4203 |
case 1: // ENTITY_TYPE
|
|
|
4204 |
return ENTITY_TYPE;
|
|
|
4205 |
case 2: // EVENT_TYPE
|
|
|
4206 |
return EVENT_TYPE;
|
|
|
4207 |
default:
|
|
|
4208 |
return null;
|
|
|
4209 |
}
|
|
|
4210 |
}
|
|
|
4211 |
|
|
|
4212 |
/**
|
|
|
4213 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4214 |
* if it is not found.
|
|
|
4215 |
*/
|
|
|
4216 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4217 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4218 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4219 |
return fields;
|
|
|
4220 |
}
|
|
|
4221 |
|
|
|
4222 |
/**
|
|
|
4223 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4224 |
*/
|
|
|
4225 |
public static _Fields findByName(String name) {
|
|
|
4226 |
return byName.get(name);
|
|
|
4227 |
}
|
|
|
4228 |
|
|
|
4229 |
private final short _thriftId;
|
|
|
4230 |
private final String _fieldName;
|
|
|
4231 |
|
|
|
4232 |
_Fields(short thriftId, String fieldName) {
|
|
|
4233 |
_thriftId = thriftId;
|
|
|
4234 |
_fieldName = fieldName;
|
|
|
4235 |
}
|
|
|
4236 |
|
|
|
4237 |
public short getThriftFieldId() {
|
|
|
4238 |
return _thriftId;
|
|
|
4239 |
}
|
|
|
4240 |
|
|
|
4241 |
public String getFieldName() {
|
|
|
4242 |
return _fieldName;
|
|
|
4243 |
}
|
|
|
4244 |
}
|
|
|
4245 |
|
|
|
4246 |
// isset id assignments
|
|
|
4247 |
private static final int __EVENTTYPE_ISSET_ID = 0;
|
|
|
4248 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4249 |
|
|
|
4250 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
4251 |
static {
|
|
|
4252 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4253 |
tmpMap.put(_Fields.ENTITY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("entityType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4254 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, EntityType.class)));
|
|
|
4255 |
tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4256 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
|
4257 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4258 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlertMapper_args.class, metaDataMap);
|
|
|
4259 |
}
|
|
|
4260 |
|
|
|
4261 |
public getAlertMapper_args() {
|
|
|
4262 |
}
|
|
|
4263 |
|
|
|
4264 |
public getAlertMapper_args(
|
|
|
4265 |
EntityType entityType,
|
|
|
4266 |
int eventType)
|
|
|
4267 |
{
|
|
|
4268 |
this();
|
|
|
4269 |
this.entityType = entityType;
|
|
|
4270 |
this.eventType = eventType;
|
|
|
4271 |
setEventTypeIsSet(true);
|
|
|
4272 |
}
|
|
|
4273 |
|
|
|
4274 |
/**
|
|
|
4275 |
* Performs a deep copy on <i>other</i>.
|
|
|
4276 |
*/
|
|
|
4277 |
public getAlertMapper_args(getAlertMapper_args other) {
|
|
|
4278 |
__isset_bit_vector.clear();
|
|
|
4279 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
4280 |
if (other.isSetEntityType()) {
|
|
|
4281 |
this.entityType = other.entityType;
|
|
|
4282 |
}
|
|
|
4283 |
this.eventType = other.eventType;
|
|
|
4284 |
}
|
|
|
4285 |
|
|
|
4286 |
public getAlertMapper_args deepCopy() {
|
|
|
4287 |
return new getAlertMapper_args(this);
|
|
|
4288 |
}
|
|
|
4289 |
|
|
|
4290 |
@Override
|
|
|
4291 |
public void clear() {
|
|
|
4292 |
this.entityType = null;
|
|
|
4293 |
setEventTypeIsSet(false);
|
|
|
4294 |
this.eventType = 0;
|
|
|
4295 |
}
|
|
|
4296 |
|
|
|
4297 |
/**
|
|
|
4298 |
*
|
|
|
4299 |
* @see EntityType
|
|
|
4300 |
*/
|
|
|
4301 |
public EntityType getEntityType() {
|
|
|
4302 |
return this.entityType;
|
|
|
4303 |
}
|
|
|
4304 |
|
|
|
4305 |
/**
|
|
|
4306 |
*
|
|
|
4307 |
* @see EntityType
|
|
|
4308 |
*/
|
|
|
4309 |
public void setEntityType(EntityType entityType) {
|
|
|
4310 |
this.entityType = entityType;
|
|
|
4311 |
}
|
|
|
4312 |
|
|
|
4313 |
public void unsetEntityType() {
|
|
|
4314 |
this.entityType = null;
|
|
|
4315 |
}
|
|
|
4316 |
|
|
|
4317 |
/** Returns true if field entityType is set (has been assigned a value) and false otherwise */
|
|
|
4318 |
public boolean isSetEntityType() {
|
|
|
4319 |
return this.entityType != null;
|
|
|
4320 |
}
|
|
|
4321 |
|
|
|
4322 |
public void setEntityTypeIsSet(boolean value) {
|
|
|
4323 |
if (!value) {
|
|
|
4324 |
this.entityType = null;
|
|
|
4325 |
}
|
|
|
4326 |
}
|
|
|
4327 |
|
|
|
4328 |
public int getEventType() {
|
|
|
4329 |
return this.eventType;
|
|
|
4330 |
}
|
|
|
4331 |
|
|
|
4332 |
public void setEventType(int eventType) {
|
|
|
4333 |
this.eventType = eventType;
|
|
|
4334 |
setEventTypeIsSet(true);
|
|
|
4335 |
}
|
|
|
4336 |
|
|
|
4337 |
public void unsetEventType() {
|
|
|
4338 |
__isset_bit_vector.clear(__EVENTTYPE_ISSET_ID);
|
|
|
4339 |
}
|
|
|
4340 |
|
|
|
4341 |
/** Returns true if field eventType is set (has been assigned a value) and false otherwise */
|
|
|
4342 |
public boolean isSetEventType() {
|
|
|
4343 |
return __isset_bit_vector.get(__EVENTTYPE_ISSET_ID);
|
|
|
4344 |
}
|
|
|
4345 |
|
|
|
4346 |
public void setEventTypeIsSet(boolean value) {
|
|
|
4347 |
__isset_bit_vector.set(__EVENTTYPE_ISSET_ID, value);
|
|
|
4348 |
}
|
|
|
4349 |
|
|
|
4350 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4351 |
switch (field) {
|
|
|
4352 |
case ENTITY_TYPE:
|
|
|
4353 |
if (value == null) {
|
|
|
4354 |
unsetEntityType();
|
|
|
4355 |
} else {
|
|
|
4356 |
setEntityType((EntityType)value);
|
|
|
4357 |
}
|
|
|
4358 |
break;
|
|
|
4359 |
|
|
|
4360 |
case EVENT_TYPE:
|
|
|
4361 |
if (value == null) {
|
|
|
4362 |
unsetEventType();
|
|
|
4363 |
} else {
|
|
|
4364 |
setEventType((Integer)value);
|
|
|
4365 |
}
|
|
|
4366 |
break;
|
|
|
4367 |
|
|
|
4368 |
}
|
|
|
4369 |
}
|
|
|
4370 |
|
|
|
4371 |
public Object getFieldValue(_Fields field) {
|
|
|
4372 |
switch (field) {
|
|
|
4373 |
case ENTITY_TYPE:
|
|
|
4374 |
return getEntityType();
|
|
|
4375 |
|
|
|
4376 |
case EVENT_TYPE:
|
|
|
4377 |
return Integer.valueOf(getEventType());
|
|
|
4378 |
|
|
|
4379 |
}
|
|
|
4380 |
throw new IllegalStateException();
|
|
|
4381 |
}
|
|
|
4382 |
|
|
|
4383 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4384 |
public boolean isSet(_Fields field) {
|
|
|
4385 |
if (field == null) {
|
|
|
4386 |
throw new IllegalArgumentException();
|
|
|
4387 |
}
|
|
|
4388 |
|
|
|
4389 |
switch (field) {
|
|
|
4390 |
case ENTITY_TYPE:
|
|
|
4391 |
return isSetEntityType();
|
|
|
4392 |
case EVENT_TYPE:
|
|
|
4393 |
return isSetEventType();
|
|
|
4394 |
}
|
|
|
4395 |
throw new IllegalStateException();
|
|
|
4396 |
}
|
|
|
4397 |
|
|
|
4398 |
@Override
|
|
|
4399 |
public boolean equals(Object that) {
|
|
|
4400 |
if (that == null)
|
|
|
4401 |
return false;
|
|
|
4402 |
if (that instanceof getAlertMapper_args)
|
|
|
4403 |
return this.equals((getAlertMapper_args)that);
|
|
|
4404 |
return false;
|
|
|
4405 |
}
|
|
|
4406 |
|
|
|
4407 |
public boolean equals(getAlertMapper_args that) {
|
|
|
4408 |
if (that == null)
|
|
|
4409 |
return false;
|
|
|
4410 |
|
|
|
4411 |
boolean this_present_entityType = true && this.isSetEntityType();
|
|
|
4412 |
boolean that_present_entityType = true && that.isSetEntityType();
|
|
|
4413 |
if (this_present_entityType || that_present_entityType) {
|
|
|
4414 |
if (!(this_present_entityType && that_present_entityType))
|
|
|
4415 |
return false;
|
|
|
4416 |
if (!this.entityType.equals(that.entityType))
|
|
|
4417 |
return false;
|
|
|
4418 |
}
|
|
|
4419 |
|
|
|
4420 |
boolean this_present_eventType = true;
|
|
|
4421 |
boolean that_present_eventType = true;
|
|
|
4422 |
if (this_present_eventType || that_present_eventType) {
|
|
|
4423 |
if (!(this_present_eventType && that_present_eventType))
|
|
|
4424 |
return false;
|
|
|
4425 |
if (this.eventType != that.eventType)
|
|
|
4426 |
return false;
|
|
|
4427 |
}
|
|
|
4428 |
|
|
|
4429 |
return true;
|
|
|
4430 |
}
|
|
|
4431 |
|
|
|
4432 |
@Override
|
|
|
4433 |
public int hashCode() {
|
|
|
4434 |
return 0;
|
|
|
4435 |
}
|
|
|
4436 |
|
|
|
4437 |
public int compareTo(getAlertMapper_args other) {
|
|
|
4438 |
if (!getClass().equals(other.getClass())) {
|
|
|
4439 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4440 |
}
|
|
|
4441 |
|
|
|
4442 |
int lastComparison = 0;
|
|
|
4443 |
getAlertMapper_args typedOther = (getAlertMapper_args)other;
|
|
|
4444 |
|
|
|
4445 |
lastComparison = Boolean.valueOf(isSetEntityType()).compareTo(typedOther.isSetEntityType());
|
|
|
4446 |
if (lastComparison != 0) {
|
|
|
4447 |
return lastComparison;
|
|
|
4448 |
}
|
|
|
4449 |
if (isSetEntityType()) {
|
|
|
4450 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityType, typedOther.entityType);
|
|
|
4451 |
if (lastComparison != 0) {
|
|
|
4452 |
return lastComparison;
|
|
|
4453 |
}
|
|
|
4454 |
}
|
|
|
4455 |
lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType());
|
|
|
4456 |
if (lastComparison != 0) {
|
|
|
4457 |
return lastComparison;
|
|
|
4458 |
}
|
|
|
4459 |
if (isSetEventType()) {
|
|
|
4460 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType);
|
|
|
4461 |
if (lastComparison != 0) {
|
|
|
4462 |
return lastComparison;
|
|
|
4463 |
}
|
|
|
4464 |
}
|
|
|
4465 |
return 0;
|
|
|
4466 |
}
|
|
|
4467 |
|
|
|
4468 |
public _Fields fieldForId(int fieldId) {
|
|
|
4469 |
return _Fields.findByThriftId(fieldId);
|
|
|
4470 |
}
|
|
|
4471 |
|
|
|
4472 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4473 |
org.apache.thrift.protocol.TField field;
|
|
|
4474 |
iprot.readStructBegin();
|
|
|
4475 |
while (true)
|
|
|
4476 |
{
|
|
|
4477 |
field = iprot.readFieldBegin();
|
|
|
4478 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
4479 |
break;
|
|
|
4480 |
}
|
|
|
4481 |
switch (field.id) {
|
|
|
4482 |
case 1: // ENTITY_TYPE
|
|
|
4483 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4484 |
this.entityType = EntityType.findByValue(iprot.readI32());
|
|
|
4485 |
} else {
|
|
|
4486 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4487 |
}
|
|
|
4488 |
break;
|
|
|
4489 |
case 2: // EVENT_TYPE
|
|
|
4490 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4491 |
this.eventType = iprot.readI32();
|
|
|
4492 |
setEventTypeIsSet(true);
|
|
|
4493 |
} else {
|
|
|
4494 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4495 |
}
|
|
|
4496 |
break;
|
|
|
4497 |
default:
|
|
|
4498 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4499 |
}
|
|
|
4500 |
iprot.readFieldEnd();
|
|
|
4501 |
}
|
|
|
4502 |
iprot.readStructEnd();
|
|
|
4503 |
validate();
|
|
|
4504 |
}
|
|
|
4505 |
|
|
|
4506 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
4507 |
validate();
|
|
|
4508 |
|
|
|
4509 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4510 |
if (this.entityType != null) {
|
|
|
4511 |
oprot.writeFieldBegin(ENTITY_TYPE_FIELD_DESC);
|
|
|
4512 |
oprot.writeI32(this.entityType.getValue());
|
|
|
4513 |
oprot.writeFieldEnd();
|
|
|
4514 |
}
|
|
|
4515 |
oprot.writeFieldBegin(EVENT_TYPE_FIELD_DESC);
|
|
|
4516 |
oprot.writeI32(this.eventType);
|
|
|
4517 |
oprot.writeFieldEnd();
|
|
|
4518 |
oprot.writeFieldStop();
|
|
|
4519 |
oprot.writeStructEnd();
|
|
|
4520 |
}
|
|
|
4521 |
|
|
|
4522 |
@Override
|
|
|
4523 |
public String toString() {
|
|
|
4524 |
StringBuilder sb = new StringBuilder("getAlertMapper_args(");
|
|
|
4525 |
boolean first = true;
|
|
|
4526 |
|
|
|
4527 |
sb.append("entityType:");
|
|
|
4528 |
if (this.entityType == null) {
|
|
|
4529 |
sb.append("null");
|
|
|
4530 |
} else {
|
|
|
4531 |
sb.append(this.entityType);
|
|
|
4532 |
}
|
|
|
4533 |
first = false;
|
|
|
4534 |
if (!first) sb.append(", ");
|
|
|
4535 |
sb.append("eventType:");
|
|
|
4536 |
sb.append(this.eventType);
|
|
|
4537 |
first = false;
|
|
|
4538 |
sb.append(")");
|
|
|
4539 |
return sb.toString();
|
|
|
4540 |
}
|
|
|
4541 |
|
|
|
4542 |
public void validate() throws org.apache.thrift.TException {
|
|
|
4543 |
// check for required fields
|
|
|
4544 |
}
|
|
|
4545 |
|
|
|
4546 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4547 |
try {
|
|
|
4548 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4549 |
} catch (org.apache.thrift.TException te) {
|
|
|
4550 |
throw new java.io.IOException(te);
|
|
|
4551 |
}
|
|
|
4552 |
}
|
|
|
4553 |
|
|
|
4554 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4555 |
try {
|
|
|
4556 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
4557 |
__isset_bit_vector = new BitSet(1);
|
|
|
4558 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4559 |
} catch (org.apache.thrift.TException te) {
|
|
|
4560 |
throw new java.io.IOException(te);
|
|
|
4561 |
}
|
|
|
4562 |
}
|
|
|
4563 |
|
|
|
4564 |
}
|
|
|
4565 |
|
|
|
4566 |
public static class getAlertMapper_result implements org.apache.thrift.TBase<getAlertMapper_result, getAlertMapper_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4567 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlertMapper_result");
|
|
|
4568 |
|
|
|
4569 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
4570 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
4571 |
|
|
|
4572 |
private AlertMapper success; // required
|
|
|
4573 |
private AlertServiceException e; // required
|
|
|
4574 |
|
|
|
4575 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4576 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
4577 |
SUCCESS((short)0, "success"),
|
|
|
4578 |
E((short)1, "e");
|
|
|
4579 |
|
|
|
4580 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4581 |
|
|
|
4582 |
static {
|
|
|
4583 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4584 |
byName.put(field.getFieldName(), field);
|
|
|
4585 |
}
|
|
|
4586 |
}
|
|
|
4587 |
|
|
|
4588 |
/**
|
|
|
4589 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4590 |
*/
|
|
|
4591 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4592 |
switch(fieldId) {
|
|
|
4593 |
case 0: // SUCCESS
|
|
|
4594 |
return SUCCESS;
|
|
|
4595 |
case 1: // E
|
|
|
4596 |
return E;
|
|
|
4597 |
default:
|
|
|
4598 |
return null;
|
|
|
4599 |
}
|
|
|
4600 |
}
|
|
|
4601 |
|
|
|
4602 |
/**
|
|
|
4603 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4604 |
* if it is not found.
|
|
|
4605 |
*/
|
|
|
4606 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4607 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4608 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4609 |
return fields;
|
|
|
4610 |
}
|
|
|
4611 |
|
|
|
4612 |
/**
|
|
|
4613 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4614 |
*/
|
|
|
4615 |
public static _Fields findByName(String name) {
|
|
|
4616 |
return byName.get(name);
|
|
|
4617 |
}
|
|
|
4618 |
|
|
|
4619 |
private final short _thriftId;
|
|
|
4620 |
private final String _fieldName;
|
|
|
4621 |
|
|
|
4622 |
_Fields(short thriftId, String fieldName) {
|
|
|
4623 |
_thriftId = thriftId;
|
|
|
4624 |
_fieldName = fieldName;
|
|
|
4625 |
}
|
|
|
4626 |
|
|
|
4627 |
public short getThriftFieldId() {
|
|
|
4628 |
return _thriftId;
|
|
|
4629 |
}
|
|
|
4630 |
|
|
|
4631 |
public String getFieldName() {
|
|
|
4632 |
return _fieldName;
|
|
|
4633 |
}
|
|
|
4634 |
}
|
|
|
4635 |
|
|
|
4636 |
// isset id assignments
|
|
|
4637 |
|
|
|
4638 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
4639 |
static {
|
|
|
4640 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4641 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4642 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlertMapper.class)));
|
|
|
4643 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4644 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4645 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4646 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlertMapper_result.class, metaDataMap);
|
|
|
4647 |
}
|
|
|
4648 |
|
|
|
4649 |
public getAlertMapper_result() {
|
|
|
4650 |
}
|
|
|
4651 |
|
|
|
4652 |
public getAlertMapper_result(
|
|
|
4653 |
AlertMapper success,
|
|
|
4654 |
AlertServiceException e)
|
|
|
4655 |
{
|
|
|
4656 |
this();
|
|
|
4657 |
this.success = success;
|
|
|
4658 |
this.e = e;
|
|
|
4659 |
}
|
|
|
4660 |
|
|
|
4661 |
/**
|
|
|
4662 |
* Performs a deep copy on <i>other</i>.
|
|
|
4663 |
*/
|
|
|
4664 |
public getAlertMapper_result(getAlertMapper_result other) {
|
|
|
4665 |
if (other.isSetSuccess()) {
|
|
|
4666 |
this.success = new AlertMapper(other.success);
|
|
|
4667 |
}
|
|
|
4668 |
if (other.isSetE()) {
|
|
|
4669 |
this.e = new AlertServiceException(other.e);
|
|
|
4670 |
}
|
|
|
4671 |
}
|
|
|
4672 |
|
|
|
4673 |
public getAlertMapper_result deepCopy() {
|
|
|
4674 |
return new getAlertMapper_result(this);
|
|
|
4675 |
}
|
|
|
4676 |
|
|
|
4677 |
@Override
|
|
|
4678 |
public void clear() {
|
|
|
4679 |
this.success = null;
|
|
|
4680 |
this.e = null;
|
|
|
4681 |
}
|
|
|
4682 |
|
|
|
4683 |
public AlertMapper getSuccess() {
|
|
|
4684 |
return this.success;
|
|
|
4685 |
}
|
|
|
4686 |
|
|
|
4687 |
public void setSuccess(AlertMapper success) {
|
|
|
4688 |
this.success = success;
|
|
|
4689 |
}
|
|
|
4690 |
|
|
|
4691 |
public void unsetSuccess() {
|
|
|
4692 |
this.success = null;
|
|
|
4693 |
}
|
|
|
4694 |
|
|
|
4695 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
4696 |
public boolean isSetSuccess() {
|
|
|
4697 |
return this.success != null;
|
|
|
4698 |
}
|
|
|
4699 |
|
|
|
4700 |
public void setSuccessIsSet(boolean value) {
|
|
|
4701 |
if (!value) {
|
|
|
4702 |
this.success = null;
|
|
|
4703 |
}
|
|
|
4704 |
}
|
|
|
4705 |
|
|
|
4706 |
public AlertServiceException getE() {
|
|
|
4707 |
return this.e;
|
|
|
4708 |
}
|
|
|
4709 |
|
|
|
4710 |
public void setE(AlertServiceException e) {
|
|
|
4711 |
this.e = e;
|
|
|
4712 |
}
|
|
|
4713 |
|
|
|
4714 |
public void unsetE() {
|
|
|
4715 |
this.e = null;
|
|
|
4716 |
}
|
|
|
4717 |
|
|
|
4718 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
4719 |
public boolean isSetE() {
|
|
|
4720 |
return this.e != null;
|
|
|
4721 |
}
|
|
|
4722 |
|
|
|
4723 |
public void setEIsSet(boolean value) {
|
|
|
4724 |
if (!value) {
|
|
|
4725 |
this.e = null;
|
|
|
4726 |
}
|
|
|
4727 |
}
|
|
|
4728 |
|
|
|
4729 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4730 |
switch (field) {
|
|
|
4731 |
case SUCCESS:
|
|
|
4732 |
if (value == null) {
|
|
|
4733 |
unsetSuccess();
|
|
|
4734 |
} else {
|
|
|
4735 |
setSuccess((AlertMapper)value);
|
|
|
4736 |
}
|
|
|
4737 |
break;
|
|
|
4738 |
|
|
|
4739 |
case E:
|
|
|
4740 |
if (value == null) {
|
|
|
4741 |
unsetE();
|
|
|
4742 |
} else {
|
|
|
4743 |
setE((AlertServiceException)value);
|
|
|
4744 |
}
|
|
|
4745 |
break;
|
|
|
4746 |
|
|
|
4747 |
}
|
|
|
4748 |
}
|
|
|
4749 |
|
|
|
4750 |
public Object getFieldValue(_Fields field) {
|
|
|
4751 |
switch (field) {
|
|
|
4752 |
case SUCCESS:
|
|
|
4753 |
return getSuccess();
|
|
|
4754 |
|
|
|
4755 |
case E:
|
|
|
4756 |
return getE();
|
|
|
4757 |
|
|
|
4758 |
}
|
|
|
4759 |
throw new IllegalStateException();
|
|
|
4760 |
}
|
|
|
4761 |
|
|
|
4762 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4763 |
public boolean isSet(_Fields field) {
|
|
|
4764 |
if (field == null) {
|
|
|
4765 |
throw new IllegalArgumentException();
|
|
|
4766 |
}
|
|
|
4767 |
|
|
|
4768 |
switch (field) {
|
|
|
4769 |
case SUCCESS:
|
|
|
4770 |
return isSetSuccess();
|
|
|
4771 |
case E:
|
|
|
4772 |
return isSetE();
|
|
|
4773 |
}
|
|
|
4774 |
throw new IllegalStateException();
|
|
|
4775 |
}
|
|
|
4776 |
|
|
|
4777 |
@Override
|
|
|
4778 |
public boolean equals(Object that) {
|
|
|
4779 |
if (that == null)
|
|
|
4780 |
return false;
|
|
|
4781 |
if (that instanceof getAlertMapper_result)
|
|
|
4782 |
return this.equals((getAlertMapper_result)that);
|
|
|
4783 |
return false;
|
|
|
4784 |
}
|
|
|
4785 |
|
|
|
4786 |
public boolean equals(getAlertMapper_result that) {
|
|
|
4787 |
if (that == null)
|
|
|
4788 |
return false;
|
|
|
4789 |
|
|
|
4790 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4791 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4792 |
if (this_present_success || that_present_success) {
|
|
|
4793 |
if (!(this_present_success && that_present_success))
|
|
|
4794 |
return false;
|
|
|
4795 |
if (!this.success.equals(that.success))
|
|
|
4796 |
return false;
|
|
|
4797 |
}
|
|
|
4798 |
|
|
|
4799 |
boolean this_present_e = true && this.isSetE();
|
|
|
4800 |
boolean that_present_e = true && that.isSetE();
|
|
|
4801 |
if (this_present_e || that_present_e) {
|
|
|
4802 |
if (!(this_present_e && that_present_e))
|
|
|
4803 |
return false;
|
|
|
4804 |
if (!this.e.equals(that.e))
|
|
|
4805 |
return false;
|
|
|
4806 |
}
|
|
|
4807 |
|
|
|
4808 |
return true;
|
|
|
4809 |
}
|
|
|
4810 |
|
|
|
4811 |
@Override
|
|
|
4812 |
public int hashCode() {
|
|
|
4813 |
return 0;
|
|
|
4814 |
}
|
|
|
4815 |
|
|
|
4816 |
public int compareTo(getAlertMapper_result other) {
|
|
|
4817 |
if (!getClass().equals(other.getClass())) {
|
|
|
4818 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4819 |
}
|
|
|
4820 |
|
|
|
4821 |
int lastComparison = 0;
|
|
|
4822 |
getAlertMapper_result typedOther = (getAlertMapper_result)other;
|
|
|
4823 |
|
|
|
4824 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
4825 |
if (lastComparison != 0) {
|
|
|
4826 |
return lastComparison;
|
|
|
4827 |
}
|
|
|
4828 |
if (isSetSuccess()) {
|
|
|
4829 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4830 |
if (lastComparison != 0) {
|
|
|
4831 |
return lastComparison;
|
|
|
4832 |
}
|
|
|
4833 |
}
|
|
|
4834 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
4835 |
if (lastComparison != 0) {
|
|
|
4836 |
return lastComparison;
|
|
|
4837 |
}
|
|
|
4838 |
if (isSetE()) {
|
|
|
4839 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
4840 |
if (lastComparison != 0) {
|
|
|
4841 |
return lastComparison;
|
|
|
4842 |
}
|
|
|
4843 |
}
|
|
|
4844 |
return 0;
|
|
|
4845 |
}
|
|
|
4846 |
|
|
|
4847 |
public _Fields fieldForId(int fieldId) {
|
|
|
4848 |
return _Fields.findByThriftId(fieldId);
|
|
|
4849 |
}
|
|
|
4850 |
|
|
|
4851 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4852 |
org.apache.thrift.protocol.TField field;
|
|
|
4853 |
iprot.readStructBegin();
|
|
|
4854 |
while (true)
|
|
|
4855 |
{
|
|
|
4856 |
field = iprot.readFieldBegin();
|
|
|
4857 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
4858 |
break;
|
|
|
4859 |
}
|
|
|
4860 |
switch (field.id) {
|
|
|
4861 |
case 0: // SUCCESS
|
|
|
4862 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4863 |
this.success = new AlertMapper();
|
|
|
4864 |
this.success.read(iprot);
|
|
|
4865 |
} else {
|
|
|
4866 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4867 |
}
|
|
|
4868 |
break;
|
|
|
4869 |
case 1: // E
|
|
|
4870 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4871 |
this.e = new AlertServiceException();
|
|
|
4872 |
this.e.read(iprot);
|
|
|
4873 |
} else {
|
|
|
4874 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4875 |
}
|
|
|
4876 |
break;
|
|
|
4877 |
default:
|
|
|
4878 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4879 |
}
|
|
|
4880 |
iprot.readFieldEnd();
|
|
|
4881 |
}
|
|
|
4882 |
iprot.readStructEnd();
|
|
|
4883 |
validate();
|
|
|
4884 |
}
|
|
|
4885 |
|
|
|
4886 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
4887 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4888 |
|
|
|
4889 |
if (this.isSetSuccess()) {
|
|
|
4890 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4891 |
this.success.write(oprot);
|
|
|
4892 |
oprot.writeFieldEnd();
|
|
|
4893 |
} else if (this.isSetE()) {
|
|
|
4894 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
4895 |
this.e.write(oprot);
|
|
|
4896 |
oprot.writeFieldEnd();
|
|
|
4897 |
}
|
|
|
4898 |
oprot.writeFieldStop();
|
|
|
4899 |
oprot.writeStructEnd();
|
|
|
4900 |
}
|
|
|
4901 |
|
|
|
4902 |
@Override
|
|
|
4903 |
public String toString() {
|
|
|
4904 |
StringBuilder sb = new StringBuilder("getAlertMapper_result(");
|
|
|
4905 |
boolean first = true;
|
|
|
4906 |
|
|
|
4907 |
sb.append("success:");
|
|
|
4908 |
if (this.success == null) {
|
|
|
4909 |
sb.append("null");
|
|
|
4910 |
} else {
|
|
|
4911 |
sb.append(this.success);
|
|
|
4912 |
}
|
|
|
4913 |
first = false;
|
|
|
4914 |
if (!first) sb.append(", ");
|
|
|
4915 |
sb.append("e:");
|
|
|
4916 |
if (this.e == null) {
|
|
|
4917 |
sb.append("null");
|
|
|
4918 |
} else {
|
|
|
4919 |
sb.append(this.e);
|
|
|
4920 |
}
|
|
|
4921 |
first = false;
|
|
|
4922 |
sb.append(")");
|
|
|
4923 |
return sb.toString();
|
|
|
4924 |
}
|
|
|
4925 |
|
|
|
4926 |
public void validate() throws org.apache.thrift.TException {
|
|
|
4927 |
// check for required fields
|
|
|
4928 |
}
|
|
|
4929 |
|
|
|
4930 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4931 |
try {
|
|
|
4932 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4933 |
} catch (org.apache.thrift.TException te) {
|
|
|
4934 |
throw new java.io.IOException(te);
|
|
|
4935 |
}
|
|
|
4936 |
}
|
|
|
4937 |
|
|
|
4938 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4939 |
try {
|
|
|
4940 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4941 |
} catch (org.apache.thrift.TException te) {
|
|
|
4942 |
throw new java.io.IOException(te);
|
|
|
4943 |
}
|
|
|
4944 |
}
|
|
|
4945 |
|
|
|
4946 |
}
|
|
|
4947 |
|
|
|
4948 |
public static class activateEntityMonitoring_args implements org.apache.thrift.TBase<activateEntityMonitoring_args, activateEntityMonitoring_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4949 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("activateEntityMonitoring_args");
|
|
|
4950 |
|
|
|
4951 |
private static final org.apache.thrift.protocol.TField ENTITY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("entityType", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
|
4952 |
private static final org.apache.thrift.protocol.TField USER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("userIds", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
4953 |
|
|
|
4954 |
private EntityType entityType; // required
|
|
|
4955 |
private String userIds; // required
|
|
|
4956 |
|
|
|
4957 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4958 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
4959 |
/**
|
|
|
4960 |
*
|
|
|
4961 |
* @see EntityType
|
|
|
4962 |
*/
|
|
|
4963 |
ENTITY_TYPE((short)1, "entityType"),
|
|
|
4964 |
USER_IDS((short)2, "userIds");
|
|
|
4965 |
|
|
|
4966 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4967 |
|
|
|
4968 |
static {
|
|
|
4969 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4970 |
byName.put(field.getFieldName(), field);
|
|
|
4971 |
}
|
|
|
4972 |
}
|
|
|
4973 |
|
|
|
4974 |
/**
|
|
|
4975 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4976 |
*/
|
|
|
4977 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4978 |
switch(fieldId) {
|
|
|
4979 |
case 1: // ENTITY_TYPE
|
|
|
4980 |
return ENTITY_TYPE;
|
|
|
4981 |
case 2: // USER_IDS
|
|
|
4982 |
return USER_IDS;
|
|
|
4983 |
default:
|
|
|
4984 |
return null;
|
|
|
4985 |
}
|
|
|
4986 |
}
|
|
|
4987 |
|
|
|
4988 |
/**
|
|
|
4989 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4990 |
* if it is not found.
|
|
|
4991 |
*/
|
|
|
4992 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4993 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4994 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4995 |
return fields;
|
|
|
4996 |
}
|
|
|
4997 |
|
|
|
4998 |
/**
|
|
|
4999 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5000 |
*/
|
|
|
5001 |
public static _Fields findByName(String name) {
|
|
|
5002 |
return byName.get(name);
|
|
|
5003 |
}
|
|
|
5004 |
|
|
|
5005 |
private final short _thriftId;
|
|
|
5006 |
private final String _fieldName;
|
|
|
5007 |
|
|
|
5008 |
_Fields(short thriftId, String fieldName) {
|
|
|
5009 |
_thriftId = thriftId;
|
|
|
5010 |
_fieldName = fieldName;
|
|
|
5011 |
}
|
|
|
5012 |
|
|
|
5013 |
public short getThriftFieldId() {
|
|
|
5014 |
return _thriftId;
|
|
|
5015 |
}
|
|
|
5016 |
|
|
|
5017 |
public String getFieldName() {
|
|
|
5018 |
return _fieldName;
|
|
|
5019 |
}
|
|
|
5020 |
}
|
|
|
5021 |
|
|
|
5022 |
// isset id assignments
|
|
|
5023 |
|
|
|
5024 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5025 |
static {
|
|
|
5026 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5027 |
tmpMap.put(_Fields.ENTITY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("entityType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5028 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, EntityType.class)));
|
|
|
5029 |
tmpMap.put(_Fields.USER_IDS, new org.apache.thrift.meta_data.FieldMetaData("userIds", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5030 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5031 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5032 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(activateEntityMonitoring_args.class, metaDataMap);
|
|
|
5033 |
}
|
|
|
5034 |
|
|
|
5035 |
public activateEntityMonitoring_args() {
|
|
|
5036 |
}
|
|
|
5037 |
|
|
|
5038 |
public activateEntityMonitoring_args(
|
|
|
5039 |
EntityType entityType,
|
|
|
5040 |
String userIds)
|
|
|
5041 |
{
|
|
|
5042 |
this();
|
|
|
5043 |
this.entityType = entityType;
|
|
|
5044 |
this.userIds = userIds;
|
|
|
5045 |
}
|
|
|
5046 |
|
|
|
5047 |
/**
|
|
|
5048 |
* Performs a deep copy on <i>other</i>.
|
|
|
5049 |
*/
|
|
|
5050 |
public activateEntityMonitoring_args(activateEntityMonitoring_args other) {
|
|
|
5051 |
if (other.isSetEntityType()) {
|
|
|
5052 |
this.entityType = other.entityType;
|
|
|
5053 |
}
|
|
|
5054 |
if (other.isSetUserIds()) {
|
|
|
5055 |
this.userIds = other.userIds;
|
|
|
5056 |
}
|
|
|
5057 |
}
|
|
|
5058 |
|
|
|
5059 |
public activateEntityMonitoring_args deepCopy() {
|
|
|
5060 |
return new activateEntityMonitoring_args(this);
|
|
|
5061 |
}
|
|
|
5062 |
|
|
|
5063 |
@Override
|
|
|
5064 |
public void clear() {
|
|
|
5065 |
this.entityType = null;
|
|
|
5066 |
this.userIds = null;
|
|
|
5067 |
}
|
|
|
5068 |
|
|
|
5069 |
/**
|
|
|
5070 |
*
|
|
|
5071 |
* @see EntityType
|
|
|
5072 |
*/
|
|
|
5073 |
public EntityType getEntityType() {
|
|
|
5074 |
return this.entityType;
|
|
|
5075 |
}
|
|
|
5076 |
|
|
|
5077 |
/**
|
|
|
5078 |
*
|
|
|
5079 |
* @see EntityType
|
|
|
5080 |
*/
|
|
|
5081 |
public void setEntityType(EntityType entityType) {
|
|
|
5082 |
this.entityType = entityType;
|
|
|
5083 |
}
|
|
|
5084 |
|
|
|
5085 |
public void unsetEntityType() {
|
|
|
5086 |
this.entityType = null;
|
|
|
5087 |
}
|
|
|
5088 |
|
|
|
5089 |
/** Returns true if field entityType is set (has been assigned a value) and false otherwise */
|
|
|
5090 |
public boolean isSetEntityType() {
|
|
|
5091 |
return this.entityType != null;
|
|
|
5092 |
}
|
|
|
5093 |
|
|
|
5094 |
public void setEntityTypeIsSet(boolean value) {
|
|
|
5095 |
if (!value) {
|
|
|
5096 |
this.entityType = null;
|
|
|
5097 |
}
|
|
|
5098 |
}
|
|
|
5099 |
|
|
|
5100 |
public String getUserIds() {
|
|
|
5101 |
return this.userIds;
|
|
|
5102 |
}
|
|
|
5103 |
|
|
|
5104 |
public void setUserIds(String userIds) {
|
|
|
5105 |
this.userIds = userIds;
|
|
|
5106 |
}
|
|
|
5107 |
|
|
|
5108 |
public void unsetUserIds() {
|
|
|
5109 |
this.userIds = null;
|
|
|
5110 |
}
|
|
|
5111 |
|
|
|
5112 |
/** Returns true if field userIds is set (has been assigned a value) and false otherwise */
|
|
|
5113 |
public boolean isSetUserIds() {
|
|
|
5114 |
return this.userIds != null;
|
|
|
5115 |
}
|
|
|
5116 |
|
|
|
5117 |
public void setUserIdsIsSet(boolean value) {
|
|
|
5118 |
if (!value) {
|
|
|
5119 |
this.userIds = null;
|
|
|
5120 |
}
|
|
|
5121 |
}
|
|
|
5122 |
|
|
|
5123 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5124 |
switch (field) {
|
|
|
5125 |
case ENTITY_TYPE:
|
|
|
5126 |
if (value == null) {
|
|
|
5127 |
unsetEntityType();
|
|
|
5128 |
} else {
|
|
|
5129 |
setEntityType((EntityType)value);
|
|
|
5130 |
}
|
|
|
5131 |
break;
|
|
|
5132 |
|
|
|
5133 |
case USER_IDS:
|
|
|
5134 |
if (value == null) {
|
|
|
5135 |
unsetUserIds();
|
|
|
5136 |
} else {
|
|
|
5137 |
setUserIds((String)value);
|
|
|
5138 |
}
|
|
|
5139 |
break;
|
|
|
5140 |
|
|
|
5141 |
}
|
|
|
5142 |
}
|
|
|
5143 |
|
|
|
5144 |
public Object getFieldValue(_Fields field) {
|
|
|
5145 |
switch (field) {
|
|
|
5146 |
case ENTITY_TYPE:
|
|
|
5147 |
return getEntityType();
|
|
|
5148 |
|
|
|
5149 |
case USER_IDS:
|
|
|
5150 |
return getUserIds();
|
|
|
5151 |
|
|
|
5152 |
}
|
|
|
5153 |
throw new IllegalStateException();
|
|
|
5154 |
}
|
|
|
5155 |
|
|
|
5156 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5157 |
public boolean isSet(_Fields field) {
|
|
|
5158 |
if (field == null) {
|
|
|
5159 |
throw new IllegalArgumentException();
|
|
|
5160 |
}
|
|
|
5161 |
|
|
|
5162 |
switch (field) {
|
|
|
5163 |
case ENTITY_TYPE:
|
|
|
5164 |
return isSetEntityType();
|
|
|
5165 |
case USER_IDS:
|
|
|
5166 |
return isSetUserIds();
|
|
|
5167 |
}
|
|
|
5168 |
throw new IllegalStateException();
|
|
|
5169 |
}
|
|
|
5170 |
|
|
|
5171 |
@Override
|
|
|
5172 |
public boolean equals(Object that) {
|
|
|
5173 |
if (that == null)
|
|
|
5174 |
return false;
|
|
|
5175 |
if (that instanceof activateEntityMonitoring_args)
|
|
|
5176 |
return this.equals((activateEntityMonitoring_args)that);
|
|
|
5177 |
return false;
|
|
|
5178 |
}
|
|
|
5179 |
|
|
|
5180 |
public boolean equals(activateEntityMonitoring_args that) {
|
|
|
5181 |
if (that == null)
|
|
|
5182 |
return false;
|
|
|
5183 |
|
|
|
5184 |
boolean this_present_entityType = true && this.isSetEntityType();
|
|
|
5185 |
boolean that_present_entityType = true && that.isSetEntityType();
|
|
|
5186 |
if (this_present_entityType || that_present_entityType) {
|
|
|
5187 |
if (!(this_present_entityType && that_present_entityType))
|
|
|
5188 |
return false;
|
|
|
5189 |
if (!this.entityType.equals(that.entityType))
|
|
|
5190 |
return false;
|
|
|
5191 |
}
|
|
|
5192 |
|
|
|
5193 |
boolean this_present_userIds = true && this.isSetUserIds();
|
|
|
5194 |
boolean that_present_userIds = true && that.isSetUserIds();
|
|
|
5195 |
if (this_present_userIds || that_present_userIds) {
|
|
|
5196 |
if (!(this_present_userIds && that_present_userIds))
|
|
|
5197 |
return false;
|
|
|
5198 |
if (!this.userIds.equals(that.userIds))
|
|
|
5199 |
return false;
|
|
|
5200 |
}
|
|
|
5201 |
|
|
|
5202 |
return true;
|
|
|
5203 |
}
|
|
|
5204 |
|
|
|
5205 |
@Override
|
|
|
5206 |
public int hashCode() {
|
|
|
5207 |
return 0;
|
|
|
5208 |
}
|
|
|
5209 |
|
|
|
5210 |
public int compareTo(activateEntityMonitoring_args other) {
|
|
|
5211 |
if (!getClass().equals(other.getClass())) {
|
|
|
5212 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5213 |
}
|
|
|
5214 |
|
|
|
5215 |
int lastComparison = 0;
|
|
|
5216 |
activateEntityMonitoring_args typedOther = (activateEntityMonitoring_args)other;
|
|
|
5217 |
|
|
|
5218 |
lastComparison = Boolean.valueOf(isSetEntityType()).compareTo(typedOther.isSetEntityType());
|
|
|
5219 |
if (lastComparison != 0) {
|
|
|
5220 |
return lastComparison;
|
|
|
5221 |
}
|
|
|
5222 |
if (isSetEntityType()) {
|
|
|
5223 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityType, typedOther.entityType);
|
|
|
5224 |
if (lastComparison != 0) {
|
|
|
5225 |
return lastComparison;
|
|
|
5226 |
}
|
|
|
5227 |
}
|
|
|
5228 |
lastComparison = Boolean.valueOf(isSetUserIds()).compareTo(typedOther.isSetUserIds());
|
|
|
5229 |
if (lastComparison != 0) {
|
|
|
5230 |
return lastComparison;
|
|
|
5231 |
}
|
|
|
5232 |
if (isSetUserIds()) {
|
|
|
5233 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userIds, typedOther.userIds);
|
|
|
5234 |
if (lastComparison != 0) {
|
|
|
5235 |
return lastComparison;
|
|
|
5236 |
}
|
|
|
5237 |
}
|
|
|
5238 |
return 0;
|
|
|
5239 |
}
|
|
|
5240 |
|
|
|
5241 |
public _Fields fieldForId(int fieldId) {
|
|
|
5242 |
return _Fields.findByThriftId(fieldId);
|
|
|
5243 |
}
|
|
|
5244 |
|
|
|
5245 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5246 |
org.apache.thrift.protocol.TField field;
|
|
|
5247 |
iprot.readStructBegin();
|
|
|
5248 |
while (true)
|
|
|
5249 |
{
|
|
|
5250 |
field = iprot.readFieldBegin();
|
|
|
5251 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5252 |
break;
|
|
|
5253 |
}
|
|
|
5254 |
switch (field.id) {
|
|
|
5255 |
case 1: // ENTITY_TYPE
|
|
|
5256 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5257 |
this.entityType = EntityType.findByValue(iprot.readI32());
|
|
|
5258 |
} else {
|
|
|
5259 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5260 |
}
|
|
|
5261 |
break;
|
|
|
5262 |
case 2: // USER_IDS
|
|
|
5263 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5264 |
this.userIds = iprot.readString();
|
|
|
5265 |
} else {
|
|
|
5266 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5267 |
}
|
|
|
5268 |
break;
|
|
|
5269 |
default:
|
|
|
5270 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5271 |
}
|
|
|
5272 |
iprot.readFieldEnd();
|
|
|
5273 |
}
|
|
|
5274 |
iprot.readStructEnd();
|
|
|
5275 |
validate();
|
|
|
5276 |
}
|
|
|
5277 |
|
|
|
5278 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5279 |
validate();
|
|
|
5280 |
|
|
|
5281 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5282 |
if (this.entityType != null) {
|
|
|
5283 |
oprot.writeFieldBegin(ENTITY_TYPE_FIELD_DESC);
|
|
|
5284 |
oprot.writeI32(this.entityType.getValue());
|
|
|
5285 |
oprot.writeFieldEnd();
|
|
|
5286 |
}
|
|
|
5287 |
if (this.userIds != null) {
|
|
|
5288 |
oprot.writeFieldBegin(USER_IDS_FIELD_DESC);
|
|
|
5289 |
oprot.writeString(this.userIds);
|
|
|
5290 |
oprot.writeFieldEnd();
|
|
|
5291 |
}
|
|
|
5292 |
oprot.writeFieldStop();
|
|
|
5293 |
oprot.writeStructEnd();
|
|
|
5294 |
}
|
|
|
5295 |
|
|
|
5296 |
@Override
|
|
|
5297 |
public String toString() {
|
|
|
5298 |
StringBuilder sb = new StringBuilder("activateEntityMonitoring_args(");
|
|
|
5299 |
boolean first = true;
|
|
|
5300 |
|
|
|
5301 |
sb.append("entityType:");
|
|
|
5302 |
if (this.entityType == null) {
|
|
|
5303 |
sb.append("null");
|
|
|
5304 |
} else {
|
|
|
5305 |
sb.append(this.entityType);
|
|
|
5306 |
}
|
|
|
5307 |
first = false;
|
|
|
5308 |
if (!first) sb.append(", ");
|
|
|
5309 |
sb.append("userIds:");
|
|
|
5310 |
if (this.userIds == null) {
|
|
|
5311 |
sb.append("null");
|
|
|
5312 |
} else {
|
|
|
5313 |
sb.append(this.userIds);
|
|
|
5314 |
}
|
|
|
5315 |
first = false;
|
|
|
5316 |
sb.append(")");
|
|
|
5317 |
return sb.toString();
|
|
|
5318 |
}
|
|
|
5319 |
|
|
|
5320 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5321 |
// check for required fields
|
|
|
5322 |
}
|
|
|
5323 |
|
|
|
5324 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5325 |
try {
|
|
|
5326 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5327 |
} catch (org.apache.thrift.TException te) {
|
|
|
5328 |
throw new java.io.IOException(te);
|
|
|
5329 |
}
|
|
|
5330 |
}
|
|
|
5331 |
|
|
|
5332 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5333 |
try {
|
|
|
5334 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5335 |
} catch (org.apache.thrift.TException te) {
|
|
|
5336 |
throw new java.io.IOException(te);
|
|
|
5337 |
}
|
|
|
5338 |
}
|
|
|
5339 |
|
|
|
5340 |
}
|
|
|
5341 |
|
|
|
5342 |
public static class activateEntityMonitoring_result implements org.apache.thrift.TBase<activateEntityMonitoring_result, activateEntityMonitoring_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5343 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("activateEntityMonitoring_result");
|
|
|
5344 |
|
|
|
5345 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
5346 |
|
|
|
5347 |
private AlertServiceException e; // required
|
|
|
5348 |
|
|
|
5349 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5350 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
5351 |
E((short)1, "e");
|
|
|
5352 |
|
|
|
5353 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5354 |
|
|
|
5355 |
static {
|
|
|
5356 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5357 |
byName.put(field.getFieldName(), field);
|
|
|
5358 |
}
|
|
|
5359 |
}
|
|
|
5360 |
|
|
|
5361 |
/**
|
|
|
5362 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5363 |
*/
|
|
|
5364 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5365 |
switch(fieldId) {
|
|
|
5366 |
case 1: // E
|
|
|
5367 |
return E;
|
|
|
5368 |
default:
|
|
|
5369 |
return null;
|
|
|
5370 |
}
|
|
|
5371 |
}
|
|
|
5372 |
|
|
|
5373 |
/**
|
|
|
5374 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5375 |
* if it is not found.
|
|
|
5376 |
*/
|
|
|
5377 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5378 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5379 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5380 |
return fields;
|
|
|
5381 |
}
|
|
|
5382 |
|
|
|
5383 |
/**
|
|
|
5384 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5385 |
*/
|
|
|
5386 |
public static _Fields findByName(String name) {
|
|
|
5387 |
return byName.get(name);
|
|
|
5388 |
}
|
|
|
5389 |
|
|
|
5390 |
private final short _thriftId;
|
|
|
5391 |
private final String _fieldName;
|
|
|
5392 |
|
|
|
5393 |
_Fields(short thriftId, String fieldName) {
|
|
|
5394 |
_thriftId = thriftId;
|
|
|
5395 |
_fieldName = fieldName;
|
|
|
5396 |
}
|
|
|
5397 |
|
|
|
5398 |
public short getThriftFieldId() {
|
|
|
5399 |
return _thriftId;
|
|
|
5400 |
}
|
|
|
5401 |
|
|
|
5402 |
public String getFieldName() {
|
|
|
5403 |
return _fieldName;
|
|
|
5404 |
}
|
|
|
5405 |
}
|
|
|
5406 |
|
|
|
5407 |
// isset id assignments
|
|
|
5408 |
|
|
|
5409 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5410 |
static {
|
|
|
5411 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5412 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5413 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5414 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5415 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(activateEntityMonitoring_result.class, metaDataMap);
|
|
|
5416 |
}
|
|
|
5417 |
|
|
|
5418 |
public activateEntityMonitoring_result() {
|
|
|
5419 |
}
|
|
|
5420 |
|
|
|
5421 |
public activateEntityMonitoring_result(
|
|
|
5422 |
AlertServiceException e)
|
|
|
5423 |
{
|
|
|
5424 |
this();
|
|
|
5425 |
this.e = e;
|
|
|
5426 |
}
|
|
|
5427 |
|
|
|
5428 |
/**
|
|
|
5429 |
* Performs a deep copy on <i>other</i>.
|
|
|
5430 |
*/
|
|
|
5431 |
public activateEntityMonitoring_result(activateEntityMonitoring_result other) {
|
|
|
5432 |
if (other.isSetE()) {
|
|
|
5433 |
this.e = new AlertServiceException(other.e);
|
|
|
5434 |
}
|
|
|
5435 |
}
|
|
|
5436 |
|
|
|
5437 |
public activateEntityMonitoring_result deepCopy() {
|
|
|
5438 |
return new activateEntityMonitoring_result(this);
|
|
|
5439 |
}
|
|
|
5440 |
|
|
|
5441 |
@Override
|
|
|
5442 |
public void clear() {
|
|
|
5443 |
this.e = null;
|
|
|
5444 |
}
|
|
|
5445 |
|
|
|
5446 |
public AlertServiceException getE() {
|
|
|
5447 |
return this.e;
|
|
|
5448 |
}
|
|
|
5449 |
|
|
|
5450 |
public void setE(AlertServiceException e) {
|
|
|
5451 |
this.e = e;
|
|
|
5452 |
}
|
|
|
5453 |
|
|
|
5454 |
public void unsetE() {
|
|
|
5455 |
this.e = null;
|
|
|
5456 |
}
|
|
|
5457 |
|
|
|
5458 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
5459 |
public boolean isSetE() {
|
|
|
5460 |
return this.e != null;
|
|
|
5461 |
}
|
|
|
5462 |
|
|
|
5463 |
public void setEIsSet(boolean value) {
|
|
|
5464 |
if (!value) {
|
|
|
5465 |
this.e = null;
|
|
|
5466 |
}
|
|
|
5467 |
}
|
|
|
5468 |
|
|
|
5469 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5470 |
switch (field) {
|
|
|
5471 |
case E:
|
|
|
5472 |
if (value == null) {
|
|
|
5473 |
unsetE();
|
|
|
5474 |
} else {
|
|
|
5475 |
setE((AlertServiceException)value);
|
|
|
5476 |
}
|
|
|
5477 |
break;
|
|
|
5478 |
|
|
|
5479 |
}
|
|
|
5480 |
}
|
|
|
5481 |
|
|
|
5482 |
public Object getFieldValue(_Fields field) {
|
|
|
5483 |
switch (field) {
|
|
|
5484 |
case E:
|
|
|
5485 |
return getE();
|
|
|
5486 |
|
|
|
5487 |
}
|
|
|
5488 |
throw new IllegalStateException();
|
|
|
5489 |
}
|
|
|
5490 |
|
|
|
5491 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5492 |
public boolean isSet(_Fields field) {
|
|
|
5493 |
if (field == null) {
|
|
|
5494 |
throw new IllegalArgumentException();
|
|
|
5495 |
}
|
|
|
5496 |
|
|
|
5497 |
switch (field) {
|
|
|
5498 |
case E:
|
|
|
5499 |
return isSetE();
|
|
|
5500 |
}
|
|
|
5501 |
throw new IllegalStateException();
|
|
|
5502 |
}
|
|
|
5503 |
|
|
|
5504 |
@Override
|
|
|
5505 |
public boolean equals(Object that) {
|
|
|
5506 |
if (that == null)
|
|
|
5507 |
return false;
|
|
|
5508 |
if (that instanceof activateEntityMonitoring_result)
|
|
|
5509 |
return this.equals((activateEntityMonitoring_result)that);
|
|
|
5510 |
return false;
|
|
|
5511 |
}
|
|
|
5512 |
|
|
|
5513 |
public boolean equals(activateEntityMonitoring_result that) {
|
|
|
5514 |
if (that == null)
|
|
|
5515 |
return false;
|
|
|
5516 |
|
|
|
5517 |
boolean this_present_e = true && this.isSetE();
|
|
|
5518 |
boolean that_present_e = true && that.isSetE();
|
|
|
5519 |
if (this_present_e || that_present_e) {
|
|
|
5520 |
if (!(this_present_e && that_present_e))
|
|
|
5521 |
return false;
|
|
|
5522 |
if (!this.e.equals(that.e))
|
|
|
5523 |
return false;
|
|
|
5524 |
}
|
|
|
5525 |
|
|
|
5526 |
return true;
|
|
|
5527 |
}
|
|
|
5528 |
|
|
|
5529 |
@Override
|
|
|
5530 |
public int hashCode() {
|
|
|
5531 |
return 0;
|
|
|
5532 |
}
|
|
|
5533 |
|
|
|
5534 |
public int compareTo(activateEntityMonitoring_result other) {
|
|
|
5535 |
if (!getClass().equals(other.getClass())) {
|
|
|
5536 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5537 |
}
|
|
|
5538 |
|
|
|
5539 |
int lastComparison = 0;
|
|
|
5540 |
activateEntityMonitoring_result typedOther = (activateEntityMonitoring_result)other;
|
|
|
5541 |
|
|
|
5542 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
5543 |
if (lastComparison != 0) {
|
|
|
5544 |
return lastComparison;
|
|
|
5545 |
}
|
|
|
5546 |
if (isSetE()) {
|
|
|
5547 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
5548 |
if (lastComparison != 0) {
|
|
|
5549 |
return lastComparison;
|
|
|
5550 |
}
|
|
|
5551 |
}
|
|
|
5552 |
return 0;
|
|
|
5553 |
}
|
|
|
5554 |
|
|
|
5555 |
public _Fields fieldForId(int fieldId) {
|
|
|
5556 |
return _Fields.findByThriftId(fieldId);
|
|
|
5557 |
}
|
|
|
5558 |
|
|
|
5559 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5560 |
org.apache.thrift.protocol.TField field;
|
|
|
5561 |
iprot.readStructBegin();
|
|
|
5562 |
while (true)
|
|
|
5563 |
{
|
|
|
5564 |
field = iprot.readFieldBegin();
|
|
|
5565 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5566 |
break;
|
|
|
5567 |
}
|
|
|
5568 |
switch (field.id) {
|
|
|
5569 |
case 1: // E
|
|
|
5570 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5571 |
this.e = new AlertServiceException();
|
|
|
5572 |
this.e.read(iprot);
|
|
|
5573 |
} else {
|
|
|
5574 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5575 |
}
|
|
|
5576 |
break;
|
|
|
5577 |
default:
|
|
|
5578 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5579 |
}
|
|
|
5580 |
iprot.readFieldEnd();
|
|
|
5581 |
}
|
|
|
5582 |
iprot.readStructEnd();
|
|
|
5583 |
validate();
|
|
|
5584 |
}
|
|
|
5585 |
|
|
|
5586 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5587 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5588 |
|
|
|
5589 |
if (this.isSetE()) {
|
|
|
5590 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
5591 |
this.e.write(oprot);
|
|
|
5592 |
oprot.writeFieldEnd();
|
|
|
5593 |
}
|
|
|
5594 |
oprot.writeFieldStop();
|
|
|
5595 |
oprot.writeStructEnd();
|
|
|
5596 |
}
|
|
|
5597 |
|
|
|
5598 |
@Override
|
|
|
5599 |
public String toString() {
|
|
|
5600 |
StringBuilder sb = new StringBuilder("activateEntityMonitoring_result(");
|
|
|
5601 |
boolean first = true;
|
|
|
5602 |
|
|
|
5603 |
sb.append("e:");
|
|
|
5604 |
if (this.e == null) {
|
|
|
5605 |
sb.append("null");
|
|
|
5606 |
} else {
|
|
|
5607 |
sb.append(this.e);
|
|
|
5608 |
}
|
|
|
5609 |
first = false;
|
|
|
5610 |
sb.append(")");
|
|
|
5611 |
return sb.toString();
|
|
|
5612 |
}
|
|
|
5613 |
|
|
|
5614 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5615 |
// check for required fields
|
|
|
5616 |
}
|
|
|
5617 |
|
|
|
5618 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5619 |
try {
|
|
|
5620 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5621 |
} catch (org.apache.thrift.TException te) {
|
|
|
5622 |
throw new java.io.IOException(te);
|
|
|
5623 |
}
|
|
|
5624 |
}
|
|
|
5625 |
|
|
|
5626 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5627 |
try {
|
|
|
5628 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5629 |
} catch (org.apache.thrift.TException te) {
|
|
|
5630 |
throw new java.io.IOException(te);
|
|
|
5631 |
}
|
|
|
5632 |
}
|
|
|
5633 |
|
|
|
5634 |
}
|
|
|
5635 |
|
|
|
5636 |
public static class deActivateEntityMonitoring_args implements org.apache.thrift.TBase<deActivateEntityMonitoring_args, deActivateEntityMonitoring_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5637 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deActivateEntityMonitoring_args");
|
|
|
5638 |
|
|
|
5639 |
private static final org.apache.thrift.protocol.TField ENTITY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("entityType", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
|
5640 |
|
|
|
5641 |
private EntityType entityType; // required
|
|
|
5642 |
|
|
|
5643 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5644 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
5645 |
/**
|
|
|
5646 |
*
|
|
|
5647 |
* @see EntityType
|
|
|
5648 |
*/
|
|
|
5649 |
ENTITY_TYPE((short)1, "entityType");
|
|
|
5650 |
|
|
|
5651 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5652 |
|
|
|
5653 |
static {
|
|
|
5654 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5655 |
byName.put(field.getFieldName(), field);
|
|
|
5656 |
}
|
|
|
5657 |
}
|
|
|
5658 |
|
|
|
5659 |
/**
|
|
|
5660 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5661 |
*/
|
|
|
5662 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5663 |
switch(fieldId) {
|
|
|
5664 |
case 1: // ENTITY_TYPE
|
|
|
5665 |
return ENTITY_TYPE;
|
|
|
5666 |
default:
|
|
|
5667 |
return null;
|
|
|
5668 |
}
|
|
|
5669 |
}
|
|
|
5670 |
|
|
|
5671 |
/**
|
|
|
5672 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5673 |
* if it is not found.
|
|
|
5674 |
*/
|
|
|
5675 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5676 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5677 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5678 |
return fields;
|
|
|
5679 |
}
|
|
|
5680 |
|
|
|
5681 |
/**
|
|
|
5682 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5683 |
*/
|
|
|
5684 |
public static _Fields findByName(String name) {
|
|
|
5685 |
return byName.get(name);
|
|
|
5686 |
}
|
|
|
5687 |
|
|
|
5688 |
private final short _thriftId;
|
|
|
5689 |
private final String _fieldName;
|
|
|
5690 |
|
|
|
5691 |
_Fields(short thriftId, String fieldName) {
|
|
|
5692 |
_thriftId = thriftId;
|
|
|
5693 |
_fieldName = fieldName;
|
|
|
5694 |
}
|
|
|
5695 |
|
|
|
5696 |
public short getThriftFieldId() {
|
|
|
5697 |
return _thriftId;
|
|
|
5698 |
}
|
|
|
5699 |
|
|
|
5700 |
public String getFieldName() {
|
|
|
5701 |
return _fieldName;
|
|
|
5702 |
}
|
|
|
5703 |
}
|
|
|
5704 |
|
|
|
5705 |
// isset id assignments
|
|
|
5706 |
|
|
|
5707 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5708 |
static {
|
|
|
5709 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5710 |
tmpMap.put(_Fields.ENTITY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("entityType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5711 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, EntityType.class)));
|
|
|
5712 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5713 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deActivateEntityMonitoring_args.class, metaDataMap);
|
|
|
5714 |
}
|
|
|
5715 |
|
|
|
5716 |
public deActivateEntityMonitoring_args() {
|
|
|
5717 |
}
|
|
|
5718 |
|
|
|
5719 |
public deActivateEntityMonitoring_args(
|
|
|
5720 |
EntityType entityType)
|
|
|
5721 |
{
|
|
|
5722 |
this();
|
|
|
5723 |
this.entityType = entityType;
|
|
|
5724 |
}
|
|
|
5725 |
|
|
|
5726 |
/**
|
|
|
5727 |
* Performs a deep copy on <i>other</i>.
|
|
|
5728 |
*/
|
|
|
5729 |
public deActivateEntityMonitoring_args(deActivateEntityMonitoring_args other) {
|
|
|
5730 |
if (other.isSetEntityType()) {
|
|
|
5731 |
this.entityType = other.entityType;
|
|
|
5732 |
}
|
|
|
5733 |
}
|
|
|
5734 |
|
|
|
5735 |
public deActivateEntityMonitoring_args deepCopy() {
|
|
|
5736 |
return new deActivateEntityMonitoring_args(this);
|
|
|
5737 |
}
|
|
|
5738 |
|
|
|
5739 |
@Override
|
|
|
5740 |
public void clear() {
|
|
|
5741 |
this.entityType = null;
|
|
|
5742 |
}
|
|
|
5743 |
|
|
|
5744 |
/**
|
|
|
5745 |
*
|
|
|
5746 |
* @see EntityType
|
|
|
5747 |
*/
|
|
|
5748 |
public EntityType getEntityType() {
|
|
|
5749 |
return this.entityType;
|
|
|
5750 |
}
|
|
|
5751 |
|
|
|
5752 |
/**
|
|
|
5753 |
*
|
|
|
5754 |
* @see EntityType
|
|
|
5755 |
*/
|
|
|
5756 |
public void setEntityType(EntityType entityType) {
|
|
|
5757 |
this.entityType = entityType;
|
|
|
5758 |
}
|
|
|
5759 |
|
|
|
5760 |
public void unsetEntityType() {
|
|
|
5761 |
this.entityType = null;
|
|
|
5762 |
}
|
|
|
5763 |
|
|
|
5764 |
/** Returns true if field entityType is set (has been assigned a value) and false otherwise */
|
|
|
5765 |
public boolean isSetEntityType() {
|
|
|
5766 |
return this.entityType != null;
|
|
|
5767 |
}
|
|
|
5768 |
|
|
|
5769 |
public void setEntityTypeIsSet(boolean value) {
|
|
|
5770 |
if (!value) {
|
|
|
5771 |
this.entityType = null;
|
|
|
5772 |
}
|
|
|
5773 |
}
|
|
|
5774 |
|
|
|
5775 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5776 |
switch (field) {
|
|
|
5777 |
case ENTITY_TYPE:
|
|
|
5778 |
if (value == null) {
|
|
|
5779 |
unsetEntityType();
|
|
|
5780 |
} else {
|
|
|
5781 |
setEntityType((EntityType)value);
|
|
|
5782 |
}
|
|
|
5783 |
break;
|
|
|
5784 |
|
|
|
5785 |
}
|
|
|
5786 |
}
|
|
|
5787 |
|
|
|
5788 |
public Object getFieldValue(_Fields field) {
|
|
|
5789 |
switch (field) {
|
|
|
5790 |
case ENTITY_TYPE:
|
|
|
5791 |
return getEntityType();
|
|
|
5792 |
|
|
|
5793 |
}
|
|
|
5794 |
throw new IllegalStateException();
|
|
|
5795 |
}
|
|
|
5796 |
|
|
|
5797 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5798 |
public boolean isSet(_Fields field) {
|
|
|
5799 |
if (field == null) {
|
|
|
5800 |
throw new IllegalArgumentException();
|
|
|
5801 |
}
|
|
|
5802 |
|
|
|
5803 |
switch (field) {
|
|
|
5804 |
case ENTITY_TYPE:
|
|
|
5805 |
return isSetEntityType();
|
|
|
5806 |
}
|
|
|
5807 |
throw new IllegalStateException();
|
|
|
5808 |
}
|
|
|
5809 |
|
|
|
5810 |
@Override
|
|
|
5811 |
public boolean equals(Object that) {
|
|
|
5812 |
if (that == null)
|
|
|
5813 |
return false;
|
|
|
5814 |
if (that instanceof deActivateEntityMonitoring_args)
|
|
|
5815 |
return this.equals((deActivateEntityMonitoring_args)that);
|
|
|
5816 |
return false;
|
|
|
5817 |
}
|
|
|
5818 |
|
|
|
5819 |
public boolean equals(deActivateEntityMonitoring_args that) {
|
|
|
5820 |
if (that == null)
|
|
|
5821 |
return false;
|
|
|
5822 |
|
|
|
5823 |
boolean this_present_entityType = true && this.isSetEntityType();
|
|
|
5824 |
boolean that_present_entityType = true && that.isSetEntityType();
|
|
|
5825 |
if (this_present_entityType || that_present_entityType) {
|
|
|
5826 |
if (!(this_present_entityType && that_present_entityType))
|
|
|
5827 |
return false;
|
|
|
5828 |
if (!this.entityType.equals(that.entityType))
|
|
|
5829 |
return false;
|
|
|
5830 |
}
|
|
|
5831 |
|
|
|
5832 |
return true;
|
|
|
5833 |
}
|
|
|
5834 |
|
|
|
5835 |
@Override
|
|
|
5836 |
public int hashCode() {
|
|
|
5837 |
return 0;
|
|
|
5838 |
}
|
|
|
5839 |
|
|
|
5840 |
public int compareTo(deActivateEntityMonitoring_args other) {
|
|
|
5841 |
if (!getClass().equals(other.getClass())) {
|
|
|
5842 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5843 |
}
|
|
|
5844 |
|
|
|
5845 |
int lastComparison = 0;
|
|
|
5846 |
deActivateEntityMonitoring_args typedOther = (deActivateEntityMonitoring_args)other;
|
|
|
5847 |
|
|
|
5848 |
lastComparison = Boolean.valueOf(isSetEntityType()).compareTo(typedOther.isSetEntityType());
|
|
|
5849 |
if (lastComparison != 0) {
|
|
|
5850 |
return lastComparison;
|
|
|
5851 |
}
|
|
|
5852 |
if (isSetEntityType()) {
|
|
|
5853 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityType, typedOther.entityType);
|
|
|
5854 |
if (lastComparison != 0) {
|
|
|
5855 |
return lastComparison;
|
|
|
5856 |
}
|
|
|
5857 |
}
|
|
|
5858 |
return 0;
|
|
|
5859 |
}
|
|
|
5860 |
|
|
|
5861 |
public _Fields fieldForId(int fieldId) {
|
|
|
5862 |
return _Fields.findByThriftId(fieldId);
|
|
|
5863 |
}
|
|
|
5864 |
|
|
|
5865 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5866 |
org.apache.thrift.protocol.TField field;
|
|
|
5867 |
iprot.readStructBegin();
|
|
|
5868 |
while (true)
|
|
|
5869 |
{
|
|
|
5870 |
field = iprot.readFieldBegin();
|
|
|
5871 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5872 |
break;
|
|
|
5873 |
}
|
|
|
5874 |
switch (field.id) {
|
|
|
5875 |
case 1: // ENTITY_TYPE
|
|
|
5876 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5877 |
this.entityType = EntityType.findByValue(iprot.readI32());
|
|
|
5878 |
} else {
|
|
|
5879 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5880 |
}
|
|
|
5881 |
break;
|
|
|
5882 |
default:
|
|
|
5883 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5884 |
}
|
|
|
5885 |
iprot.readFieldEnd();
|
|
|
5886 |
}
|
|
|
5887 |
iprot.readStructEnd();
|
|
|
5888 |
validate();
|
|
|
5889 |
}
|
|
|
5890 |
|
|
|
5891 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5892 |
validate();
|
|
|
5893 |
|
|
|
5894 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5895 |
if (this.entityType != null) {
|
|
|
5896 |
oprot.writeFieldBegin(ENTITY_TYPE_FIELD_DESC);
|
|
|
5897 |
oprot.writeI32(this.entityType.getValue());
|
|
|
5898 |
oprot.writeFieldEnd();
|
|
|
5899 |
}
|
|
|
5900 |
oprot.writeFieldStop();
|
|
|
5901 |
oprot.writeStructEnd();
|
|
|
5902 |
}
|
|
|
5903 |
|
|
|
5904 |
@Override
|
|
|
5905 |
public String toString() {
|
|
|
5906 |
StringBuilder sb = new StringBuilder("deActivateEntityMonitoring_args(");
|
|
|
5907 |
boolean first = true;
|
|
|
5908 |
|
|
|
5909 |
sb.append("entityType:");
|
|
|
5910 |
if (this.entityType == null) {
|
|
|
5911 |
sb.append("null");
|
|
|
5912 |
} else {
|
|
|
5913 |
sb.append(this.entityType);
|
|
|
5914 |
}
|
|
|
5915 |
first = false;
|
|
|
5916 |
sb.append(")");
|
|
|
5917 |
return sb.toString();
|
|
|
5918 |
}
|
|
|
5919 |
|
|
|
5920 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5921 |
// check for required fields
|
|
|
5922 |
}
|
|
|
5923 |
|
|
|
5924 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5925 |
try {
|
|
|
5926 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5927 |
} catch (org.apache.thrift.TException te) {
|
|
|
5928 |
throw new java.io.IOException(te);
|
|
|
5929 |
}
|
|
|
5930 |
}
|
|
|
5931 |
|
|
|
5932 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5933 |
try {
|
|
|
5934 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5935 |
} catch (org.apache.thrift.TException te) {
|
|
|
5936 |
throw new java.io.IOException(te);
|
|
|
5937 |
}
|
|
|
5938 |
}
|
|
|
5939 |
|
|
|
5940 |
}
|
|
|
5941 |
|
|
|
5942 |
public static class deActivateEntityMonitoring_result implements org.apache.thrift.TBase<deActivateEntityMonitoring_result, deActivateEntityMonitoring_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5943 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deActivateEntityMonitoring_result");
|
|
|
5944 |
|
|
|
5945 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
5946 |
|
|
|
5947 |
private AlertServiceException e; // required
|
|
|
5948 |
|
|
|
5949 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5950 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
5951 |
E((short)1, "e");
|
|
|
5952 |
|
|
|
5953 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5954 |
|
|
|
5955 |
static {
|
|
|
5956 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5957 |
byName.put(field.getFieldName(), field);
|
|
|
5958 |
}
|
|
|
5959 |
}
|
|
|
5960 |
|
|
|
5961 |
/**
|
|
|
5962 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5963 |
*/
|
|
|
5964 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5965 |
switch(fieldId) {
|
|
|
5966 |
case 1: // E
|
|
|
5967 |
return E;
|
|
|
5968 |
default:
|
|
|
5969 |
return null;
|
|
|
5970 |
}
|
|
|
5971 |
}
|
|
|
5972 |
|
|
|
5973 |
/**
|
|
|
5974 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5975 |
* if it is not found.
|
|
|
5976 |
*/
|
|
|
5977 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5978 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5979 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5980 |
return fields;
|
|
|
5981 |
}
|
|
|
5982 |
|
|
|
5983 |
/**
|
|
|
5984 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5985 |
*/
|
|
|
5986 |
public static _Fields findByName(String name) {
|
|
|
5987 |
return byName.get(name);
|
|
|
5988 |
}
|
|
|
5989 |
|
|
|
5990 |
private final short _thriftId;
|
|
|
5991 |
private final String _fieldName;
|
|
|
5992 |
|
|
|
5993 |
_Fields(short thriftId, String fieldName) {
|
|
|
5994 |
_thriftId = thriftId;
|
|
|
5995 |
_fieldName = fieldName;
|
|
|
5996 |
}
|
|
|
5997 |
|
|
|
5998 |
public short getThriftFieldId() {
|
|
|
5999 |
return _thriftId;
|
|
|
6000 |
}
|
|
|
6001 |
|
|
|
6002 |
public String getFieldName() {
|
|
|
6003 |
return _fieldName;
|
|
|
6004 |
}
|
|
|
6005 |
}
|
|
|
6006 |
|
|
|
6007 |
// isset id assignments
|
|
|
6008 |
|
|
|
6009 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6010 |
static {
|
|
|
6011 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6012 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6013 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6014 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6015 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deActivateEntityMonitoring_result.class, metaDataMap);
|
|
|
6016 |
}
|
|
|
6017 |
|
|
|
6018 |
public deActivateEntityMonitoring_result() {
|
|
|
6019 |
}
|
|
|
6020 |
|
|
|
6021 |
public deActivateEntityMonitoring_result(
|
|
|
6022 |
AlertServiceException e)
|
|
|
6023 |
{
|
|
|
6024 |
this();
|
|
|
6025 |
this.e = e;
|
|
|
6026 |
}
|
|
|
6027 |
|
|
|
6028 |
/**
|
|
|
6029 |
* Performs a deep copy on <i>other</i>.
|
|
|
6030 |
*/
|
|
|
6031 |
public deActivateEntityMonitoring_result(deActivateEntityMonitoring_result other) {
|
|
|
6032 |
if (other.isSetE()) {
|
|
|
6033 |
this.e = new AlertServiceException(other.e);
|
|
|
6034 |
}
|
|
|
6035 |
}
|
|
|
6036 |
|
|
|
6037 |
public deActivateEntityMonitoring_result deepCopy() {
|
|
|
6038 |
return new deActivateEntityMonitoring_result(this);
|
|
|
6039 |
}
|
|
|
6040 |
|
|
|
6041 |
@Override
|
|
|
6042 |
public void clear() {
|
|
|
6043 |
this.e = null;
|
|
|
6044 |
}
|
|
|
6045 |
|
|
|
6046 |
public AlertServiceException getE() {
|
|
|
6047 |
return this.e;
|
|
|
6048 |
}
|
|
|
6049 |
|
|
|
6050 |
public void setE(AlertServiceException e) {
|
|
|
6051 |
this.e = e;
|
|
|
6052 |
}
|
|
|
6053 |
|
|
|
6054 |
public void unsetE() {
|
|
|
6055 |
this.e = null;
|
|
|
6056 |
}
|
|
|
6057 |
|
|
|
6058 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
6059 |
public boolean isSetE() {
|
|
|
6060 |
return this.e != null;
|
|
|
6061 |
}
|
|
|
6062 |
|
|
|
6063 |
public void setEIsSet(boolean value) {
|
|
|
6064 |
if (!value) {
|
|
|
6065 |
this.e = null;
|
|
|
6066 |
}
|
|
|
6067 |
}
|
|
|
6068 |
|
|
|
6069 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6070 |
switch (field) {
|
|
|
6071 |
case E:
|
|
|
6072 |
if (value == null) {
|
|
|
6073 |
unsetE();
|
|
|
6074 |
} else {
|
|
|
6075 |
setE((AlertServiceException)value);
|
|
|
6076 |
}
|
|
|
6077 |
break;
|
|
|
6078 |
|
|
|
6079 |
}
|
|
|
6080 |
}
|
|
|
6081 |
|
|
|
6082 |
public Object getFieldValue(_Fields field) {
|
|
|
6083 |
switch (field) {
|
|
|
6084 |
case E:
|
|
|
6085 |
return getE();
|
|
|
6086 |
|
|
|
6087 |
}
|
|
|
6088 |
throw new IllegalStateException();
|
|
|
6089 |
}
|
|
|
6090 |
|
|
|
6091 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6092 |
public boolean isSet(_Fields field) {
|
|
|
6093 |
if (field == null) {
|
|
|
6094 |
throw new IllegalArgumentException();
|
|
|
6095 |
}
|
|
|
6096 |
|
|
|
6097 |
switch (field) {
|
|
|
6098 |
case E:
|
|
|
6099 |
return isSetE();
|
|
|
6100 |
}
|
|
|
6101 |
throw new IllegalStateException();
|
|
|
6102 |
}
|
|
|
6103 |
|
|
|
6104 |
@Override
|
|
|
6105 |
public boolean equals(Object that) {
|
|
|
6106 |
if (that == null)
|
|
|
6107 |
return false;
|
|
|
6108 |
if (that instanceof deActivateEntityMonitoring_result)
|
|
|
6109 |
return this.equals((deActivateEntityMonitoring_result)that);
|
|
|
6110 |
return false;
|
|
|
6111 |
}
|
|
|
6112 |
|
|
|
6113 |
public boolean equals(deActivateEntityMonitoring_result that) {
|
|
|
6114 |
if (that == null)
|
|
|
6115 |
return false;
|
|
|
6116 |
|
|
|
6117 |
boolean this_present_e = true && this.isSetE();
|
|
|
6118 |
boolean that_present_e = true && that.isSetE();
|
|
|
6119 |
if (this_present_e || that_present_e) {
|
|
|
6120 |
if (!(this_present_e && that_present_e))
|
|
|
6121 |
return false;
|
|
|
6122 |
if (!this.e.equals(that.e))
|
|
|
6123 |
return false;
|
|
|
6124 |
}
|
|
|
6125 |
|
|
|
6126 |
return true;
|
|
|
6127 |
}
|
|
|
6128 |
|
|
|
6129 |
@Override
|
|
|
6130 |
public int hashCode() {
|
|
|
6131 |
return 0;
|
|
|
6132 |
}
|
|
|
6133 |
|
|
|
6134 |
public int compareTo(deActivateEntityMonitoring_result other) {
|
|
|
6135 |
if (!getClass().equals(other.getClass())) {
|
|
|
6136 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6137 |
}
|
|
|
6138 |
|
|
|
6139 |
int lastComparison = 0;
|
|
|
6140 |
deActivateEntityMonitoring_result typedOther = (deActivateEntityMonitoring_result)other;
|
|
|
6141 |
|
|
|
6142 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
6143 |
if (lastComparison != 0) {
|
|
|
6144 |
return lastComparison;
|
|
|
6145 |
}
|
|
|
6146 |
if (isSetE()) {
|
|
|
6147 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
6148 |
if (lastComparison != 0) {
|
|
|
6149 |
return lastComparison;
|
|
|
6150 |
}
|
|
|
6151 |
}
|
|
|
6152 |
return 0;
|
|
|
6153 |
}
|
|
|
6154 |
|
|
|
6155 |
public _Fields fieldForId(int fieldId) {
|
|
|
6156 |
return _Fields.findByThriftId(fieldId);
|
|
|
6157 |
}
|
|
|
6158 |
|
|
|
6159 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6160 |
org.apache.thrift.protocol.TField field;
|
|
|
6161 |
iprot.readStructBegin();
|
|
|
6162 |
while (true)
|
|
|
6163 |
{
|
|
|
6164 |
field = iprot.readFieldBegin();
|
|
|
6165 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6166 |
break;
|
|
|
6167 |
}
|
|
|
6168 |
switch (field.id) {
|
|
|
6169 |
case 1: // E
|
|
|
6170 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6171 |
this.e = new AlertServiceException();
|
|
|
6172 |
this.e.read(iprot);
|
|
|
6173 |
} else {
|
|
|
6174 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6175 |
}
|
|
|
6176 |
break;
|
|
|
6177 |
default:
|
|
|
6178 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6179 |
}
|
|
|
6180 |
iprot.readFieldEnd();
|
|
|
6181 |
}
|
|
|
6182 |
iprot.readStructEnd();
|
|
|
6183 |
validate();
|
|
|
6184 |
}
|
|
|
6185 |
|
|
|
6186 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6187 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6188 |
|
|
|
6189 |
if (this.isSetE()) {
|
|
|
6190 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
6191 |
this.e.write(oprot);
|
|
|
6192 |
oprot.writeFieldEnd();
|
|
|
6193 |
}
|
|
|
6194 |
oprot.writeFieldStop();
|
|
|
6195 |
oprot.writeStructEnd();
|
|
|
6196 |
}
|
|
|
6197 |
|
|
|
6198 |
@Override
|
|
|
6199 |
public String toString() {
|
|
|
6200 |
StringBuilder sb = new StringBuilder("deActivateEntityMonitoring_result(");
|
|
|
6201 |
boolean first = true;
|
|
|
6202 |
|
|
|
6203 |
sb.append("e:");
|
|
|
6204 |
if (this.e == null) {
|
|
|
6205 |
sb.append("null");
|
|
|
6206 |
} else {
|
|
|
6207 |
sb.append(this.e);
|
|
|
6208 |
}
|
|
|
6209 |
first = false;
|
|
|
6210 |
sb.append(")");
|
|
|
6211 |
return sb.toString();
|
|
|
6212 |
}
|
|
|
6213 |
|
|
|
6214 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6215 |
// check for required fields
|
|
|
6216 |
}
|
|
|
6217 |
|
|
|
6218 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6219 |
try {
|
|
|
6220 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6221 |
} catch (org.apache.thrift.TException te) {
|
|
|
6222 |
throw new java.io.IOException(te);
|
|
|
6223 |
}
|
|
|
6224 |
}
|
|
|
6225 |
|
|
|
6226 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6227 |
try {
|
|
|
6228 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6229 |
} catch (org.apache.thrift.TException te) {
|
|
|
6230 |
throw new java.io.IOException(te);
|
|
|
6231 |
}
|
|
|
6232 |
}
|
|
|
6233 |
|
|
|
6234 |
}
|
|
|
6235 |
|
|
|
6236 |
public static class registerEventType_args implements org.apache.thrift.TBase<registerEventType_args, registerEventType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6237 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerEventType_args");
|
|
|
6238 |
|
|
|
6239 |
private static final org.apache.thrift.protocol.TField ALERT_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("alertMap", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
6240 |
|
|
|
6241 |
private AlertMapper alertMap; // required
|
|
|
6242 |
|
|
|
6243 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6244 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6245 |
ALERT_MAP((short)1, "alertMap");
|
|
|
6246 |
|
|
|
6247 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6248 |
|
|
|
6249 |
static {
|
|
|
6250 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6251 |
byName.put(field.getFieldName(), field);
|
|
|
6252 |
}
|
|
|
6253 |
}
|
|
|
6254 |
|
|
|
6255 |
/**
|
|
|
6256 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6257 |
*/
|
|
|
6258 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6259 |
switch(fieldId) {
|
|
|
6260 |
case 1: // ALERT_MAP
|
|
|
6261 |
return ALERT_MAP;
|
|
|
6262 |
default:
|
|
|
6263 |
return null;
|
|
|
6264 |
}
|
|
|
6265 |
}
|
|
|
6266 |
|
|
|
6267 |
/**
|
|
|
6268 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6269 |
* if it is not found.
|
|
|
6270 |
*/
|
|
|
6271 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6272 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6273 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6274 |
return fields;
|
|
|
6275 |
}
|
|
|
6276 |
|
|
|
6277 |
/**
|
|
|
6278 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6279 |
*/
|
|
|
6280 |
public static _Fields findByName(String name) {
|
|
|
6281 |
return byName.get(name);
|
|
|
6282 |
}
|
|
|
6283 |
|
|
|
6284 |
private final short _thriftId;
|
|
|
6285 |
private final String _fieldName;
|
|
|
6286 |
|
|
|
6287 |
_Fields(short thriftId, String fieldName) {
|
|
|
6288 |
_thriftId = thriftId;
|
|
|
6289 |
_fieldName = fieldName;
|
|
|
6290 |
}
|
|
|
6291 |
|
|
|
6292 |
public short getThriftFieldId() {
|
|
|
6293 |
return _thriftId;
|
|
|
6294 |
}
|
|
|
6295 |
|
|
|
6296 |
public String getFieldName() {
|
|
|
6297 |
return _fieldName;
|
|
|
6298 |
}
|
|
|
6299 |
}
|
|
|
6300 |
|
|
|
6301 |
// isset id assignments
|
|
|
6302 |
|
|
|
6303 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6304 |
static {
|
|
|
6305 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6306 |
tmpMap.put(_Fields.ALERT_MAP, new org.apache.thrift.meta_data.FieldMetaData("alertMap", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6307 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlertMapper.class)));
|
|
|
6308 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6309 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerEventType_args.class, metaDataMap);
|
|
|
6310 |
}
|
|
|
6311 |
|
|
|
6312 |
public registerEventType_args() {
|
|
|
6313 |
}
|
|
|
6314 |
|
|
|
6315 |
public registerEventType_args(
|
|
|
6316 |
AlertMapper alertMap)
|
|
|
6317 |
{
|
|
|
6318 |
this();
|
|
|
6319 |
this.alertMap = alertMap;
|
|
|
6320 |
}
|
|
|
6321 |
|
|
|
6322 |
/**
|
|
|
6323 |
* Performs a deep copy on <i>other</i>.
|
|
|
6324 |
*/
|
|
|
6325 |
public registerEventType_args(registerEventType_args other) {
|
|
|
6326 |
if (other.isSetAlertMap()) {
|
|
|
6327 |
this.alertMap = new AlertMapper(other.alertMap);
|
|
|
6328 |
}
|
|
|
6329 |
}
|
|
|
6330 |
|
|
|
6331 |
public registerEventType_args deepCopy() {
|
|
|
6332 |
return new registerEventType_args(this);
|
|
|
6333 |
}
|
|
|
6334 |
|
|
|
6335 |
@Override
|
|
|
6336 |
public void clear() {
|
|
|
6337 |
this.alertMap = null;
|
|
|
6338 |
}
|
|
|
6339 |
|
|
|
6340 |
public AlertMapper getAlertMap() {
|
|
|
6341 |
return this.alertMap;
|
|
|
6342 |
}
|
|
|
6343 |
|
|
|
6344 |
public void setAlertMap(AlertMapper alertMap) {
|
|
|
6345 |
this.alertMap = alertMap;
|
|
|
6346 |
}
|
|
|
6347 |
|
|
|
6348 |
public void unsetAlertMap() {
|
|
|
6349 |
this.alertMap = null;
|
|
|
6350 |
}
|
|
|
6351 |
|
|
|
6352 |
/** Returns true if field alertMap is set (has been assigned a value) and false otherwise */
|
|
|
6353 |
public boolean isSetAlertMap() {
|
|
|
6354 |
return this.alertMap != null;
|
|
|
6355 |
}
|
|
|
6356 |
|
|
|
6357 |
public void setAlertMapIsSet(boolean value) {
|
|
|
6358 |
if (!value) {
|
|
|
6359 |
this.alertMap = null;
|
|
|
6360 |
}
|
|
|
6361 |
}
|
|
|
6362 |
|
|
|
6363 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6364 |
switch (field) {
|
|
|
6365 |
case ALERT_MAP:
|
|
|
6366 |
if (value == null) {
|
|
|
6367 |
unsetAlertMap();
|
|
|
6368 |
} else {
|
|
|
6369 |
setAlertMap((AlertMapper)value);
|
|
|
6370 |
}
|
|
|
6371 |
break;
|
|
|
6372 |
|
|
|
6373 |
}
|
|
|
6374 |
}
|
|
|
6375 |
|
|
|
6376 |
public Object getFieldValue(_Fields field) {
|
|
|
6377 |
switch (field) {
|
|
|
6378 |
case ALERT_MAP:
|
|
|
6379 |
return getAlertMap();
|
|
|
6380 |
|
|
|
6381 |
}
|
|
|
6382 |
throw new IllegalStateException();
|
|
|
6383 |
}
|
|
|
6384 |
|
|
|
6385 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6386 |
public boolean isSet(_Fields field) {
|
|
|
6387 |
if (field == null) {
|
|
|
6388 |
throw new IllegalArgumentException();
|
|
|
6389 |
}
|
|
|
6390 |
|
|
|
6391 |
switch (field) {
|
|
|
6392 |
case ALERT_MAP:
|
|
|
6393 |
return isSetAlertMap();
|
|
|
6394 |
}
|
|
|
6395 |
throw new IllegalStateException();
|
|
|
6396 |
}
|
|
|
6397 |
|
|
|
6398 |
@Override
|
|
|
6399 |
public boolean equals(Object that) {
|
|
|
6400 |
if (that == null)
|
|
|
6401 |
return false;
|
|
|
6402 |
if (that instanceof registerEventType_args)
|
|
|
6403 |
return this.equals((registerEventType_args)that);
|
|
|
6404 |
return false;
|
|
|
6405 |
}
|
|
|
6406 |
|
|
|
6407 |
public boolean equals(registerEventType_args that) {
|
|
|
6408 |
if (that == null)
|
|
|
6409 |
return false;
|
|
|
6410 |
|
|
|
6411 |
boolean this_present_alertMap = true && this.isSetAlertMap();
|
|
|
6412 |
boolean that_present_alertMap = true && that.isSetAlertMap();
|
|
|
6413 |
if (this_present_alertMap || that_present_alertMap) {
|
|
|
6414 |
if (!(this_present_alertMap && that_present_alertMap))
|
|
|
6415 |
return false;
|
|
|
6416 |
if (!this.alertMap.equals(that.alertMap))
|
|
|
6417 |
return false;
|
|
|
6418 |
}
|
|
|
6419 |
|
|
|
6420 |
return true;
|
|
|
6421 |
}
|
|
|
6422 |
|
|
|
6423 |
@Override
|
|
|
6424 |
public int hashCode() {
|
|
|
6425 |
return 0;
|
|
|
6426 |
}
|
|
|
6427 |
|
|
|
6428 |
public int compareTo(registerEventType_args other) {
|
|
|
6429 |
if (!getClass().equals(other.getClass())) {
|
|
|
6430 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6431 |
}
|
|
|
6432 |
|
|
|
6433 |
int lastComparison = 0;
|
|
|
6434 |
registerEventType_args typedOther = (registerEventType_args)other;
|
|
|
6435 |
|
|
|
6436 |
lastComparison = Boolean.valueOf(isSetAlertMap()).compareTo(typedOther.isSetAlertMap());
|
|
|
6437 |
if (lastComparison != 0) {
|
|
|
6438 |
return lastComparison;
|
|
|
6439 |
}
|
|
|
6440 |
if (isSetAlertMap()) {
|
|
|
6441 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.alertMap, typedOther.alertMap);
|
|
|
6442 |
if (lastComparison != 0) {
|
|
|
6443 |
return lastComparison;
|
|
|
6444 |
}
|
|
|
6445 |
}
|
|
|
6446 |
return 0;
|
|
|
6447 |
}
|
|
|
6448 |
|
|
|
6449 |
public _Fields fieldForId(int fieldId) {
|
|
|
6450 |
return _Fields.findByThriftId(fieldId);
|
|
|
6451 |
}
|
|
|
6452 |
|
|
|
6453 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6454 |
org.apache.thrift.protocol.TField field;
|
|
|
6455 |
iprot.readStructBegin();
|
|
|
6456 |
while (true)
|
|
|
6457 |
{
|
|
|
6458 |
field = iprot.readFieldBegin();
|
|
|
6459 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6460 |
break;
|
|
|
6461 |
}
|
|
|
6462 |
switch (field.id) {
|
|
|
6463 |
case 1: // ALERT_MAP
|
|
|
6464 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6465 |
this.alertMap = new AlertMapper();
|
|
|
6466 |
this.alertMap.read(iprot);
|
|
|
6467 |
} else {
|
|
|
6468 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6469 |
}
|
|
|
6470 |
break;
|
|
|
6471 |
default:
|
|
|
6472 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6473 |
}
|
|
|
6474 |
iprot.readFieldEnd();
|
|
|
6475 |
}
|
|
|
6476 |
iprot.readStructEnd();
|
|
|
6477 |
validate();
|
|
|
6478 |
}
|
|
|
6479 |
|
|
|
6480 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6481 |
validate();
|
|
|
6482 |
|
|
|
6483 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6484 |
if (this.alertMap != null) {
|
|
|
6485 |
oprot.writeFieldBegin(ALERT_MAP_FIELD_DESC);
|
|
|
6486 |
this.alertMap.write(oprot);
|
|
|
6487 |
oprot.writeFieldEnd();
|
|
|
6488 |
}
|
|
|
6489 |
oprot.writeFieldStop();
|
|
|
6490 |
oprot.writeStructEnd();
|
|
|
6491 |
}
|
|
|
6492 |
|
|
|
6493 |
@Override
|
|
|
6494 |
public String toString() {
|
|
|
6495 |
StringBuilder sb = new StringBuilder("registerEventType_args(");
|
|
|
6496 |
boolean first = true;
|
|
|
6497 |
|
|
|
6498 |
sb.append("alertMap:");
|
|
|
6499 |
if (this.alertMap == null) {
|
|
|
6500 |
sb.append("null");
|
|
|
6501 |
} else {
|
|
|
6502 |
sb.append(this.alertMap);
|
|
|
6503 |
}
|
|
|
6504 |
first = false;
|
|
|
6505 |
sb.append(")");
|
|
|
6506 |
return sb.toString();
|
|
|
6507 |
}
|
|
|
6508 |
|
|
|
6509 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6510 |
// check for required fields
|
|
|
6511 |
}
|
|
|
6512 |
|
|
|
6513 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6514 |
try {
|
|
|
6515 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6516 |
} catch (org.apache.thrift.TException te) {
|
|
|
6517 |
throw new java.io.IOException(te);
|
|
|
6518 |
}
|
|
|
6519 |
}
|
|
|
6520 |
|
|
|
6521 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6522 |
try {
|
|
|
6523 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6524 |
} catch (org.apache.thrift.TException te) {
|
|
|
6525 |
throw new java.io.IOException(te);
|
|
|
6526 |
}
|
|
|
6527 |
}
|
|
|
6528 |
|
|
|
6529 |
}
|
|
|
6530 |
|
|
|
6531 |
public static class registerEventType_result implements org.apache.thrift.TBase<registerEventType_result, registerEventType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6532 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerEventType_result");
|
|
|
6533 |
|
|
|
6534 |
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
6535 |
|
|
|
6536 |
private AlertServiceException e; // required
|
|
|
6537 |
|
|
|
6538 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6539 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6540 |
E((short)1, "e");
|
|
|
6541 |
|
|
|
6542 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6543 |
|
|
|
6544 |
static {
|
|
|
6545 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6546 |
byName.put(field.getFieldName(), field);
|
|
|
6547 |
}
|
|
|
6548 |
}
|
|
|
6549 |
|
|
|
6550 |
/**
|
|
|
6551 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6552 |
*/
|
|
|
6553 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6554 |
switch(fieldId) {
|
|
|
6555 |
case 1: // E
|
|
|
6556 |
return E;
|
|
|
6557 |
default:
|
|
|
6558 |
return null;
|
|
|
6559 |
}
|
|
|
6560 |
}
|
|
|
6561 |
|
|
|
6562 |
/**
|
|
|
6563 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6564 |
* if it is not found.
|
|
|
6565 |
*/
|
|
|
6566 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6567 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6568 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6569 |
return fields;
|
|
|
6570 |
}
|
|
|
6571 |
|
|
|
6572 |
/**
|
|
|
6573 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6574 |
*/
|
|
|
6575 |
public static _Fields findByName(String name) {
|
|
|
6576 |
return byName.get(name);
|
|
|
6577 |
}
|
|
|
6578 |
|
|
|
6579 |
private final short _thriftId;
|
|
|
6580 |
private final String _fieldName;
|
|
|
6581 |
|
|
|
6582 |
_Fields(short thriftId, String fieldName) {
|
|
|
6583 |
_thriftId = thriftId;
|
|
|
6584 |
_fieldName = fieldName;
|
|
|
6585 |
}
|
|
|
6586 |
|
|
|
6587 |
public short getThriftFieldId() {
|
|
|
6588 |
return _thriftId;
|
|
|
6589 |
}
|
|
|
6590 |
|
|
|
6591 |
public String getFieldName() {
|
|
|
6592 |
return _fieldName;
|
|
|
6593 |
}
|
|
|
6594 |
}
|
|
|
6595 |
|
|
|
6596 |
// isset id assignments
|
|
|
6597 |
|
|
|
6598 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6599 |
static {
|
|
|
6600 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6601 |
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6602 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6603 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6604 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerEventType_result.class, metaDataMap);
|
|
|
6605 |
}
|
|
|
6606 |
|
|
|
6607 |
public registerEventType_result() {
|
|
|
6608 |
}
|
|
|
6609 |
|
|
|
6610 |
public registerEventType_result(
|
|
|
6611 |
AlertServiceException e)
|
|
|
6612 |
{
|
|
|
6613 |
this();
|
|
|
6614 |
this.e = e;
|
|
|
6615 |
}
|
|
|
6616 |
|
|
|
6617 |
/**
|
|
|
6618 |
* Performs a deep copy on <i>other</i>.
|
|
|
6619 |
*/
|
|
|
6620 |
public registerEventType_result(registerEventType_result other) {
|
|
|
6621 |
if (other.isSetE()) {
|
|
|
6622 |
this.e = new AlertServiceException(other.e);
|
|
|
6623 |
}
|
|
|
6624 |
}
|
|
|
6625 |
|
|
|
6626 |
public registerEventType_result deepCopy() {
|
|
|
6627 |
return new registerEventType_result(this);
|
|
|
6628 |
}
|
|
|
6629 |
|
|
|
6630 |
@Override
|
|
|
6631 |
public void clear() {
|
|
|
6632 |
this.e = null;
|
|
|
6633 |
}
|
|
|
6634 |
|
|
|
6635 |
public AlertServiceException getE() {
|
|
|
6636 |
return this.e;
|
|
|
6637 |
}
|
|
|
6638 |
|
|
|
6639 |
public void setE(AlertServiceException e) {
|
|
|
6640 |
this.e = e;
|
|
|
6641 |
}
|
|
|
6642 |
|
|
|
6643 |
public void unsetE() {
|
|
|
6644 |
this.e = null;
|
|
|
6645 |
}
|
|
|
6646 |
|
|
|
6647 |
/** Returns true if field e is set (has been assigned a value) and false otherwise */
|
|
|
6648 |
public boolean isSetE() {
|
|
|
6649 |
return this.e != null;
|
|
|
6650 |
}
|
|
|
6651 |
|
|
|
6652 |
public void setEIsSet(boolean value) {
|
|
|
6653 |
if (!value) {
|
|
|
6654 |
this.e = null;
|
|
|
6655 |
}
|
|
|
6656 |
}
|
|
|
6657 |
|
|
|
6658 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6659 |
switch (field) {
|
|
|
6660 |
case E:
|
|
|
6661 |
if (value == null) {
|
|
|
6662 |
unsetE();
|
|
|
6663 |
} else {
|
|
|
6664 |
setE((AlertServiceException)value);
|
|
|
6665 |
}
|
|
|
6666 |
break;
|
|
|
6667 |
|
|
|
6668 |
}
|
|
|
6669 |
}
|
|
|
6670 |
|
|
|
6671 |
public Object getFieldValue(_Fields field) {
|
|
|
6672 |
switch (field) {
|
|
|
6673 |
case E:
|
|
|
6674 |
return getE();
|
|
|
6675 |
|
|
|
6676 |
}
|
|
|
6677 |
throw new IllegalStateException();
|
|
|
6678 |
}
|
|
|
6679 |
|
|
|
6680 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6681 |
public boolean isSet(_Fields field) {
|
|
|
6682 |
if (field == null) {
|
|
|
6683 |
throw new IllegalArgumentException();
|
|
|
6684 |
}
|
|
|
6685 |
|
|
|
6686 |
switch (field) {
|
|
|
6687 |
case E:
|
|
|
6688 |
return isSetE();
|
|
|
6689 |
}
|
|
|
6690 |
throw new IllegalStateException();
|
|
|
6691 |
}
|
|
|
6692 |
|
|
|
6693 |
@Override
|
|
|
6694 |
public boolean equals(Object that) {
|
|
|
6695 |
if (that == null)
|
|
|
6696 |
return false;
|
|
|
6697 |
if (that instanceof registerEventType_result)
|
|
|
6698 |
return this.equals((registerEventType_result)that);
|
|
|
6699 |
return false;
|
|
|
6700 |
}
|
|
|
6701 |
|
|
|
6702 |
public boolean equals(registerEventType_result that) {
|
|
|
6703 |
if (that == null)
|
|
|
6704 |
return false;
|
|
|
6705 |
|
|
|
6706 |
boolean this_present_e = true && this.isSetE();
|
|
|
6707 |
boolean that_present_e = true && that.isSetE();
|
|
|
6708 |
if (this_present_e || that_present_e) {
|
|
|
6709 |
if (!(this_present_e && that_present_e))
|
|
|
6710 |
return false;
|
|
|
6711 |
if (!this.e.equals(that.e))
|
|
|
6712 |
return false;
|
|
|
6713 |
}
|
|
|
6714 |
|
|
|
6715 |
return true;
|
|
|
6716 |
}
|
|
|
6717 |
|
|
|
6718 |
@Override
|
|
|
6719 |
public int hashCode() {
|
|
|
6720 |
return 0;
|
|
|
6721 |
}
|
|
|
6722 |
|
|
|
6723 |
public int compareTo(registerEventType_result other) {
|
|
|
6724 |
if (!getClass().equals(other.getClass())) {
|
|
|
6725 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6726 |
}
|
|
|
6727 |
|
|
|
6728 |
int lastComparison = 0;
|
|
|
6729 |
registerEventType_result typedOther = (registerEventType_result)other;
|
|
|
6730 |
|
|
|
6731 |
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
|
|
|
6732 |
if (lastComparison != 0) {
|
|
|
6733 |
return lastComparison;
|
|
|
6734 |
}
|
|
|
6735 |
if (isSetE()) {
|
|
|
6736 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
|
|
|
6737 |
if (lastComparison != 0) {
|
|
|
6738 |
return lastComparison;
|
|
|
6739 |
}
|
|
|
6740 |
}
|
|
|
6741 |
return 0;
|
|
|
6742 |
}
|
|
|
6743 |
|
|
|
6744 |
public _Fields fieldForId(int fieldId) {
|
|
|
6745 |
return _Fields.findByThriftId(fieldId);
|
|
|
6746 |
}
|
|
|
6747 |
|
|
|
6748 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6749 |
org.apache.thrift.protocol.TField field;
|
|
|
6750 |
iprot.readStructBegin();
|
|
|
6751 |
while (true)
|
|
|
6752 |
{
|
|
|
6753 |
field = iprot.readFieldBegin();
|
|
|
6754 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6755 |
break;
|
|
|
6756 |
}
|
|
|
6757 |
switch (field.id) {
|
|
|
6758 |
case 1: // E
|
|
|
6759 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6760 |
this.e = new AlertServiceException();
|
|
|
6761 |
this.e.read(iprot);
|
|
|
6762 |
} else {
|
|
|
6763 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6764 |
}
|
|
|
6765 |
break;
|
|
|
6766 |
default:
|
|
|
6767 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6768 |
}
|
|
|
6769 |
iprot.readFieldEnd();
|
|
|
6770 |
}
|
|
|
6771 |
iprot.readStructEnd();
|
|
|
6772 |
validate();
|
|
|
6773 |
}
|
|
|
6774 |
|
|
|
6775 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6776 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6777 |
|
|
|
6778 |
if (this.isSetE()) {
|
|
|
6779 |
oprot.writeFieldBegin(E_FIELD_DESC);
|
|
|
6780 |
this.e.write(oprot);
|
|
|
6781 |
oprot.writeFieldEnd();
|
|
|
6782 |
}
|
|
|
6783 |
oprot.writeFieldStop();
|
|
|
6784 |
oprot.writeStructEnd();
|
|
|
6785 |
}
|
|
|
6786 |
|
|
|
6787 |
@Override
|
|
|
6788 |
public String toString() {
|
|
|
6789 |
StringBuilder sb = new StringBuilder("registerEventType_result(");
|
|
|
6790 |
boolean first = true;
|
|
|
6791 |
|
|
|
6792 |
sb.append("e:");
|
|
|
6793 |
if (this.e == null) {
|
|
|
6794 |
sb.append("null");
|
|
|
6795 |
} else {
|
|
|
6796 |
sb.append(this.e);
|
|
|
6797 |
}
|
|
|
6798 |
first = false;
|
|
|
6799 |
sb.append(")");
|
|
|
6800 |
return sb.toString();
|
|
|
6801 |
}
|
|
|
6802 |
|
|
|
6803 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6804 |
// check for required fields
|
|
|
6805 |
}
|
|
|
6806 |
|
|
|
6807 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6808 |
try {
|
|
|
6809 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6810 |
} catch (org.apache.thrift.TException te) {
|
|
|
6811 |
throw new java.io.IOException(te);
|
|
|
6812 |
}
|
|
|
6813 |
}
|
|
|
6814 |
|
|
|
6815 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6816 |
try {
|
|
|
6817 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6818 |
} catch (org.apache.thrift.TException te) {
|
|
|
6819 |
throw new java.io.IOException(te);
|
|
|
6820 |
}
|
|
|
6821 |
}
|
|
|
6822 |
|
|
|
6823 |
}
|
|
|
6824 |
|
|
|
6825 |
}
|