1717package com .cloud .agent .api ;
1818
1919/**
20- * This currently assumes that both primary and secondary storage are mounted on the XenServer.
20+ * This currently assumes that both primary and secondary storage are mounted on
21+ * the XenServer.
2122 */
2223public class SnapshotCommand extends Command {
2324 protected String primaryStoragePoolNameLabel ;
2425 private String snapshotUuid ;
2526 private String snapshotName ;
2627 private String secondaryStorageUrl ;
27- private Long dcId ;
28- private Long accountId ;
29- private Long volumeId ;
28+ private Long dcId ;
29+ private Long accountId ;
30+ private Long volumeId ;
3031 private String volumePath ;
31-
32+
3233 protected SnapshotCommand () {
33-
34+
3435 }
35-
36+
3637 /**
37- * @param primaryStoragePoolNameLabel The primary storage Pool
38- * @param snapshotUuid The UUID of the snapshot which is going to be backed up
39- * @param secondaryStoragePoolURL This is what shows up in the UI when you click on Secondary storage.
40- * In the code, it is present as: In the vmops.host_details table, there is a field mount.parent. This is the value of that field
41- * If you have better ideas on how to get it, you are welcome.
38+ * @param primaryStoragePoolNameLabel
39+ * The primary storage Pool
40+ * @param snapshotUuid
41+ * The UUID of the snapshot which is going to be backed up
42+ * @param secondaryStoragePoolURL
43+ * This is what shows up in the UI when you click on Secondary
44+ * storage. In the code, it is present as: In the
45+ * vmops.host_details table, there is a field mount.parent. This
46+ * is the value of that field If you have better ideas on how to
47+ * get it, you are welcome.
4248 */
4349 public SnapshotCommand (String primaryStoragePoolNameLabel ,
44- String secondaryStorageUrl ,
45- String snapshotUuid ,
46- String snapshotName ,
47- Long dcId ,
48- Long accountId ,
49- Long volumeId )
50- {
50+ String secondaryStorageUrl , String snapshotUuid ,
51+ String snapshotName , Long dcId , Long accountId , Long volumeId ) {
5152 this .primaryStoragePoolNameLabel = primaryStoragePoolNameLabel ;
5253 this .snapshotUuid = snapshotUuid ;
5354 this .secondaryStorageUrl = secondaryStorageUrl ;
@@ -70,19 +71,18 @@ public String getPrimaryStoragePoolNameLabel() {
7071 public String getSnapshotUuid () {
7172 return snapshotUuid ;
7273 }
73-
74+
7475 public String getSnapshotName () {
75- return snapshotName ;
76+ return snapshotName ;
7677 }
77-
78+
7879 /**
7980 * @return the secondaryStoragePoolURL
8081 */
8182 public String getSecondaryStorageUrl () {
8283 return secondaryStorageUrl ;
8384 }
8485
85-
8686 public Long getDataCenterId () {
8787 return dcId ;
8888 }
@@ -94,13 +94,13 @@ public Long getAccountId() {
9494 public Long getVolumeId () {
9595 return volumeId ;
9696 }
97-
97+
9898 public String getVolumePath () {
99- return volumePath ;
99+ return volumePath ;
100100 }
101-
101+
102102 public void setVolumePath (String path ) {
103- volumePath = path ;
103+ volumePath = path ;
104104 }
105105
106106 /**
0 commit comments