DaanHoogland commented on code in PR #7659:
URL: https://github.com/apache/cloudstack/pull/7659#discussion_r1236516281


##########
server/src/main/java/org/apache/cloudstack/storage/heuristics/presetvariables/PresetVariables.java:
##########
@@ -0,0 +1,62 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.storage.heuristics.presetvariables;
+
+import java.util.List;
+
+public class PresetVariables {
+
+    private List<SecondaryStorage> secondaryStorages;
+
+    private Template template;
+
+    private Snapshot snapshot;
+
+    private Volume volume;
+
+    public List<SecondaryStorage> getSecondaryStorages() {
+        return secondaryStorages;
+    }
+
+    public void setSecondaryStorages(List<SecondaryStorage> secondaryStorages) 
{
+        this.secondaryStorages = secondaryStorages;
+    }
+
+    public Template getTemplate() {
+        return template;
+    }
+
+    public void setTemplate(Template template) {
+        this.template = template;
+    }
+
+    public Snapshot getSnapshot() {
+        return snapshot;
+    }
+
+    public void setSnapshot(Snapshot snapshot) {
+        this.snapshot = snapshot;
+    }
+
+    public Volume getVolume() {
+        return volume;
+    }
+
+    public void setVolume(Volume volume) {
+        this.volume = volume;
+    }
+}

Review Comment:
   needs an extra newline



##########
server/src/main/java/org/apache/cloudstack/storage/heuristics/presetvariables/SecondaryStorage.java:
##########
@@ -0,0 +1,64 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.storage.heuristics.presetvariables;
+
+public class SecondaryStorage extends GenericHeuristicPresetVariable {
+
+    private String uuid;
+
+    private Long usedDiskSize;
+
+    private Long totalDiskSize;
+
+    private String protocol;
+
+    public String getUuid() {
+        return uuid;
+    }
+
+    public void setUuid(String uuid) {
+        this.uuid = uuid;
+        fieldNamesToIncludeInToString.add("uuid");
+    }
+
+    public Long getUsedDiskSize() {
+        return usedDiskSize;
+    }
+
+    public void setUsedDiskSize(Long usedDiskSize) {
+        this.usedDiskSize = usedDiskSize;
+        fieldNamesToIncludeInToString.add("usedDiskSize");
+    }
+
+    public Long getTotalDiskSize() {
+        return totalDiskSize;
+    }
+
+    public void setTotalDiskSize(Long totalDiskSize) {
+        this.totalDiskSize = totalDiskSize;
+        fieldNamesToIncludeInToString.add("totalDiskSize");
+    }
+
+    public String getProtocol() {
+        return protocol;
+    }
+
+    public void setProtocol(String protocol) {
+        this.protocol = protocol;
+        fieldNamesToIncludeInToString.add("protocol");
+    }
+}

Review Comment:
   needs an extra newline



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to