290b369a8120a60eb9d842152692ea141bddc3c0
[public/netxms.git] / src / client / java / netxms-client / src / main / java / org / netxms / client / NXCObjectModificationData.java
1 /**
2 * NetXMS - open source network management system
3 * Copyright (C) 2003-2010 Victor Kirhenshtein
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 package org.netxms.client;
20
21 import java.io.File;
22 import java.io.FileInputStream;
23 import java.io.FileNotFoundException;
24 import java.io.IOException;
25 import java.net.InetAddress;
26 import java.util.Collection;
27 import java.util.HashSet;
28 import java.util.List;
29 import java.util.Map;
30 import java.util.Set;
31 import java.util.UUID;
32 import org.netxms.base.GeoLocation;
33 import org.netxms.base.InetAddressEx;
34 import org.netxms.base.MacAddress;
35 import org.netxms.base.PostalAddress;
36 import org.netxms.client.constants.AgentCacheMode;
37 import org.netxms.client.constants.AgentCompressionMode;
38 import org.netxms.client.constants.ObjectStatus;
39 import org.netxms.client.dashboards.DashboardElement;
40 import org.netxms.client.datacollection.ConditionDciInfo;
41 import org.netxms.client.maps.MapLayoutAlgorithm;
42 import org.netxms.client.maps.MapObjectDisplayMode;
43 import org.netxms.client.maps.NetworkMapLink;
44 import org.netxms.client.maps.elements.NetworkMapElement;
45 import org.netxms.client.objects.ClusterResource;
46
47 /**
48 * This class is used to hold data for NXCSession.modifyObject()
49 */
50 public class NXCObjectModificationData
51 {
52 // Modification flags
53 public static final int NAME = 1;
54 public static final int ACL = 2;
55 public static final int CUSTOM_ATTRIBUTES = 3;
56 public static final int AUTOBIND_FILTER = 4;
57 public static final int LINK_COLOR = 5;
58 public static final int POLICY_CONFIG = 6;
59 public static final int VERSION = 7;
60 public static final int DESCRIPTION = 8;
61 public static final int AGENT_PORT = 9;
62 public static final int AGENT_AUTH = 10;
63 public static final int SNMP_VERSION = 11;
64 public static final int SNMP_AUTH = 12;
65 public static final int AGENT_PROXY = 13;
66 public static final int SNMP_PROXY = 14;
67 public static final int TRUSTED_NODES = 15;
68 public static final int GEOLOCATION = 16;
69 public static final int PRIMARY_IP = 17;
70 public static final int SNMP_PORT = 18;
71 public static final int MAP_LAYOUT = 19;
72 public static final int MAP_BACKGROUND = 20;
73 public static final int MAP_CONTENT = 21;
74 public static final int IMAGE = 22;
75 public static final int ICMP_PROXY = 23;
76 public static final int COLUMN_COUNT = 24;
77 public static final int DASHBOARD_ELEMENTS = 25;
78 public static final int SCRIPT = 26;
79 public static final int ACTIVATION_EVENT = 27;
80 public static final int DEACTIVATION_EVENT = 28;
81 public static final int SOURCE_OBJECT = 29;
82 public static final int ACTIVE_STATUS = 30;
83 public static final int INACTIVE_STATUS = 31;
84 public static final int DCI_LIST = 32;
85 public static final int DRILL_DOWN_OBJECT_ID = 33;
86 public static final int IP_ADDRESS = 34;
87 public static final int IP_PROTOCOL = 35;
88 public static final int IP_PORT = 36;
89 public static final int SERVICE_TYPE = 37;
90 public static final int POLLER_NODE = 38;
91 public static final int REQUIRED_POLLS = 39;
92 public static final int REQUEST = 40;
93 public static final int RESPONSE = 41;
94 public static final int OBJECT_FLAGS = 42;
95 public static final int IFXTABLE_POLICY = 43;
96 public static final int REPORT_DEFINITION = 44;
97 public static final int CLUSTER_RESOURCES = 45;
98 public static final int PRIMARY_NAME = 46;
99 public static final int STATUS_CALCULATION = 47;
100 public static final int CLUSTER_NETWORKS = 48;
101 public static final int EXPECTED_STATE = 49;
102 public static final int CONNECTION_ROUTING = 50;
103 public static final int DISCOVERY_RADIUS = 51;
104 public static final int HEIGHT = 52;
105 public static final int FILTER = 53;
106 public static final int PEER_GATEWAY = 54;
107 public static final int VPN_NETWORKS = 55;
108 public static final int POSTAL_ADDRESS = 56;
109 public static final int AGENT_CACHE_MODE = 57;
110 public static final int MAPOBJ_DISP_MODE = 58;
111 public static final int RACK_PLACEMENT = 59;
112 public static final int DASHBOARD_LIST = 60;
113 public static final int RACK_NUMB_SCHEME = 61;
114 public static final int CONTROLLER_ID = 62;
115 public static final int CHASSIS_ID = 63;
116 public static final int SSH_PROXY = 64;
117 public static final int SSH_LOGIN = 65;
118 public static final int SSH_PASSWORD = 66;
119 public static final int ZONE_PROXY = 67;
120 public static final int AGENT_COMPRESSION_MODE = 68;
121 public static final int URL_LIST = 69;
122 public static final int SEED_OBJECTS = 70;
123 public static final int MAC_ADDRESS = 71;
124 public static final int DEVICE_CLASS = 72;
125 public static final int VENDOR = 73;
126 public static final int SERIAL_NUMBER = 74;
127 public static final int DEVICE_ADDRESS = 75;
128 public static final int META_TYPE = 76;
129 public static final int SENSOR_PROXY = 77;
130 public static final int XML_CONFIG = 78;
131
132 private Set<Integer> fieldSet;
133 private long objectId;
134 private String name;
135 private String primaryName;
136 private AccessListElement[] acl;
137 private boolean inheritAccessRights;
138 private Map<String, String> customAttributes;
139 private String autoBindFilter;
140 private String configFileContent;
141 private int version;
142 private String description;
143 private int agentPort;
144 private int agentAuthMethod;
145 private String agentSecret;
146 private long agentProxy;
147 private int snmpPort;
148 private int snmpVersion;
149 private int snmpAuthMethod;
150 private int snmpPrivMethod;
151 private String snmpAuthName;
152 private String snmpAuthPassword;
153 private String snmpPrivPassword;
154 private long snmpProxy;
155 private long icmpProxy;
156 private long[] trustedNodes;
157 private GeoLocation geolocation;
158 private InetAddress primaryIpAddress;
159 private MapLayoutAlgorithm mapLayout;
160 private UUID mapBackground;
161 private GeoLocation mapBackgroundLocation;
162 private int mapBackgroundZoom;
163 private int mapBackgroundColor;
164 private UUID image;
165 private Collection<NetworkMapElement> mapElements;
166 private Collection<NetworkMapLink> mapLinks;
167 private int columnCount;
168 private Collection<DashboardElement> dashboardElements;
169 private String script;
170 private int activationEvent;
171 private int deactivationEvent;
172 private long sourceObject;
173 private int activeStatus;
174 private int inactiveStatus;
175 private List<ConditionDciInfo> dciList;
176 private long drillDownObjectId;
177 private long pollerNode;
178 private int requiredPolls;
179 private int serviceType;
180 private int ipProtocol;
181 private int ipPort;
182 private InetAddressEx ipAddress;
183 private String request;
184 private String response;
185 private int objectFlags;
186 private int objectFlagsMask;
187 private int ifXTablePolicy;
188 private String reportDefinition;
189 private List<ClusterResource> resourceList;
190 private List<InetAddressEx> networkList;
191 private int statusCalculationMethod;
192 private int statusPropagationMethod;
193 private ObjectStatus fixedPropagatedStatus;
194 private int statusShift;
195 private ObjectStatus[] statusTransformation;
196 private int statusSingleThreshold;
197 private int[] statusThresholds;
198 private int expectedState;
199 private int linkColor;
200 private int connectionRouting;
201 private int discoveryRadius;
202 private int height;
203 private String filter;
204 private long peerGatewayId;
205 private List<InetAddressEx> localNetworks;
206 private List<InetAddressEx> remoteNetworks;
207 private PostalAddress postalAddress;
208 private AgentCacheMode agentCacheMode;
209 private AgentCompressionMode agentCompressionMode;
210 private MapObjectDisplayMode mapObjectDisplayMode;
211 private long rackId;
212 private UUID rackImage;
213 private short rackPosition;
214 private short rackHeight;
215 private Long[] dashboards;
216 private boolean rackNumberingTopBottom;
217 private long controllerId;
218 private long chassisId;
219 private long sshProxy;
220 private String sshLogin;
221 private String sshPassword;
222 private long zoneProxy;
223 private List<ObjectUrl> urls;
224 private List<Long> seedObjectIds;
225 private MacAddress macAddress;
226 private int deviceClass;
227 private String vendor;
228 private String serialNumber;
229 private String deviceAddress;
230 private String metaType;
231 private long sensorProxy;
232 private String xmlConfig;
233
234 /**
235 * Constructor for creating modification data for given object
236 *
237 * @param objectId Object ID
238 */
239 public NXCObjectModificationData(long objectId)
240 {
241 this.objectId = objectId;
242 fieldSet = new HashSet<Integer>(128);
243 }
244
245 /**
246 * @return the objectId
247 */
248 public long getObjectId()
249 {
250 return objectId;
251 }
252
253 /**
254 * @param objectId the objectId to set
255 */
256 public void setObjectId(long objectId)
257 {
258 this.objectId = objectId;
259 }
260
261 /**
262 * @return the name
263 */
264 public String getName()
265 {
266 return name;
267 }
268
269 /**
270 * @param name the name to set
271 */
272 public void setName(final String name)
273 {
274 this.name = name;
275 fieldSet.add(NAME);
276 }
277
278 /**
279 * Check if given field is set for modification.
280 *
281 * @param field field code
282 * @return true if given field is set
283 */
284 public boolean isFieldSet(int field)
285 {
286 return fieldSet.contains(field);
287 }
288
289 /**
290 * @return the acl
291 */
292 public AccessListElement[] getACL()
293 {
294 return (acl != null) ? acl : new AccessListElement[0];
295 }
296
297 /**
298 * @param acl the acl to set
299 */
300 public void setACL(AccessListElement[] acl)
301 {
302 this.acl = acl;
303 fieldSet.add(ACL);
304 }
305
306 /**
307 * @return the inheritAccessRights
308 */
309 public boolean isInheritAccessRights()
310 {
311 return inheritAccessRights;
312 }
313
314 /**
315 * @param inheritAccessRights the inheritAccessRights to set
316 */
317 public void setInheritAccessRights(boolean inheritAccessRights)
318 {
319 this.inheritAccessRights = inheritAccessRights;
320 fieldSet.add(ACL);
321 }
322
323 /**
324 * @return the customAttributes
325 */
326 public Map<String, String> getCustomAttributes()
327 {
328 return customAttributes;
329 }
330
331 /**
332 * @param customAttributes the customAttributes to set
333 */
334 public void setCustomAttributes(Map<String, String> customAttributes)
335 {
336 this.customAttributes = customAttributes;
337 fieldSet.add(CUSTOM_ATTRIBUTES);
338 }
339
340 /**
341 * @return the autoApplyFilter
342 */
343 public String getAutoBindFilter()
344 {
345 return autoBindFilter;
346 }
347
348 /**
349 * @param autoBindFilter the autoApplyFilter to set
350 */
351 public void setAutoBindFilter(String autoBindFilter)
352 {
353 this.autoBindFilter = autoBindFilter;
354 fieldSet.add(AUTOBIND_FILTER);
355 }
356
357 /**
358 * @return the configFileContent
359 */
360 public String getConfigFileContent()
361 {
362 return configFileContent;
363 }
364
365 /**
366 * @param configFileContent the configFileContent to set
367 */
368 public void setConfigFileContent(String configFileContent)
369 {
370 this.configFileContent = configFileContent;
371 fieldSet.add(POLICY_CONFIG);
372 }
373
374 /**
375 * @return the version
376 */
377 public int getVersion()
378 {
379 return version;
380 }
381
382 /**
383 * @param version the version to set
384 */
385 public void setVersion(int version)
386 {
387 this.version = version;
388 fieldSet.add(VERSION);
389 }
390
391 /**
392 * @return the description
393 */
394 public String getDescription()
395 {
396 return description;
397 }
398
399 /**
400 * @param description the description to set
401 */
402 public void setDescription(String description)
403 {
404 this.description = description;
405 fieldSet.add(DESCRIPTION);
406 }
407
408 public int getAgentPort()
409 {
410 return agentPort;
411 }
412
413 public void setAgentPort(int agentPort)
414 {
415 this.agentPort = agentPort;
416 fieldSet.add(AGENT_PORT);
417 }
418
419 /**
420 * @return the agentAuthMethod
421 */
422 public int getAgentAuthMethod()
423 {
424 return agentAuthMethod;
425 }
426
427 /**
428 * @param agentAuthMethod the agentAuthMethod to set
429 */
430 public void setAgentAuthMethod(int agentAuthMethod)
431 {
432 this.agentAuthMethod = agentAuthMethod;
433 fieldSet.add(AGENT_AUTH);
434 }
435
436 /**
437 * @return the agentSecret
438 */
439 public String getAgentSecret()
440 {
441 return agentSecret;
442 }
443
444 /**
445 * @param agentSecret the agentSecret to set
446 */
447 public void setAgentSecret(String agentSecret)
448 {
449 this.agentSecret = agentSecret;
450 fieldSet.add(AGENT_AUTH);
451 }
452
453 /**
454 * @return the agentProxy
455 */
456 public long getAgentProxy()
457 {
458 return agentProxy;
459 }
460
461 /**
462 * @param agentProxy the agentProxy to set
463 */
464 public void setAgentProxy(long agentProxy)
465 {
466 this.agentProxy = agentProxy;
467 fieldSet.add(AGENT_PROXY);
468 }
469
470 /**
471 * @return the snmpVersion
472 */
473 public int getSnmpVersion()
474 {
475 return snmpVersion;
476 }
477
478 /**
479 * @param snmpVersion the snmpVersion to set
480 */
481 public void setSnmpVersion(int snmpVersion)
482 {
483 this.snmpVersion = snmpVersion;
484 fieldSet.add(SNMP_VERSION);
485 }
486
487 /**
488 * @return the snmpAuthMethod
489 */
490 public int getSnmpAuthMethod()
491 {
492 return snmpAuthMethod;
493 }
494
495 /**
496 * @param snmpAuthMethod the snmpAuthMethod to set
497 */
498 public void setSnmpAuthMethod(int snmpAuthMethod)
499 {
500 this.snmpAuthMethod = snmpAuthMethod;
501 fieldSet.add(SNMP_AUTH);
502 }
503
504 /**
505 * @return the snmpPrivMethod
506 */
507 public int getSnmpPrivMethod()
508 {
509 return snmpPrivMethod;
510 }
511
512 /**
513 * @param snmpPrivMethod the snmpPrivMethod to set
514 */
515 public void setSnmpPrivMethod(int snmpPrivMethod)
516 {
517 this.snmpPrivMethod = snmpPrivMethod;
518 fieldSet.add(SNMP_AUTH);
519 }
520
521 /**
522 * @return the snmpAuthName
523 */
524 public String getSnmpAuthName()
525 {
526 return snmpAuthName;
527 }
528
529 /**
530 * @param snmpAuthName the snmpAuthName to set
531 */
532 public void setSnmpAuthName(String snmpAuthName)
533 {
534 this.snmpAuthName = snmpAuthName;
535 fieldSet.add(SNMP_AUTH);
536 }
537
538 /**
539 * @return the snmpAuthPassword
540 */
541 public String getSnmpAuthPassword()
542 {
543 return snmpAuthPassword;
544 }
545
546 /**
547 * @param snmpAuthPassword the snmpAuthPassword to set
548 */
549 public void setSnmpAuthPassword(String snmpAuthPassword)
550 {
551 this.snmpAuthPassword = snmpAuthPassword;
552 fieldSet.add(SNMP_AUTH);
553 }
554
555 /**
556 * @return the snmpPrivPassword
557 */
558 public String getSnmpPrivPassword()
559 {
560 return snmpPrivPassword;
561 }
562
563 /**
564 * @param snmpPrivPassword the snmpPrivPassword to set
565 */
566 public void setSnmpPrivPassword(String snmpPrivPassword)
567 {
568 this.snmpPrivPassword = snmpPrivPassword;
569 fieldSet.add(SNMP_AUTH);
570 }
571
572 /**
573 * @return the snmpProxy
574 */
575 public long getSnmpProxy()
576 {
577 return snmpProxy;
578 }
579
580 /**
581 * @param snmpProxy the snmpProxy to set
582 */
583 public void setSnmpProxy(long snmpProxy)
584 {
585 this.snmpProxy = snmpProxy;
586 fieldSet.add(SNMP_PROXY);
587 }
588
589 /**
590 * @return the icmpProxy
591 */
592 public long getIcmpProxy()
593 {
594 return icmpProxy;
595 }
596
597 /**
598 * @param icmpProxy the icmpProxy to set
599 */
600 public void setIcmpProxy(long icmpProxy)
601 {
602 this.icmpProxy = icmpProxy;
603 fieldSet.add(ICMP_PROXY);
604 }
605
606 /**
607 * @return the trustedNodes
608 */
609 public long[] getTrustedNodes()
610 {
611 return trustedNodes;
612 }
613
614 /**
615 * @param trustedNodes the trustedNodes to set
616 */
617 public void setTrustedNodes(long[] trustedNodes)
618 {
619 this.trustedNodes = trustedNodes;
620 fieldSet.add(TRUSTED_NODES);
621 }
622
623 /**
624 * @return the geolocation
625 */
626 public GeoLocation getGeolocation()
627 {
628 return geolocation;
629 }
630
631 /**
632 * @param geolocation the geolocation to set
633 */
634 public void setGeolocation(GeoLocation geolocation)
635 {
636 this.geolocation = geolocation;
637 fieldSet.add(GEOLOCATION);
638 }
639
640 /**
641 * @return the primaryIpAddress
642 */
643 public InetAddress getPrimaryIpAddress()
644 {
645 return primaryIpAddress;
646 }
647
648 /**
649 * @param primaryIpAddress the primaryIpAddress to set
650 */
651 public void setPrimaryIpAddress(InetAddress primaryIpAddress)
652 {
653 this.primaryIpAddress = primaryIpAddress;
654 fieldSet.add(PRIMARY_IP);
655 }
656
657 /**
658 * @return the snmpPort
659 */
660 public int getSnmpPort()
661 {
662 return snmpPort;
663 }
664
665 /**
666 * @param snmpPort the snmpPort to set
667 */
668 public void setSnmpPort(int snmpPort)
669 {
670 this.snmpPort = snmpPort;
671 fieldSet.add(SNMP_PORT);
672 }
673
674 /**
675 * @return the mapLayout
676 */
677 public MapLayoutAlgorithm getMapLayout()
678 {
679 return mapLayout;
680 }
681
682 /**
683 * @param mapLayout the mapLayout to set
684 */
685 public void setMapLayout(MapLayoutAlgorithm mapLayout)
686 {
687 this.mapLayout = mapLayout;
688 fieldSet.add(MAP_LAYOUT);
689 }
690
691 /**
692 * @return the mapBackground
693 */
694 public UUID getMapBackground()
695 {
696 return mapBackground;
697 }
698
699 /**
700 * @param mapBackground
701 */
702 /**
703 * @param mapBackground The mapBackground to set
704 * @param mapBackgroundLocation The mapBackgroundLocation to set
705 * @param mapBackgroundZoom The mapBackgroundZoom level to set
706 * @param mapBackgroundColor The mapBackgroundColor to set
707 */
708 public void setMapBackground(UUID mapBackground, GeoLocation mapBackgroundLocation, int mapBackgroundZoom, int mapBackgroundColor)
709 {
710 this.mapBackground = mapBackground;
711 this.mapBackgroundLocation = mapBackgroundLocation;
712 this.mapBackgroundZoom = mapBackgroundZoom;
713 this.mapBackgroundColor = mapBackgroundColor;
714 fieldSet.add(MAP_BACKGROUND);
715 }
716
717 /**
718 * @return the mapElements
719 */
720 public Collection<NetworkMapElement> getMapElements()
721 {
722 return mapElements;
723 }
724
725 /**
726 * @return the mapLinks
727 */
728 public Collection<NetworkMapLink> getMapLinks()
729 {
730 return mapLinks;
731 }
732
733 /**
734 * Set map contents
735 *
736 * @param elements Network map elements
737 * @param links Network map links
738 */
739 public void setMapContent(Collection<NetworkMapElement> elements, Collection<NetworkMapLink> links)
740 {
741 mapElements = elements;
742 mapLinks = links;
743 fieldSet.add(MAP_CONTENT);
744 }
745
746 /**
747 * @return the image
748 */
749 public UUID getImage()
750 {
751 return image;
752 }
753
754 /**
755 * @param image the image to set
756 */
757 public void setImage(UUID image)
758 {
759 this.image = image;
760 fieldSet.add(IMAGE);
761 }
762
763 /**
764 * @return the columnCount
765 */
766 public int getColumnCount()
767 {
768 return columnCount;
769 }
770
771 /**
772 * @param columnCount the columnCount to set
773 */
774 public void setColumnCount(int columnCount)
775 {
776 this.columnCount = columnCount;
777 fieldSet.add(COLUMN_COUNT);
778 }
779
780 /**
781 * @return the dashboardElements
782 */
783 public Collection<DashboardElement> getDashboardElements()
784 {
785 return dashboardElements;
786 }
787
788 /**
789 * @param dashboardElements the dashboardElements to set
790 */
791 public void setDashboardElements(Collection<DashboardElement> dashboardElements)
792 {
793 this.dashboardElements = dashboardElements;
794 fieldSet.add(DASHBOARD_ELEMENTS);
795 }
796
797 /**
798 * @return the script
799 */
800 public String getScript()
801 {
802 return script;
803 }
804
805 /**
806 * @param script the script to set
807 */
808 public void setScript(String script)
809 {
810 this.script = script;
811 fieldSet.add(SCRIPT);
812 }
813
814 /**
815 * @return the activationEvent
816 */
817 public int getActivationEvent()
818 {
819 return activationEvent;
820 }
821
822 /**
823 * @param activationEvent the activationEvent to set
824 */
825 public void setActivationEvent(int activationEvent)
826 {
827 this.activationEvent = activationEvent;
828 fieldSet.add(ACTIVATION_EVENT);
829 }
830
831 /**
832 * @return the deactivationEvent
833 */
834 public int getDeactivationEvent()
835 {
836 return deactivationEvent;
837 }
838
839 /**
840 * @param deactivationEvent the deactivationEvent to set
841 */
842 public void setDeactivationEvent(int deactivationEvent)
843 {
844 this.deactivationEvent = deactivationEvent;
845 fieldSet.add(DEACTIVATION_EVENT);
846 }
847
848 /**
849 * @return the sourceObject
850 */
851 public long getSourceObject()
852 {
853 return sourceObject;
854 }
855
856 /**
857 * @param sourceObject the sourceObject to set
858 */
859 public void setSourceObject(long sourceObject)
860 {
861 this.sourceObject = sourceObject;
862 fieldSet.add(SOURCE_OBJECT);
863 }
864
865 /**
866 * @return the activeStatus
867 */
868 public int getActiveStatus()
869 {
870 return activeStatus;
871 }
872
873 /**
874 * @param activeStatus the activeStatus to set
875 */
876 public void setActiveStatus(int activeStatus)
877 {
878 this.activeStatus = activeStatus;
879 fieldSet.add(ACTIVE_STATUS);
880 }
881
882 /**
883 * @return the inactiveStatus
884 */
885 public int getInactiveStatus()
886 {
887 return inactiveStatus;
888 }
889
890 /**
891 * @param inactiveStatus the inactiveStatus to set
892 */
893 public void setInactiveStatus(int inactiveStatus)
894 {
895 this.inactiveStatus = inactiveStatus;
896 fieldSet.add(INACTIVE_STATUS);
897 }
898
899 /**
900 * @return the dciList
901 */
902 public List<ConditionDciInfo> getDciList()
903 {
904 return dciList;
905 }
906
907 /**
908 * @param dciList the dciList to set
909 */
910 public void setDciList(List<ConditionDciInfo> dciList)
911 {
912 this.dciList = dciList;
913 fieldSet.add(DCI_LIST);
914 }
915
916 /**
917 * @return the submapId
918 */
919 public long getDrillDownObjectId()
920 {
921 return drillDownObjectId;
922 }
923
924 /**
925 * @param drillDownObjectId the drillDownObjectId to set
926 */
927 public void setDrillDownObjectId(long drillDownObjectId)
928 {
929 this.drillDownObjectId = drillDownObjectId;
930 fieldSet.add(DRILL_DOWN_OBJECT_ID);
931 }
932
933 /**
934 * @return the mapBackgroundLocation
935 */
936 public GeoLocation getMapBackgroundLocation()
937 {
938 return mapBackgroundLocation;
939 }
940
941 /**
942 * @return the mapBackgroundZoom
943 */
944 public int getMapBackgroundZoom()
945 {
946 return mapBackgroundZoom;
947 }
948
949 /**
950 * @return the pollerNode
951 */
952 public long getPollerNode()
953 {
954 return pollerNode;
955 }
956
957 /**
958 * @param pollerNode the pollerNode to set
959 */
960 public void setPollerNode(long pollerNode)
961 {
962 this.pollerNode = pollerNode;
963 fieldSet.add(POLLER_NODE);
964 }
965
966 /**
967 * @return the requiredPolls
968 */
969 public int getRequiredPolls()
970 {
971 return requiredPolls;
972 }
973
974 /**
975 * @param requiredPolls the requiredPolls to set
976 */
977 public void setRequiredPolls(int requiredPolls)
978 {
979 this.requiredPolls = requiredPolls;
980 fieldSet.add(REQUIRED_POLLS);
981 }
982
983 /**
984 * @return the serviceType
985 */
986 public int getServiceType()
987 {
988 return serviceType;
989 }
990
991 /**
992 * @param serviceType the serviceType to set
993 */
994 public void setServiceType(int serviceType)
995 {
996 this.serviceType = serviceType;
997 fieldSet.add(SERVICE_TYPE);
998 }
999
1000 /**
1001 * @return the ipProtocol
1002 */
1003 public int getIpProtocol()
1004 {
1005 return ipProtocol;
1006 }
1007
1008 /**
1009 * @param ipProtocol the ipProtocol to set
1010 */
1011 public void setIpProtocol(int ipProtocol)
1012 {
1013 this.ipProtocol = ipProtocol;
1014 fieldSet.add(IP_PROTOCOL);
1015 }
1016
1017 /**
1018 * @return the ipPort
1019 */
1020 public int getIpPort()
1021 {
1022 return ipPort;
1023 }
1024
1025 /**
1026 * @param ipPort the ipPort to set
1027 */
1028 public void setIpPort(int ipPort)
1029 {
1030 this.ipPort = ipPort;
1031 fieldSet.add(IP_PORT);
1032 }
1033
1034 /**
1035 * @return the ipAddress
1036 */
1037 public InetAddressEx getIpAddress()
1038 {
1039 return ipAddress;
1040 }
1041
1042 /**
1043 * @param ipAddress the ipAddress to set
1044 */
1045 public void setIpAddress(InetAddressEx ipAddress)
1046 {
1047 this.ipAddress = ipAddress;
1048 fieldSet.add(IP_ADDRESS);
1049 }
1050
1051 /**
1052 * @return the request
1053 */
1054 public String getRequest()
1055 {
1056 return request;
1057 }
1058
1059 /**
1060 * @param request the request to set
1061 */
1062 public void setRequest(String request)
1063 {
1064 this.request = request;
1065 fieldSet.add(REQUEST);
1066 }
1067
1068 /**
1069 * @return the response
1070 */
1071 public String getResponse()
1072 {
1073 return response;
1074 }
1075
1076 /**
1077 * @param response the response to set
1078 */
1079 public void setResponse(String response)
1080 {
1081 this.response = response;
1082 fieldSet.add(RESPONSE);
1083 }
1084
1085 /**
1086 * Get object flags
1087 *
1088 * @return object flags
1089 */
1090 public int getObjectFlags()
1091 {
1092 return objectFlags;
1093 }
1094
1095 /**
1096 * Get object flags mask
1097 *
1098 * @return the object flags mask
1099 */
1100 public int getObjectFlagsMask()
1101 {
1102 return objectFlagsMask;
1103 }
1104
1105 /**
1106 * Set object flags
1107 *
1108 * @param objectFlags Object flags
1109 */
1110 public void setObjectFlags(int objectFlags)
1111 {
1112 setObjectFlags(objectFlags, 0xFFFFFFFF);
1113 }
1114
1115 /**
1116 * Set selected object flags. Only flags with corresponding mask bits set will be changed.
1117 *
1118 * @param objectFlags new object flags
1119 * @param objectFlagsMask object flag mask
1120 */
1121 public void setObjectFlags(int objectFlags, int objectFlagsMask)
1122 {
1123 this.objectFlags = objectFlags;
1124 this.objectFlagsMask = objectFlagsMask;
1125 fieldSet.add(OBJECT_FLAGS);
1126 }
1127
1128 /**
1129 * @return the ifXTablePolicy
1130 */
1131 public int getIfXTablePolicy()
1132 {
1133 return ifXTablePolicy;
1134 }
1135
1136 /**
1137 * @param ifXTablePolicy the ifXTablePolicy to set
1138 */
1139 public void setIfXTablePolicy(int ifXTablePolicy)
1140 {
1141 this.ifXTablePolicy = ifXTablePolicy;
1142 fieldSet.add(IFXTABLE_POLICY);
1143 }
1144
1145 /**
1146 * @return the reportDefinition
1147 */
1148 public String getReportDefinition()
1149 {
1150 return reportDefinition;
1151 }
1152
1153 /**
1154 * @param reportDefinition the reportDefinition to set
1155 */
1156 public void setReportDefinition(String reportDefinition)
1157 {
1158 this.reportDefinition = reportDefinition;
1159 fieldSet.add(REPORT_DEFINITION);
1160 }
1161
1162 /**
1163 * Set report definition from file.
1164 *
1165 * @param file file containing report definition
1166 * @throws IOException if file I/O error occurs
1167 * @throws FileNotFoundException if given file does not exist or inaccessible
1168 */
1169 public void setReportDefinition(File file) throws IOException, FileNotFoundException
1170 {
1171 byte[] buffer = new byte[(int)file.length()];
1172 FileInputStream in = new FileInputStream(file);
1173 try
1174 {
1175 in.read(buffer);
1176 }
1177 finally
1178 {
1179 if (in != null)
1180 in.close();
1181 }
1182 setReportDefinition(new String(buffer));
1183 }
1184
1185 /**
1186 * @return the resourceList
1187 */
1188 public List<ClusterResource> getResourceList()
1189 {
1190 return resourceList;
1191 }
1192
1193 /**
1194 * @param resourceList the resourceList to set
1195 */
1196 public void setResourceList(List<ClusterResource> resourceList)
1197 {
1198 this.resourceList = resourceList;
1199 fieldSet.add(CLUSTER_RESOURCES);
1200 }
1201
1202 /**
1203 * @return the networkList
1204 */
1205 public List<InetAddressEx> getNetworkList()
1206 {
1207 return networkList;
1208 }
1209
1210 /**
1211 * @param networkList the networkList to set
1212 */
1213 public void setNetworkList(List<InetAddressEx> networkList)
1214 {
1215 this.networkList = networkList;
1216 fieldSet.add(CLUSTER_NETWORKS);
1217 }
1218
1219 /**
1220 * @return the primaryName
1221 */
1222 public String getPrimaryName()
1223 {
1224 return primaryName;
1225 }
1226
1227 /**
1228 * @param primaryName the primaryName to set
1229 */
1230 public void setPrimaryName(String primaryName)
1231 {
1232 this.primaryName = primaryName;
1233 fieldSet.add(PRIMARY_NAME);
1234 }
1235
1236 /**
1237 * @return the statusCalculationMethod
1238 */
1239 public int getStatusCalculationMethod()
1240 {
1241 return statusCalculationMethod;
1242 }
1243
1244 /**
1245 * @param statusCalculationMethod the statusCalculationMethod to set
1246 */
1247 public void setStatusCalculationMethod(int statusCalculationMethod)
1248 {
1249 this.statusCalculationMethod = statusCalculationMethod;
1250 fieldSet.add(STATUS_CALCULATION);
1251 }
1252
1253 /**
1254 * @return the statusPropagationMethod
1255 */
1256 public int getStatusPropagationMethod()
1257 {
1258 return statusPropagationMethod;
1259 }
1260
1261 /**
1262 * @param statusPropagationMethod the statusPropagationMethod to set
1263 */
1264 public void setStatusPropagationMethod(int statusPropagationMethod)
1265 {
1266 this.statusPropagationMethod = statusPropagationMethod;
1267 fieldSet.add(STATUS_CALCULATION);
1268 }
1269
1270 /**
1271 * @return the fixedPropagatedStatus
1272 */
1273 public ObjectStatus getFixedPropagatedStatus()
1274 {
1275 return fixedPropagatedStatus;
1276 }
1277
1278 /**
1279 * @param fixedPropagatedStatus the fixedPropagatedStatus to set
1280 */
1281 public void setFixedPropagatedStatus(ObjectStatus fixedPropagatedStatus)
1282 {
1283 this.fixedPropagatedStatus = fixedPropagatedStatus;
1284 fieldSet.add(STATUS_CALCULATION);
1285 }
1286
1287 /**
1288 * @return the statusShift
1289 */
1290 public int getStatusShift()
1291 {
1292 return statusShift;
1293 }
1294
1295 /**
1296 * @param statusShift the statusShift to set
1297 */
1298 public void setStatusShift(int statusShift)
1299 {
1300 this.statusShift = statusShift;
1301 fieldSet.add(STATUS_CALCULATION);
1302 }
1303
1304 /**
1305 * @return the statusTransformation
1306 */
1307 public ObjectStatus[] getStatusTransformation()
1308 {
1309 return statusTransformation;
1310 }
1311
1312 /**
1313 * @param statusTransformation the statusTransformation to set
1314 */
1315 public void setStatusTransformation(ObjectStatus[] statusTransformation)
1316 {
1317 this.statusTransformation = statusTransformation;
1318 fieldSet.add(STATUS_CALCULATION);
1319 }
1320
1321 /**
1322 * @return the statusSingleThreshold
1323 */
1324 public int getStatusSingleThreshold()
1325 {
1326 return statusSingleThreshold;
1327 }
1328
1329 /**
1330 * @param statusSingleThreshold the statusSingleThreshold to set
1331 */
1332 public void setStatusSingleThreshold(int statusSingleThreshold)
1333 {
1334 this.statusSingleThreshold = statusSingleThreshold;
1335 fieldSet.add(STATUS_CALCULATION);
1336 }
1337
1338 /**
1339 * @return the statusThresholds
1340 */
1341 public int[] getStatusThresholds()
1342 {
1343 return statusThresholds;
1344 }
1345
1346 /**
1347 * @param statusThresholds the statusThresholds to set
1348 */
1349 public void setStatusThresholds(int[] statusThresholds)
1350 {
1351 this.statusThresholds = statusThresholds;
1352 fieldSet.add(STATUS_CALCULATION);
1353 }
1354
1355 /**
1356 * @return the expectedState
1357 */
1358 public int getExpectedState()
1359 {
1360 return expectedState;
1361 }
1362
1363 /**
1364 * @param expectedState the expectedState to set
1365 */
1366 public void setExpectedState(int expectedState)
1367 {
1368 this.expectedState = expectedState;
1369 fieldSet.add(EXPECTED_STATE);
1370 }
1371
1372 /**
1373 * @return the linkColor
1374 */
1375 public int getLinkColor()
1376 {
1377 return linkColor;
1378 }
1379
1380 /**
1381 * @param linkColor the linkColor to set
1382 */
1383 public void setLinkColor(int linkColor)
1384 {
1385 this.linkColor = linkColor;
1386 fieldSet.add(LINK_COLOR);
1387 }
1388
1389 /**
1390 * @return the connectionRouting
1391 */
1392 public int getConnectionRouting()
1393 {
1394 return connectionRouting;
1395 }
1396
1397 /**
1398 * @param connectionRouting the connectionRouting to set
1399 */
1400 public void setConnectionRouting(int connectionRouting)
1401 {
1402 this.connectionRouting = connectionRouting;
1403 fieldSet.add(CONNECTION_ROUTING);
1404 }
1405
1406 /**
1407 * @return the mapBackgroundColor
1408 */
1409 public int getMapBackgroundColor()
1410 {
1411 return mapBackgroundColor;
1412 }
1413
1414 /**
1415 * @return the discoveryRadius
1416 */
1417 public final int getDiscoveryRadius()
1418 {
1419 return discoveryRadius;
1420 }
1421
1422 /**
1423 * @param discoveryRadius the discoveryRadius to set
1424 */
1425 public final void setDiscoveryRadius(int discoveryRadius)
1426 {
1427 this.discoveryRadius = discoveryRadius;
1428 fieldSet.add(DISCOVERY_RADIUS);
1429 }
1430
1431 /**
1432 * @return the height
1433 */
1434 public int getHeight()
1435 {
1436 return height;
1437 }
1438
1439 /**
1440 * @param height the height to set
1441 */
1442 public void setHeight(int height)
1443 {
1444 this.height = height;
1445 fieldSet.add(HEIGHT);
1446 }
1447
1448 /**
1449 * @return the filter
1450 */
1451 public String getFilter()
1452 {
1453 return filter;
1454 }
1455
1456 /**
1457 * @param filter the filter to set
1458 */
1459 public void setFilter(String filter)
1460 {
1461 this.filter = filter;
1462 fieldSet.add(FILTER);
1463 }
1464
1465 /**
1466 * @return the peerGatewayId
1467 */
1468 public long getPeerGatewayId()
1469 {
1470 return peerGatewayId;
1471 }
1472
1473 /**
1474 * @param peerGatewayId the peerGatewayId to set
1475 */
1476 public void setPeerGatewayId(long peerGatewayId)
1477 {
1478 this.peerGatewayId = peerGatewayId;
1479 fieldSet.add(PEER_GATEWAY);
1480 }
1481
1482 /**
1483 * @return the localNetworks
1484 */
1485 public List<InetAddressEx> getLocalNetworks()
1486 {
1487 return localNetworks;
1488 }
1489
1490 /**
1491 * @return the remoteNetworks
1492 */
1493 public List<InetAddressEx> getRemoteNetworks()
1494 {
1495 return remoteNetworks;
1496 }
1497
1498 /**
1499 * @param localNetworks the localNetworks to set
1500 * @param remoteNetworks the remoteNetworks to set
1501 */
1502 public void setVpnNetworks(List<InetAddressEx> localNetworks, List<InetAddressEx> remoteNetworks)
1503 {
1504 this.localNetworks = localNetworks;
1505 this.remoteNetworks = remoteNetworks;
1506 fieldSet.add(VPN_NETWORKS);
1507 }
1508
1509 /**
1510 * @return the postalAddress
1511 */
1512 public PostalAddress getPostalAddress()
1513 {
1514 return postalAddress;
1515 }
1516
1517 /**
1518 * @param postalAddress the postalAddress to set
1519 */
1520 public void setPostalAddress(PostalAddress postalAddress)
1521 {
1522 this.postalAddress = postalAddress;
1523 fieldSet.add(POSTAL_ADDRESS);
1524 }
1525
1526 /**
1527 * Get agent cache mode
1528 *
1529 * @return agent cache mode
1530 */
1531 public AgentCacheMode getAgentCacheMode()
1532 {
1533 return agentCacheMode;
1534 }
1535
1536 /**
1537 * Set agent cache mode
1538 *
1539 * @param agentCacheMode new agent cache mode
1540 */
1541 public void setAgentCacheMode(AgentCacheMode agentCacheMode)
1542 {
1543 this.agentCacheMode = agentCacheMode;
1544 fieldSet.add(AGENT_CACHE_MODE);
1545 }
1546
1547 /**
1548 * Get agent compression mode
1549 *
1550 * @return agent compression mode
1551 */
1552 public AgentCompressionMode getAgentCompressionMode()
1553 {
1554 return agentCompressionMode;
1555 }
1556
1557 /**
1558 * Set agent compression mode
1559 *
1560 * @param agentCompressionMode new agent compression mode
1561 */
1562 public void setAgentCompressionMode(AgentCompressionMode agentCompressionMode)
1563 {
1564 this.agentCompressionMode = agentCompressionMode;
1565 fieldSet.add(AGENT_COMPRESSION_MODE);
1566 }
1567
1568 /**
1569 * @return the mapObjectDisplayMode
1570 */
1571 public MapObjectDisplayMode getMapObjectDisplayMode()
1572 {
1573 return mapObjectDisplayMode;
1574 }
1575
1576 /**
1577 * @param mapObjectDisplayMode the mapObjectDisplayMode to set
1578 */
1579 public void setMapObjectDisplayMode(MapObjectDisplayMode mapObjectDisplayMode)
1580 {
1581 this.mapObjectDisplayMode = mapObjectDisplayMode;
1582 fieldSet.add(MAPOBJ_DISP_MODE);
1583 }
1584
1585 /**
1586 * @return the rackId
1587 */
1588 public long getRackId()
1589 {
1590 return rackId;
1591 }
1592
1593 /**
1594 * @return the rackImage
1595 */
1596 public UUID getRackImage()
1597 {
1598 return rackImage;
1599 }
1600
1601 /**
1602 * @return the rackPosition
1603 */
1604 public short getRackPosition()
1605 {
1606 return rackPosition;
1607 }
1608
1609 /**
1610 * @return the rackHeight
1611 */
1612 public short getRackHeight()
1613 {
1614 return rackHeight;
1615 }
1616
1617 /**
1618 * Set rack placement data
1619 *
1620 * @param rackId The rack ID to set
1621 * @param rackImage The rack image to set
1622 * @param rackPosition The rack position to set
1623 * @param rackHeight the rack height to set
1624 */
1625 public void setRackPlacement(long rackId, UUID rackImage, short rackPosition, short rackHeight)
1626 {
1627 this.rackId = rackId;
1628 this.rackImage = rackImage;
1629 this.rackPosition = rackPosition;
1630 this.rackHeight = rackHeight;
1631 fieldSet.add(RACK_PLACEMENT);
1632 }
1633
1634 /**
1635 * @return the dashboards
1636 */
1637 public Long[] getDashboards()
1638 {
1639 return dashboards;
1640 }
1641
1642 /**
1643 * @param dashboards the dashboards to set
1644 */
1645 public void setDashboards(Long[] dashboards)
1646 {
1647 this.dashboards = dashboards;
1648 fieldSet.add(DASHBOARD_LIST);
1649 }
1650
1651 /**
1652 * @return the rackNumberingTopBottom
1653 */
1654 public boolean isRackNumberingTopBottom()
1655 {
1656 return rackNumberingTopBottom;
1657 }
1658
1659 /**
1660 * @param rackNumberingTopBottom the rackNumberingTopBottom to set
1661 */
1662 public void setRackNumberingTopBottom(boolean rackNumberingTopBottom)
1663 {
1664 this.rackNumberingTopBottom = rackNumberingTopBottom;
1665 fieldSet.add(RACK_NUMB_SCHEME);
1666 }
1667
1668 /**
1669 * @return the controllerId
1670 */
1671 public long getControllerId()
1672 {
1673 return controllerId;
1674 }
1675
1676 /**
1677 * @param controllerId the controllerId to set
1678 */
1679 public void setControllerId(long controllerId)
1680 {
1681 this.controllerId = controllerId;
1682 fieldSet.add(CONTROLLER_ID);
1683 }
1684
1685 /**
1686 * @return the chassisId
1687 */
1688 public long getChassisId()
1689 {
1690 return chassisId;
1691 }
1692
1693 /**
1694 * @param chassisId the chassisId to set
1695 */
1696 public void setChassisId(long chassisId)
1697 {
1698 this.chassisId = chassisId;
1699 fieldSet.add(CHASSIS_ID);
1700 }
1701
1702 /**
1703 * @return the sshProxy
1704 */
1705 public long getSshProxy()
1706 {
1707 return sshProxy;
1708 }
1709
1710 /**
1711 * @param sshProxy the sshProxy to set
1712 */
1713 public void setSshProxy(long sshProxy)
1714 {
1715 this.sshProxy = sshProxy;
1716 fieldSet.add(SSH_PROXY);
1717 }
1718
1719 /**
1720 * @return the sshLogin
1721 */
1722 public String getSshLogin()
1723 {
1724 return sshLogin;
1725 }
1726
1727 /**
1728 * @param sshLogin the sshLogin to set
1729 */
1730 public void setSshLogin(String sshLogin)
1731 {
1732 this.sshLogin = sshLogin;
1733 fieldSet.add(SSH_LOGIN);
1734 }
1735
1736 /**
1737 * @return the sshPassword
1738 */
1739 public String getSshPassword()
1740 {
1741 return sshPassword;
1742 }
1743
1744 /**
1745 * @param sshPassword the sshPassword to set
1746 */
1747 public void setSshPassword(String sshPassword)
1748 {
1749 this.sshPassword = sshPassword;
1750 fieldSet.add(SSH_PASSWORD);
1751 }
1752
1753 /**
1754 * @return the zoneProxy
1755 */
1756 public long getZoneProxy()
1757 {
1758 return zoneProxy;
1759 }
1760
1761 /**
1762 * @param zoneProxy the zoneProxy to set
1763 */
1764 public void setZoneProxy(long zoneProxy)
1765 {
1766 this.zoneProxy = zoneProxy;
1767 fieldSet.add(ZONE_PROXY);
1768 }
1769
1770 /**
1771 * @return urls
1772 */
1773 public List<ObjectUrl> getUrls()
1774 {
1775 return urls;
1776 }
1777
1778 /**
1779 * Set URL list
1780 *
1781 * @param urls new URL list
1782 */
1783 public void setUrls(List<ObjectUrl> urls)
1784 {
1785 this.urls = urls;
1786 fieldSet.add(URL_LIST);
1787 }
1788
1789 /**
1790 * @return the seedObjectIds
1791 */
1792 public Long[] getSeedObjectIds()
1793 {
1794 return seedObjectIds.toArray(new Long[seedObjectIds.size()]);
1795 }
1796
1797 /**
1798 * @param seedObjectIds the seed node object Ids to set
1799 */
1800 public void setSeedObjectIds(List<Long> seedObjectIds)
1801 {
1802 this.seedObjectIds = seedObjectIds;
1803 fieldSet.add(SEED_OBJECTS);
1804 }
1805
1806 /**
1807 * @return the macAddress
1808 */
1809 public MacAddress getMacAddress()
1810 {
1811 return macAddress;
1812 }
1813
1814 /**
1815 * @param macAddress the macAddress to set
1816 */
1817 public void setMacAddress(MacAddress macAddress)
1818 {
1819 this.macAddress = macAddress;
1820 fieldSet.add(MAC_ADDRESS);
1821 }
1822
1823 /**
1824 * @return the deviceClass
1825 */
1826 public int getDeviceClass()
1827 {
1828 return deviceClass;
1829 }
1830
1831 /**
1832 * @param deviceClass the deviceClass to set
1833 */
1834 public void setDeviceClass(int deviceClass)
1835 {
1836 this.deviceClass = deviceClass;
1837 fieldSet.add(DEVICE_CLASS);
1838 }
1839
1840 /**
1841 * @return the vendor
1842 */
1843 public String getVendor()
1844 {
1845 return vendor;
1846 }
1847
1848 /**
1849 * @param vendor the vendor to set
1850 */
1851 public void setVendor(String vendor)
1852 {
1853 this.vendor = vendor;
1854 fieldSet.add(VENDOR);
1855 }
1856
1857 /**
1858 * @return the serialNumber
1859 */
1860 public String getSerialNumber()
1861 {
1862 return serialNumber;
1863 }
1864
1865 /**
1866 * @param serialNumber the serialNumber to set
1867 */
1868 public void setSerialNumber(String serialNumber)
1869 {
1870 this.serialNumber = serialNumber;
1871 fieldSet.add(SERIAL_NUMBER);
1872 }
1873
1874 /**
1875 * @return the deviceAddress
1876 */
1877 public String getDeviceAddress()
1878 {
1879 return deviceAddress;
1880 }
1881
1882 /**
1883 * @param deviceAddress the deviceAddress to set
1884 */
1885 public void setDeviceAddress(String deviceAddress)
1886 {
1887 this.deviceAddress = deviceAddress;
1888 fieldSet.add(DEVICE_ADDRESS);
1889 }
1890
1891 /**
1892 * @return the metaType
1893 */
1894 public String getMetaType()
1895 {
1896 return metaType;
1897 }
1898
1899 /**
1900 * @param metaType the metaType to set
1901 */
1902 public void setMetaType(String metaType)
1903 {
1904 this.metaType = metaType;
1905 fieldSet.add(META_TYPE);
1906 }
1907
1908 public void setSensorProxy(long proxyNode)
1909 {
1910 this.sensorProxy = proxyNode;
1911 fieldSet.add(SENSOR_PROXY);
1912 }
1913
1914 public long getSensorProxy()
1915 {
1916 return sensorProxy;
1917 }
1918
1919 /**
1920 * @return the xmlConfig
1921 */
1922 public String getXmlConfig()
1923 {
1924 return xmlConfig;
1925 }
1926
1927 /**
1928 * @param xmlConfig the xmlConfig to set
1929 */
1930 public void setXmlConfig(String xmlConfig)
1931 {
1932 this.xmlConfig = xmlConfig;
1933 fieldSet.add(XML_CONFIG);
1934 }
1935 }