From d94b19c21ad7d91358b8aabc240fcceb3a3a3a2d Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 25 Jun 2014 23:50:20 +0200 Subject: [PATCH] JCLOUDS-610: Aligning overrides in ComputeServiceEventProxy with ComputeService See https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=8598ee8 --- .../jclouds/karaf/core/ComputeServiceEventProxy.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/jclouds/karaf/core/ComputeServiceEventProxy.java b/core/src/main/java/org/jclouds/karaf/core/ComputeServiceEventProxy.java index e31af7e..1330f74 100644 --- a/core/src/main/java/org/jclouds/karaf/core/ComputeServiceEventProxy.java +++ b/core/src/main/java/org/jclouds/karaf/core/ComputeServiceEventProxy.java @@ -268,13 +268,15 @@ public void resumeNode(String id) { *

* affected nodes may not resume with the same IP address(es) * + * @return list of nodes resumed + * * @throws UnsupportedOperationException if the underlying provider doesn't support suspend/resume * @throws java.util.NoSuchElementException * if no nodes matched the predicate specified */ @Override - public void resumeNodesMatching(Predicate filter) { - computeService.resumeNodesMatching(filter); + public Set resumeNodesMatching(Predicate filter) { + return computeService.resumeNodesMatching(filter); } /** @@ -300,13 +302,15 @@ public void suspendNode(String id) { *

* affected nodes may not resume with the same IP address(es) * + * @return list of nodes suspended + * * @throws UnsupportedOperationException if the underlying provider doesn't support suspend/resume * @throws java.util.NoSuchElementException * if no nodes matched the predicate specified */ @Override - public void suspendNodesMatching(Predicate filter) { - computeService.suspendNodesMatching(filter); + public Set suspendNodesMatching(Predicate filter) { + return computeService.suspendNodesMatching(filter); } /** @@ -366,12 +370,14 @@ public void rebootNode(String id) { * nodes matching the filter are treated as a logical set. Using this command, you can save time * by rebooting the nodes in parallel. * + * @return list of nodes rebooted + * * @throws java.util.NoSuchElementException * if no nodes matched the predicate specified */ @Override - public void rebootNodesMatching(Predicate filter) { - computeService.rebootNodesMatching(filter); + public Set rebootNodesMatching(Predicate filter) { + return computeService.rebootNodesMatching(filter); } /** -- 1.9.3