Repository: jclouds-karaf Updated Branches: refs/heads/master 20bb5f06d -> 3f1ed2fd5
JCLOUDS-610: Aligning overrides in ComputeServiceEventProxy with ComputeService See https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=8598ee8 Project: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/commit/3f1ed2fd Tree: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/tree/3f1ed2fd Diff: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/diff/3f1ed2fd Branch: refs/heads/master Commit: 3f1ed2fd5bd6f84aff39b26456a80c5437934089 Parents: 20bb5f0 Author: Andrew Phillips <[email protected]> Authored: Wed Jun 25 23:50:20 2014 +0200 Committer: Andrew Phillips <[email protected]> Committed: Thu Jun 26 01:01:08 2014 +0200 ---------------------------------------------------------------------- .../karaf/core/ComputeServiceEventProxy.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds-karaf/blob/3f1ed2fd/core/src/main/java/org/jclouds/karaf/core/ComputeServiceEventProxy.java ---------------------------------------------------------------------- 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 class ComputeServiceEventProxy implements ComputeService { * <p/> * 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<NodeMetadata> filter) { - computeService.resumeNodesMatching(filter); + public Set<? extends NodeMetadata> resumeNodesMatching(Predicate<NodeMetadata> filter) { + return computeService.resumeNodesMatching(filter); } /** @@ -300,13 +302,15 @@ public class ComputeServiceEventProxy implements ComputeService { * <p/> * 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<NodeMetadata> filter) { - computeService.suspendNodesMatching(filter); + public Set<? extends NodeMetadata> suspendNodesMatching(Predicate<NodeMetadata> filter) { + return computeService.suspendNodesMatching(filter); } /** @@ -366,12 +370,14 @@ public class ComputeServiceEventProxy implements ComputeService { * 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<NodeMetadata> filter) { - computeService.rebootNodesMatching(filter); + public Set<? extends NodeMetadata> rebootNodesMatching(Predicate<NodeMetadata> filter) { + return computeService.rebootNodesMatching(filter); } /**
