brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [07/16] git commit: Deprecate unused SshMachineLocation.execWithLogging
Date Tue, 14 Oct 2014 10:04:57 GMT
Deprecate unused SshMachineLocation.execWithLogging

- method that takes a Closure is unused

Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/7495953f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/7495953f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/7495953f

Branch: refs/heads/master
Commit: 7495953fb9122c2d5e532ad6a15edf3bf22503f5
Parents: 04da653
Author: Aled Sage <aled.sage@gmail.com>
Authored: Mon Oct 13 21:07:01 2014 +0100
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Mon Oct 13 21:07:01 2014 +0100

----------------------------------------------------------------------
 .../main/java/brooklyn/location/basic/SshMachineLocation.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/7495953f/core/src/main/java/brooklyn/location/basic/SshMachineLocation.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/location/basic/SshMachineLocation.java b/core/src/main/java/brooklyn/location/basic/SshMachineLocation.java
index 90d917a..c35573a 100644
--- a/core/src/main/java/brooklyn/location/basic/SshMachineLocation.java
+++ b/core/src/main/java/brooklyn/location/basic/SshMachineLocation.java
@@ -617,6 +617,11 @@ public class SshMachineLocation extends AbstractLocation implements MachineLocat
         }.logger(logSsh);
     }
 
+    /**
+     * @deprecated since 0.7.0; use {@link #execCommands(Map, String, List, Map), and rely
on that calling the execWithLogging
+     */
+    @SuppressWarnings({"rawtypes", "unchecked"})
+    @Deprecated
     protected int execWithLogging(Map<String,?> props, String summaryForLogging, List<String>
commands, Map env, final Closure<Integer> execCommand) {
         return newExecWithLoggingHelpers().execWithLogging(props, summaryForLogging, commands,
env, new ExecRunner() {
                 @Override public int exec(ShellTool ssh, Map<String, ?> flags, List<String>
cmds, Map<String, ?> env) {


Mime
View raw message