brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [07/10] incubator-brooklyn git commit: Adds VanillaWindowsProcess.WINRM_PORT attribute
Date Sun, 14 Jun 2015 20:47:57 GMT
Adds VanillaWindowsProcess.WINRM_PORT attribute


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

Branch: refs/heads/master
Commit: d7451b428e4cae1a419569381aac6e98eb250973
Parents: 475c482
Author: Aled Sage <aled.sage@gmail.com>
Authored: Sat Jun 13 17:28:07 2015 +0100
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Sat Jun 13 23:11:10 2015 +0100

----------------------------------------------------------------------
 core/src/main/java/brooklyn/entity/basic/Attributes.java         | 4 ++++
 .../main/java/brooklyn/entity/basic/VanillaWindowsProcess.java   | 1 +
 .../java/brooklyn/entity/basic/VanillaWindowsProcessImpl.java    | 1 +
 3 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/d7451b42/core/src/main/java/brooklyn/entity/basic/Attributes.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/entity/basic/Attributes.java b/core/src/main/java/brooklyn/entity/basic/Attributes.java
index cc90e68..f625652 100644
--- a/core/src/main/java/brooklyn/entity/basic/Attributes.java
+++ b/core/src/main/java/brooklyn/entity/basic/Attributes.java
@@ -86,6 +86,10 @@ public interface Attributes {
             UserAndHostAndPort.class, 
             "host.sshAddress", 
             "user@host:port for ssh'ing (or null if inappropriate)");
+    AttributeSensor<UserAndHostAndPort> WINRM_ADDRESS = Sensors.newSensor(
+            UserAndHostAndPort.class, 
+            "host.winrmAddress", 
+            "user@host:port for WinRM'ing (or null if inappropriate)");
     AttributeSensor<String> SUBNET_HOSTNAME = Sensors.newStringSensor( "host.subnet.hostname",
"Host name as known internally in " +
             "the subnet where it is running (if different to host.name)");
     AttributeSensor<String> SUBNET_ADDRESS = Sensors.newStringSensor( "host.subnet.address",
"Host address as known internally in " +

http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/d7451b42/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcess.java
----------------------------------------------------------------------
diff --git a/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcess.java
b/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcess.java
index 1389722..cb1f04d 100644
--- a/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcess.java
+++ b/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcess.java
@@ -63,4 +63,5 @@ public interface VanillaWindowsProcess extends AbstractVanillaProcess {
             "duration to wait whilst waiting for a machine to finish rebooting, and thus
to become available again", Duration.minutes(30));
     
     AttributeSensor<Integer> RDP_PORT = Sensors.newIntegerSensor("rdpPort");
+    AttributeSensor<Integer> WINRM_PORT = Sensors.newIntegerSensor("winrmPort");
 }

http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/d7451b42/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcessImpl.java
----------------------------------------------------------------------
diff --git a/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcessImpl.java
b/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcessImpl.java
index 732963c..aaa6641 100644
--- a/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcessImpl.java
+++ b/software/base/src/main/java/brooklyn/entity/basic/VanillaWindowsProcessImpl.java
@@ -29,6 +29,7 @@ public class VanillaWindowsProcessImpl extends SoftwareProcessImpl implements
Va
     protected void preStart() {
         super.preStart();
         setAttribute(RDP_PORT, 3389);
+        setAttribute(WINRM_PORT, 5985);
     }
     
     @Override


Mime
View raw message