Blue Mind
Release 1.0

net.bluemind.core.node
Class NCUtils

java.lang.Object
  extended by net.bluemind.core.node.NCUtils

public final class NCUtils
extends java.lang.Object

Helper methods for monitoring tasks running a remote node using INodeClient


Constructor Summary
NCUtils()
           
 
Method Summary
static void exec(INodeClient nc, java.lang.String cmd)
          Waits for a tasks to complete, ignoring its output.
static java.util.List<java.lang.String> waitFor(INodeClient nc, TaskRef ref)
          Waits for a tasks to complete and returns its output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCUtils

public NCUtils()
Method Detail

exec

public static void exec(INodeClient nc,
                        java.lang.String cmd)
                 throws ServerFault
Waits for a tasks to complete, ignoring its output.

Parameters:
nc -
cmd -
Throws:
ServerFault

waitFor

public static java.util.List<java.lang.String> waitFor(INodeClient nc,
                                                       TaskRef ref)
                                                throws ServerFault
Waits for a tasks to complete and returns its output

Parameters:
nc -
ref -
Returns:
Throws:
ServerFault

Blue Mind
Release 1.0