Validate.notNull(capacity, "Must specify capacity");
getClient().addNode(new ResourceNode(nodeId, nodeUrl, capacity));
printer.println("Successfully added node!");
} catch (Exception e) {
throw new CmdLineActionException("Failed to add node with nodeId '"
+ nodeId + "', nodeUrl '" + nodeUrl + "', and capacity '"
+ capacity + "' : " + e.getMessage(), e);
}
}