1616 *
1717 */
1818
19- package com .cloud .agent .api ;
20-
19+ package com .cloud .agent .api ;
20+
2121public class CreatePrivateTemplateFromVolumeCommand extends SnapshotCommand {
22- private String _vmName ;
23- private String _volumePath ;
24- private String _userSpecifiedName ;
25- private String _uniqueName ;
22+ private String _vmName ;
23+ private String _volumePath ;
24+ private String _userSpecifiedName ;
25+ private String _uniqueName ;
2626 private long _templateId ;
27- private long _accountId ;
28- // For XenServer
29- private String _secondaryStorageURL ;
30-
31-
32- public CreatePrivateTemplateFromVolumeCommand () { }
33-
34- public CreatePrivateTemplateFromVolumeCommand (String secondaryStorageURL , long templateId , long accountId , String userSpecifiedName , String uniqueName , String volumePath , String vmName , int wait ) {
35- _secondaryStorageURL = secondaryStorageURL ;
36- _templateId = templateId ;
37- _accountId = accountId ;
38- _userSpecifiedName = userSpecifiedName ;
39- _uniqueName = uniqueName ;
27+ private long _accountId ;
28+ // For XenServer
29+ private String _secondaryStorageUrl ;
30+
31+ public CreatePrivateTemplateFromVolumeCommand () {
32+ }
33+
34+ public CreatePrivateTemplateFromVolumeCommand (String secondaryStorageUrl , long templateId , long accountId , String userSpecifiedName , String uniqueName , String volumePath , String vmName , int wait ) {
35+ _secondaryStorageUrl = secondaryStorageUrl ;
36+ _templateId = templateId ;
37+ _accountId = accountId ;
38+ _userSpecifiedName = userSpecifiedName ;
39+ _uniqueName = uniqueName ;
4040 _volumePath = volumePath ;
4141 _vmName = vmName ;
42- setWait (wait );
43- }
44-
45- @ Override
46- public boolean executeInSequence () {
47- return false ;
48- }
49-
50- public String getSecondaryStorageURL () {
51- return _secondaryStorageURL ;
52- }
53-
54- public String getTemplateName () {
55- return _userSpecifiedName ;
56- }
57-
58- public String getUniqueName () {
59- return _uniqueName ;
60- }
61-
62- public long getTemplateId () {
63- return _templateId ;
42+ setWait (wait );
43+ }
44+
45+ @ Override
46+ public boolean executeInSequence () {
47+ return false ;
48+ }
49+
50+ public String getSecondaryStorageUrl () {
51+ return _secondaryStorageUrl ;
52+ }
53+
54+ public String getTemplateName () {
55+ return _userSpecifiedName ;
6456 }
65-
57+
58+ public String getUniqueName () {
59+ return _uniqueName ;
60+ }
61+
62+ public long getTemplateId () {
63+ return _templateId ;
64+ }
65+
6666 public String getVmName () {
67- return _vmName ;
67+ return _vmName ;
6868 }
69-
69+
7070 public void setVolumePath (String _volumePath ) {
7171 this ._volumePath = _volumePath ;
7272 }
@@ -76,10 +76,10 @@ public String getVolumePath() {
7676 }
7777
7878 public Long getAccountId () {
79- return _accountId ;
80- }
81-
82- public void setTemplateId (long templateId ) {
83- _templateId = templateId ;
84- }
85- }
79+ return _accountId ;
80+ }
81+
82+ public void setTemplateId (long templateId ) {
83+ _templateId = templateId ;
84+ }
85+ }
0 commit comments