1919import com .cloud .storage .Storage .StoragePoolType ;
2020
2121public class AttachVolumeCommand extends Command {
22- private boolean attach ;
23- private boolean _managed ;
24- private String vmName ;
25- private StoragePoolType pooltype ;
26- private String volumePath ;
27- private String volumeName ;
28- private Long deviceId ;
29- private String chainInfo ;
30- private String poolUuid ;
31- private String _storageHost ;
32- private int _storagePort ;
33- private String _iScsiName ;
34- private String _chapInitiatorUsername ;
35- private String _chapInitiatorPassword ;
36- private String _chapTargetUsername ;
37- private String _chapTargetPassword ;
38- private Long bytesReadRate ;
39- private Long bytesWriteRate ;
40- private Long iopsReadRate ;
41- private Long iopsWriteRate ;
42-
43- protected AttachVolumeCommand () {
44- }
22+ private boolean attach ;
23+ private boolean _managed ;
24+ private String vmName ;
25+ private StoragePoolType pooltype ;
26+ private String volumePath ;
27+ private String volumeName ;
28+ private Long deviceId ;
29+ private String chainInfo ;
30+ private String poolUuid ;
31+ private String _storageHost ;
32+ private int _storagePort ;
33+ private String _iScsiName ;
34+ private String _chapInitiatorUsername ;
35+ private String _chapInitiatorPassword ;
36+ private String _chapTargetUsername ;
37+ private String _chapTargetPassword ;
38+ private Long bytesReadRate ;
39+ private Long bytesWriteRate ;
40+ private Long iopsReadRate ;
41+ private Long iopsWriteRate ;
42+
43+ protected AttachVolumeCommand () {
44+ }
4545
4646 public AttachVolumeCommand (boolean attach , boolean managed , String vmName ,
4747 StoragePoolType pooltype , String volumePath , String volumeName ,
4848 Long deviceId , String chainInfo ) {
49- this .attach = attach ;
50- this ._managed = managed ;
51- this .vmName = vmName ;
52- this .pooltype = pooltype ;
53- this .volumePath = volumePath ;
54- this .volumeName = volumeName ;
55- this .deviceId = deviceId ;
56- this .chainInfo = chainInfo ;
57- }
58-
59- @ Override
49+ this .attach = attach ;
50+ this ._managed = managed ;
51+ this .vmName = vmName ;
52+ this .pooltype = pooltype ;
53+ this .volumePath = volumePath ;
54+ this .volumeName = volumeName ;
55+ this .deviceId = deviceId ;
56+ this .chainInfo = chainInfo ;
57+ }
58+
59+ @ Override
6060 public boolean executeInSequence () {
6161 return true ;
6262 }
6363
64- public boolean getAttach () {
65- return attach ;
66- }
64+ public boolean getAttach () {
65+ return attach ;
66+ }
6767
68- public String getVmName () {
69- return vmName ;
70- }
68+ public String getVmName () {
69+ return vmName ;
70+ }
7171
72- public StoragePoolType getPooltype () {
72+ public StoragePoolType getPooltype () {
7373 return pooltype ;
7474 }
7575
7676 public void setPooltype (StoragePoolType pooltype ) {
7777 this .pooltype = pooltype ;
7878 }
7979
80- public String getVolumePath () {
81- return volumePath ;
82- }
80+ public String getVolumePath () {
81+ return volumePath ;
82+ }
8383
84- public String getVolumeName () {
84+ public String getVolumeName () {
8585 return volumeName ;
86- }
86+ }
8787
8888 public Long getDeviceId () {
8989 return deviceId ;
@@ -109,61 +109,61 @@ public void setStorageHost(String storageHost) {
109109 _storageHost = storageHost ;
110110 }
111111
112- public String getStorageHost () {
113- return _storageHost ;
114- }
112+ public String getStorageHost () {
113+ return _storageHost ;
114+ }
115115
116- public void setStoragePort (int storagePort ) {
117- _storagePort = storagePort ;
118- }
116+ public void setStoragePort (int storagePort ) {
117+ _storagePort = storagePort ;
118+ }
119119
120- public int getStoragePort () {
121- return _storagePort ;
122- }
120+ public int getStoragePort () {
121+ return _storagePort ;
122+ }
123123
124- public boolean isManaged () {
124+ public boolean isManaged () {
125125 return _managed ;
126126 }
127127
128- public void set_iScsiName (String iScsiName ) {
129- this ._iScsiName = iScsiName ;
130- }
128+ public void set_iScsiName (String iScsiName ) {
129+ this ._iScsiName = iScsiName ;
130+ }
131131
132- public String get_iScsiName () {
133- return _iScsiName ;
134- }
132+ public String get_iScsiName () {
133+ return _iScsiName ;
134+ }
135135
136- public void setChapInitiatorUsername (String chapInitiatorUsername ) {
137- _chapInitiatorUsername = chapInitiatorUsername ;
138- }
136+ public void setChapInitiatorUsername (String chapInitiatorUsername ) {
137+ _chapInitiatorUsername = chapInitiatorUsername ;
138+ }
139139
140- public String getChapInitiatorUsername () {
141- return _chapInitiatorUsername ;
142- }
140+ public String getChapInitiatorUsername () {
141+ return _chapInitiatorUsername ;
142+ }
143143
144- public void setChapInitiatorPassword (String chapInitiatorPassword ) {
145- _chapInitiatorPassword = chapInitiatorPassword ;
146- }
144+ public void setChapInitiatorPassword (String chapInitiatorPassword ) {
145+ _chapInitiatorPassword = chapInitiatorPassword ;
146+ }
147147
148- public String getChapInitiatorPassword () {
149- return _chapInitiatorPassword ;
150- }
148+ public String getChapInitiatorPassword () {
149+ return _chapInitiatorPassword ;
150+ }
151151
152- public void setChapTargetUsername (String chapTargetUsername ) {
153- _chapTargetUsername = chapTargetUsername ;
154- }
152+ public void setChapTargetUsername (String chapTargetUsername ) {
153+ _chapTargetUsername = chapTargetUsername ;
154+ }
155155
156- public String getChapTargetUsername () {
157- return _chapTargetUsername ;
158- }
156+ public String getChapTargetUsername () {
157+ return _chapTargetUsername ;
158+ }
159159
160- public void setChapTargetPassword (String chapTargetPassword ) {
161- _chapTargetPassword = chapTargetPassword ;
162- }
160+ public void setChapTargetPassword (String chapTargetPassword ) {
161+ _chapTargetPassword = chapTargetPassword ;
162+ }
163163
164- public String getChapTargetPassword () {
165- return _chapTargetPassword ;
166- }
164+ public String getChapTargetPassword () {
165+ return _chapTargetPassword ;
166+ }
167167
168168 public void setBytesReadRate (Long bytesReadRate ) {
169169 this .bytesReadRate = bytesReadRate ;
0 commit comments