1
/*###############################################################################
2
# Linux Management Providers (LMP), SSH provider package
3
# Copyright (C) 2010 Feng Zhanlei, REDFLAG <fengzhanlei@redflag-linux.com>
5
# This program is being developed under the "OpenDRIM" project.
6
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
7
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License
11
# as published by the Free Software Foundation; version 2
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#################################################################################
24
#################################################################################
25
# To contributors, please leave your contact information in this section
26
# AND comment your changes in the source code.
28
# Modified by Guillaume BOTTEX <guillaumebottex@uxsystem.net>, UXSystem, 2010
29
###############################################################################*/
31
#ifndef OPENDRIM_SSHPROTOCOLSERVICE_H_
32
#define OPENDRIM_SSHPROTOCOLSERVICE_H_
36
const static char* OpenDRIM_SSHProtocolService_classnames[] = {"OpenDRIM_SSHProtocolService"};
37
static string OpenDRIM_SSHProtocolService_NAMESPACE = _NAMESPACE;
39
class OpenDRIM_SSHProtocolService {
44
bool InstanceID_isNULL;
50
bool Description_isNULL;
53
bool ElementName_isNULL;
55
unsigned long long Generation;
56
bool Generation_isNULL;
59
bool InstallDate_isNULL;
61
vector<unsigned short> OperationalStatus;
62
bool OperationalStatus_isNULL;
64
vector<string> StatusDescriptions;
65
bool StatusDescriptions_isNULL;
70
unsigned short HealthState;
71
bool HealthState_isNULL;
73
unsigned short CommunicationStatus;
74
bool CommunicationStatus_isNULL;
76
unsigned short DetailedStatus;
77
bool DetailedStatus_isNULL;
79
unsigned short OperatingStatus;
80
bool OperatingStatus_isNULL;
82
unsigned short PrimaryStatus;
83
bool PrimaryStatus_isNULL;
85
unsigned short EnabledState;
86
bool EnabledState_isNULL;
88
string OtherEnabledState;
89
bool OtherEnabledState_isNULL;
91
unsigned short RequestedState;
92
bool RequestedState_isNULL;
94
unsigned short EnabledDefault;
95
bool EnabledDefault_isNULL;
97
string TimeOfLastStateChange;
98
bool TimeOfLastStateChange_isNULL;
100
vector<unsigned short> AvailableRequestedStates;
101
bool AvailableRequestedStates_isNULL;
103
unsigned short TransitioningToState;
104
bool TransitioningToState_isNULL;
106
string SystemCreationClassName;
107
bool SystemCreationClassName_isNULL;
110
bool SystemName_isNULL;
112
string CreationClassName;
113
bool CreationClassName_isNULL;
118
string PrimaryOwnerName;
119
bool PrimaryOwnerName_isNULL;
121
string PrimaryOwnerContact;
122
bool PrimaryOwnerContact_isNULL;
125
bool StartMode_isNULL;
130
unsigned short Protocol;
131
bool Protocol_isNULL;
133
string OtherProtocol;
134
bool OtherProtocol_isNULL;
136
unsigned short MaxConnections;
137
bool MaxConnections_isNULL;
139
unsigned short CurrentActiveConnections;
140
bool CurrentActiveConnections_isNULL;
142
OpenDRIM_SSHProtocolService() {
143
InstanceID_isNULL = true;
144
Caption_isNULL = true;
145
Description_isNULL = true;
146
ElementName_isNULL = true;
147
Generation_isNULL = true;
148
InstallDate_isNULL = true;
149
OperationalStatus_isNULL = true;
150
StatusDescriptions_isNULL = true;
151
Status_isNULL = true;
152
HealthState_isNULL = true;
153
CommunicationStatus_isNULL = true;
154
DetailedStatus_isNULL = true;
155
OperatingStatus_isNULL = true;
156
PrimaryStatus_isNULL = true;
157
EnabledState_isNULL = true;
158
OtherEnabledState_isNULL = true;
159
RequestedState_isNULL = true;
160
EnabledDefault_isNULL = true;
161
TimeOfLastStateChange_isNULL = true;
162
AvailableRequestedStates_isNULL = true;
163
TransitioningToState_isNULL = true;
164
SystemCreationClassName_isNULL = true;
165
SystemName_isNULL = true;
166
CreationClassName_isNULL = true;
168
PrimaryOwnerName_isNULL = true;
169
PrimaryOwnerContact_isNULL = true;
170
StartMode_isNULL = true;
171
Started_isNULL = true;
172
Protocol_isNULL = true;
173
OtherProtocol_isNULL = true;
174
MaxConnections_isNULL = true;
175
CurrentActiveConnections_isNULL = true;
178
~OpenDRIM_SSHProtocolService() {}
180
string getKeys() const {
181
return CF_toLowCase(".SystemCreationClassName=\"" + CF_quoteString(SystemCreationClassName) + "\""".SystemName=\"" + CF_quoteString(SystemName) + "\""".CreationClassName=\"" + CF_quoteString(CreationClassName) + "\""".Name=\"" + CF_quoteString(Name) + "\"");
184
int getInstanceID(string& value) const {
185
if (InstanceID_isNULL==true)
191
int setInstanceID(const string& newValue) {
192
InstanceID = newValue;
193
InstanceID_isNULL = false;
197
int getCaption(string& value) const {
198
if (Caption_isNULL==true)
204
int setCaption(const string& newValue) {
206
Caption_isNULL = false;
210
int getDescription(string& value) const {
211
if (Description_isNULL==true)
217
int setDescription(const string& newValue) {
218
Description = newValue;
219
Description_isNULL = false;
223
int getElementName(string& value) const {
224
if (ElementName_isNULL==true)
230
int setElementName(const string& newValue) {
231
ElementName = newValue;
232
ElementName_isNULL = false;
236
int getGeneration(unsigned long long& value) const {
237
if (Generation_isNULL==true)
243
int setGeneration(const unsigned long long& newValue) {
244
Generation = newValue;
245
Generation_isNULL = false;
249
int getInstallDate(string& value) const {
250
if (InstallDate_isNULL==true)
256
int setInstallDate(const string& newValue) {
257
InstallDate = newValue;
258
InstallDate_isNULL = false;
262
int getOperationalStatus(vector<unsigned short>& value) const {
263
if (OperationalStatus_isNULL==true)
265
value = OperationalStatus;
269
int setOperationalStatus(const vector<unsigned short>& newValue) {
270
OperationalStatus = newValue;
271
OperationalStatus_isNULL = false;
275
int getStatusDescriptions(vector<string>& value) const {
276
if (StatusDescriptions_isNULL==true)
278
value = StatusDescriptions;
282
int setStatusDescriptions(const vector<string>& newValue) {
283
StatusDescriptions = newValue;
284
StatusDescriptions_isNULL = false;
288
int getStatus(string& value) const {
289
if (Status_isNULL==true)
295
int setStatus(const string& newValue) {
297
Status_isNULL = false;
301
int getHealthState(unsigned short& value) const {
302
if (HealthState_isNULL==true)
308
int setHealthState(const unsigned short& newValue) {
309
HealthState = newValue;
310
HealthState_isNULL = false;
314
int getCommunicationStatus(unsigned short& value) const {
315
if (CommunicationStatus_isNULL==true)
317
value = CommunicationStatus;
321
int setCommunicationStatus(const unsigned short& newValue) {
322
CommunicationStatus = newValue;
323
CommunicationStatus_isNULL = false;
327
int getDetailedStatus(unsigned short& value) const {
328
if (DetailedStatus_isNULL==true)
330
value = DetailedStatus;
334
int setDetailedStatus(const unsigned short& newValue) {
335
DetailedStatus = newValue;
336
DetailedStatus_isNULL = false;
340
int getOperatingStatus(unsigned short& value) const {
341
if (OperatingStatus_isNULL==true)
343
value = OperatingStatus;
347
int setOperatingStatus(const unsigned short& newValue) {
348
OperatingStatus = newValue;
349
OperatingStatus_isNULL = false;
353
int getPrimaryStatus(unsigned short& value) const {
354
if (PrimaryStatus_isNULL==true)
356
value = PrimaryStatus;
360
int setPrimaryStatus(const unsigned short& newValue) {
361
PrimaryStatus = newValue;
362
PrimaryStatus_isNULL = false;
366
int getEnabledState(unsigned short& value) const {
367
if (EnabledState_isNULL==true)
369
value = EnabledState;
373
int setEnabledState(const unsigned short& newValue) {
374
EnabledState = newValue;
375
EnabledState_isNULL = false;
379
int getOtherEnabledState(string& value) const {
380
if (OtherEnabledState_isNULL==true)
382
value = OtherEnabledState;
386
int setOtherEnabledState(const string& newValue) {
387
OtherEnabledState = newValue;
388
OtherEnabledState_isNULL = false;
392
int getRequestedState(unsigned short& value) const {
393
if (RequestedState_isNULL==true)
395
value = RequestedState;
399
int setRequestedState(const unsigned short& newValue) {
400
RequestedState = newValue;
401
RequestedState_isNULL = false;
405
int getEnabledDefault(unsigned short& value) const {
406
if (EnabledDefault_isNULL==true)
408
value = EnabledDefault;
412
int setEnabledDefault(const unsigned short& newValue) {
413
EnabledDefault = newValue;
414
EnabledDefault_isNULL = false;
418
int getTimeOfLastStateChange(string& value) const {
419
if (TimeOfLastStateChange_isNULL==true)
421
value = TimeOfLastStateChange;
425
int setTimeOfLastStateChange(const string& newValue) {
426
TimeOfLastStateChange = newValue;
427
TimeOfLastStateChange_isNULL = false;
431
int getAvailableRequestedStates(vector<unsigned short>& value) const {
432
if (AvailableRequestedStates_isNULL==true)
434
value = AvailableRequestedStates;
438
int setAvailableRequestedStates(const vector<unsigned short>& newValue) {
439
AvailableRequestedStates = newValue;
440
AvailableRequestedStates_isNULL = false;
444
int getTransitioningToState(unsigned short& value) const {
445
if (TransitioningToState_isNULL==true)
447
value = TransitioningToState;
451
int setTransitioningToState(const unsigned short& newValue) {
452
TransitioningToState = newValue;
453
TransitioningToState_isNULL = false;
457
int getSystemCreationClassName(string& value) const {
458
if (SystemCreationClassName_isNULL==true)
460
value = SystemCreationClassName;
464
int setSystemCreationClassName(const string& newValue) {
465
SystemCreationClassName = newValue;
466
SystemCreationClassName_isNULL = false;
470
int getSystemName(string& value) const {
471
if (SystemName_isNULL==true)
477
int setSystemName(const string& newValue) {
478
SystemName = newValue;
479
SystemName_isNULL = false;
483
int getCreationClassName(string& value) const {
484
if (CreationClassName_isNULL==true)
486
value = CreationClassName;
490
int setCreationClassName(const string& newValue) {
491
CreationClassName = newValue;
492
CreationClassName_isNULL = false;
496
int getName(string& value) const {
497
if (Name_isNULL==true)
503
int setName(const string& newValue) {
509
int getPrimaryOwnerName(string& value) const {
510
if (PrimaryOwnerName_isNULL==true)
512
value = PrimaryOwnerName;
516
int setPrimaryOwnerName(const string& newValue) {
517
PrimaryOwnerName = newValue;
518
PrimaryOwnerName_isNULL = false;
522
int getPrimaryOwnerContact(string& value) const {
523
if (PrimaryOwnerContact_isNULL==true)
525
value = PrimaryOwnerContact;
529
int setPrimaryOwnerContact(const string& newValue) {
530
PrimaryOwnerContact = newValue;
531
PrimaryOwnerContact_isNULL = false;
535
int getStartMode(string& value) const {
536
if (StartMode_isNULL==true)
542
int setStartMode(const string& newValue) {
543
StartMode = newValue;
544
StartMode_isNULL = false;
548
int getStarted(bool& value) const {
549
if (Started_isNULL==true)
555
int setStarted(const bool& newValue) {
557
Started_isNULL = false;
561
int getProtocol(unsigned short& value) const {
562
if (Protocol_isNULL==true)
568
int setProtocol(const unsigned short& newValue) {
570
Protocol_isNULL = false;
574
int getOtherProtocol(string& value) const {
575
if (OtherProtocol_isNULL==true)
577
value = OtherProtocol;
581
int setOtherProtocol(const string& newValue) {
582
OtherProtocol = newValue;
583
OtherProtocol_isNULL = false;
587
int getMaxConnections(unsigned short& value) const {
588
if (MaxConnections_isNULL==true)
590
value = MaxConnections;
594
int setMaxConnections(const unsigned short& newValue) {
595
MaxConnections = newValue;
596
MaxConnections_isNULL = false;
600
int getCurrentActiveConnections(unsigned short& value) const {
601
if (CurrentActiveConnections_isNULL==true)
603
value = CurrentActiveConnections;
607
int setCurrentActiveConnections(const unsigned short& newValue) {
608
CurrentActiveConnections = newValue;
609
CurrentActiveConnections_isNULL = false;
615
class OpenDRIM_SSHProtocolService_RequestStateChange_In {
619
unsigned short RequestedState;
620
bool RequestedState_isNULL;
625
string TimeoutPeriod;
626
bool TimeoutPeriod_isNULL;
628
OpenDRIM_SSHProtocolService_RequestStateChange_In() {
629
RequestedState_isNULL = true;
631
TimeoutPeriod_isNULL = true;
634
~OpenDRIM_SSHProtocolService_RequestStateChange_In() {}
636
int getRequestedState(unsigned short& value) const {
637
if (RequestedState_isNULL == true)
639
value = RequestedState;
642
int setRequestedState(const unsigned short& newValue) {
643
RequestedState = newValue;
644
RequestedState_isNULL = false;
648
int getJob(Objectpath& value) const {
649
if (Job_isNULL == true)
654
int setJob(const Objectpath& newValue) {
660
int getTimeoutPeriod(string& value) const {
661
if (TimeoutPeriod_isNULL == true)
663
value = TimeoutPeriod;
666
int setTimeoutPeriod(const string& newValue) {
667
TimeoutPeriod = newValue;
668
TimeoutPeriod_isNULL = false;
674
class OpenDRIM_SSHProtocolService_RequestStateChange_Out {
681
OpenDRIM_SSHProtocolService_RequestStateChange_Out() {
685
~OpenDRIM_SSHProtocolService_RequestStateChange_Out() {}
687
int getJob(Objectpath& value) const {
688
if (Job_isNULL == true)
693
int setJob(const Objectpath& newValue) {
701
class OpenDRIM_SSHProtocolService_ChangeAffectedElementsAssignedSequence_In {
705
vector<Objectpath> ManagedElements;
706
bool ManagedElements_isNULL;
708
vector<unsigned short> AssignedSequence;
709
bool AssignedSequence_isNULL;
714
OpenDRIM_SSHProtocolService_ChangeAffectedElementsAssignedSequence_In() {
715
ManagedElements_isNULL = true;
716
AssignedSequence_isNULL = true;
720
~OpenDRIM_SSHProtocolService_ChangeAffectedElementsAssignedSequence_In() {}
722
int getManagedElements(vector<Objectpath>& value) const {
723
if (ManagedElements_isNULL == true)
725
value = ManagedElements;
728
int setManagedElements(const vector<Objectpath>& newValue) {
729
ManagedElements = newValue;
730
ManagedElements_isNULL = false;
734
int getAssignedSequence(vector<unsigned short>& value) const {
735
if (AssignedSequence_isNULL == true)
737
value = AssignedSequence;
740
int setAssignedSequence(const vector<unsigned short>& newValue) {
741
AssignedSequence = newValue;
742
AssignedSequence_isNULL = false;
746
int getJob(Objectpath& value) const {
747
if (Job_isNULL == true)
752
int setJob(const Objectpath& newValue) {
760
class OpenDRIM_SSHProtocolService_ChangeAffectedElementsAssignedSequence_Out {
767
OpenDRIM_SSHProtocolService_ChangeAffectedElementsAssignedSequence_Out() {
771
~OpenDRIM_SSHProtocolService_ChangeAffectedElementsAssignedSequence_Out() {}
773
int getJob(Objectpath& value) const {
774
if (Job_isNULL == true)
779
int setJob(const Objectpath& newValue) {
787
class OpenDRIM_SSHProtocolService_ListenOnPort_In {
791
unsigned int PortNumber;
792
bool PortNumber_isNULL;
794
Objectpath IPEndpoint;
795
bool IPEndpoint_isNULL;
797
Objectpath TCPEndpoint;
798
bool TCPEndpoint_isNULL;
800
OpenDRIM_SSHProtocolService_ListenOnPort_In() {
801
PortNumber_isNULL = true;
802
IPEndpoint_isNULL = true;
803
TCPEndpoint_isNULL = true;
806
~OpenDRIM_SSHProtocolService_ListenOnPort_In() {}
808
int getPortNumber(unsigned int& value) const {
809
if (PortNumber_isNULL == true)
814
int setPortNumber(const unsigned int& newValue) {
815
PortNumber = newValue;
816
PortNumber_isNULL = false;
820
int getIPEndpoint(Objectpath& value) const {
821
if (IPEndpoint_isNULL == true)
826
int setIPEndpoint(const Objectpath& newValue) {
827
IPEndpoint = newValue;
828
IPEndpoint_isNULL = false;
832
int getTCPEndpoint(Objectpath& value) const {
833
if (TCPEndpoint_isNULL == true)
838
int setTCPEndpoint(const Objectpath& newValue) {
839
TCPEndpoint = newValue;
840
TCPEndpoint_isNULL = false;
846
class OpenDRIM_SSHProtocolService_ListenOnPort_Out {
850
Objectpath TCPEndpoint;
851
bool TCPEndpoint_isNULL;
853
OpenDRIM_SSHProtocolService_ListenOnPort_Out() {
854
TCPEndpoint_isNULL = true;
857
~OpenDRIM_SSHProtocolService_ListenOnPort_Out() {}
859
int getTCPEndpoint(Objectpath& value) const {
860
if (TCPEndpoint_isNULL == true)
865
int setTCPEndpoint(const Objectpath& newValue) {
866
TCPEndpoint = newValue;
867
TCPEndpoint_isNULL = false;
873
#endif /*OPENDRIM_SSHPROTOCOLSERVICE_H_*/