cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sw...@apache.org
Subject [11/39] git commit: updated refs/heads/master to 3c800b4
Date Thu, 26 May 2016 03:05:50 GMT
Removing “_” from the front of member variables in “Command” classes

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a538e78b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a538e78b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a538e78b

Branch: refs/heads/master
Commit: a538e78bdb5af7dc2009dfc34f9c00d5f0d7ada7
Parents: 570b676
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Fri May 20 20:56:57 2016 -0600
Committer: Mike Tutkowski <mike.tutkowski@solidfire.com>
Committed: Fri May 20 20:56:57 2016 -0600

----------------------------------------------------------------------
 .../agent/api/ModifyStoragePoolAnswer.java      | 22 ++++++++---------
 .../agent/api/ModifyStoragePoolCommand.java     | 26 ++++++++++----------
 .../cloud/agent/api/ModifyTargetsCommand.java   | 12 ++++-----
 3 files changed, 30 insertions(+), 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a538e78b/core/src/com/cloud/agent/api/ModifyStoragePoolAnswer.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/agent/api/ModifyStoragePoolAnswer.java b/core/src/com/cloud/agent/api/ModifyStoragePoolAnswer.java
index 0e42d9a..6e6dadc 100644
--- a/core/src/com/cloud/agent/api/ModifyStoragePoolAnswer.java
+++ b/core/src/com/cloud/agent/api/ModifyStoragePoolAnswer.java
@@ -24,41 +24,41 @@ import java.util.Map;
 import com.cloud.storage.template.TemplateProp;
 
 public class ModifyStoragePoolAnswer extends Answer {
-    private StoragePoolInfo _poolInfo;
-    private Map<String, TemplateProp> _templateInfo;
-    private String _localDatastoreName;
+    private StoragePoolInfo poolInfo;
+    private Map<String, TemplateProp> templateInfo;
+    private String localDatastoreName;
 
     public ModifyStoragePoolAnswer(ModifyStoragePoolCommand cmd, long capacityBytes, long
availableBytes, Map<String, TemplateProp> tInfo) {
         super(cmd);
 
         result = true;
 
-        _poolInfo = new StoragePoolInfo(null, cmd.getPool().getHost(), cmd.getPool().getPath(),
cmd.getLocalPath(), cmd.getPool().getType(), capacityBytes, availableBytes);
+        poolInfo = new StoragePoolInfo(null, cmd.getPool().getHost(), cmd.getPool().getPath(),
cmd.getLocalPath(), cmd.getPool().getType(), capacityBytes, availableBytes);
 
-        _templateInfo = tInfo;
+        templateInfo = tInfo;
     }
 
     public void setPoolInfo(StoragePoolInfo poolInfo) {
-        _poolInfo = poolInfo;
+        this.poolInfo = poolInfo;
     }
 
     public StoragePoolInfo getPoolInfo() {
-        return _poolInfo;
+        return poolInfo;
     }
 
     public void setTemplateInfo(Map<String, TemplateProp> templateInfo) {
-        _templateInfo = templateInfo;
+        this.templateInfo = templateInfo;
     }
 
     public Map<String, TemplateProp> getTemplateInfo() {
-        return _templateInfo;
+        return templateInfo;
     }
 
     public void setLocalDatastoreName(String localDatastoreName) {
-        _localDatastoreName = localDatastoreName;
+        this.localDatastoreName = localDatastoreName;
     }
 
     public String getLocalDatastoreName() {
-        return _localDatastoreName;
+        return localDatastoreName;
     }
 }

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a538e78b/core/src/com/cloud/agent/api/ModifyStoragePoolCommand.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/agent/api/ModifyStoragePoolCommand.java b/core/src/com/cloud/agent/api/ModifyStoragePoolCommand.java
index 9ec4a27..c2ab0ab 100644
--- a/core/src/com/cloud/agent/api/ModifyStoragePoolCommand.java
+++ b/core/src/com/cloud/agent/api/ModifyStoragePoolCommand.java
@@ -28,15 +28,15 @@ import com.cloud.storage.StoragePool;
 public class ModifyStoragePoolCommand extends Command {
     public static final String LOCAL_PATH_PREFIX = "/mnt/";
 
-    private boolean _add;
-    private StorageFilerTO _pool;
-    private String _localPath;
-    private String _storagePath;
+    private boolean add;
+    private StorageFilerTO pool;
+    private String localPath;
+    private String storagePath;
 
     public ModifyStoragePoolCommand(boolean add, StoragePool pool, String localPath) {
-        _add = add;
-        _pool = new StorageFilerTO(pool);
-        _localPath = localPath;
+        this.add = add;
+        this.pool = new StorageFilerTO(pool);
+        this.localPath = localPath;
     }
 
     public ModifyStoragePoolCommand(boolean add, StoragePool pool) {
@@ -44,27 +44,27 @@ public class ModifyStoragePoolCommand extends Command {
     }
 
     public boolean getAdd() {
-        return _add;
+        return add;
     }
 
     public void setPool(StoragePool pool) {
-        _pool = new StorageFilerTO(pool);
+        this.pool = new StorageFilerTO(pool);
     }
 
     public StorageFilerTO getPool() {
-        return _pool;
+        return pool;
     }
 
     public String getLocalPath() {
-        return _localPath;
+        return localPath;
     }
 
     public void setStoragePath(String storagePath) {
-        _storagePath = storagePath;
+        this.storagePath = storagePath;
     }
 
     public String getStoragePath() {
-        return _storagePath;
+        return storagePath;
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a538e78b/core/src/com/cloud/agent/api/ModifyTargetsCommand.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/agent/api/ModifyTargetsCommand.java b/core/src/com/cloud/agent/api/ModifyTargetsCommand.java
index 721516b..424d797 100644
--- a/core/src/com/cloud/agent/api/ModifyTargetsCommand.java
+++ b/core/src/com/cloud/agent/api/ModifyTargetsCommand.java
@@ -31,23 +31,23 @@ public class ModifyTargetsCommand extends Command {
     public static final String MUTUAL_CHAP_NAME = "mutualChapName";
     public static final String MUTUAL_CHAP_SECRET = "mutualChapSecret";
 
-    private boolean _add;
-    private List<Map<String, String>> _targets;
+    private boolean add;
+    private List<Map<String, String>> targets;
 
     public void setAdd(boolean add) {
-        _add = add;
+        this.add = add;
     }
 
     public boolean getAdd() {
-        return _add;
+        return add;
     }
 
     public void setTargets(List<Map<String, String>> targets) {
-        _targets = targets;
+        this.targets = targets;
     }
 
     public List<Map<String, String>> getTargets() {
-        return _targets;
+        return targets;
     }
 
     @Override


Mime
View raw message