trevorflanagan commented on this pull request.


> +   protected Logger logger = Logger.NULL;
+   private final ServerApi api;
+
+   public VMToolsRunningStatus(ServerApi api) {
+      this.api = api;
+   }
+
+   @Override
+   public boolean apply(String serverId) {
+      checkNotNull(serverId, "serverId");
+      logger.trace("looking for state on Server %s", serverId);
+      final Server server = api.getServer(serverId);
+      if (server == null) {
+         throw new IllegalStateException(MessageFormat.format("Server {0} is 
not found", serverId));
+      }
+      return 
server.guest().vmTools().runningStatus().equals(VmTools.RunningStatus.RUNNING);

Done

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/400#discussion_r152043309

Reply via email to