public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
allAsMap(Map<K,com.google.common.util.concurrent.ListenableFuture<V>> map) |
static Map<String,String> |
argToStringMap(net.sourceforge.argparse4j.inf.Namespace namespace,
net.sourceforge.argparse4j.inf.Argument arg) |
static HeliosClient |
getClient(Target target,
PrintStream err,
String username,
net.sourceforge.argparse4j.inf.Namespace options) |
static List<HostSelector> |
parseHostSelectors(net.sourceforge.argparse4j.inf.Namespace namespace,
net.sourceforge.argparse4j.inf.Argument arg) |
static <K extends Comparable<K>,V> |
printMap(PrintStream out,
String name,
com.google.common.base.Function<V,String> transform,
Map<K,V> values) |
static int |
setGoalOnHosts(HeliosClient client,
PrintStream out,
boolean json,
List<String> hosts,
Deployment deployment,
String token) |
static boolean |
userConfirmed(PrintStream out,
BufferedReader stdin) |
public static <K,V> Map<K,V> allAsMap(Map<K,com.google.common.util.concurrent.ListenableFuture<V>> map) throws ExecutionException, InterruptedException
public static HeliosClient getClient(Target target, PrintStream err, String username, net.sourceforge.argparse4j.inf.Namespace options)
public static boolean userConfirmed(PrintStream out, BufferedReader stdin) throws IOException
IOExceptionpublic static Map<String,String> argToStringMap(net.sourceforge.argparse4j.inf.Namespace namespace, net.sourceforge.argparse4j.inf.Argument arg)
public static <K extends Comparable<K>,V> void printMap(PrintStream out, String name, com.google.common.base.Function<V,String> transform, Map<K,V> values)
public static List<HostSelector> parseHostSelectors(net.sourceforge.argparse4j.inf.Namespace namespace, net.sourceforge.argparse4j.inf.Argument arg)
public static int setGoalOnHosts(HeliosClient client, PrintStream out, boolean json, List<String> hosts, Deployment deployment, String token) throws InterruptedException, ExecutionException
Copyright © 2016. All rights reserved.