public class CollectInfo extends AbstractShell
mCloser, mConfiguration| Constructor and Description |
|---|
CollectInfo(AlluxioConfiguration alluxioConf)
Creates a new instance of
CollectInfo. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <T> java.util.concurrent.CompletableFuture<java.util.List<T>> |
collectAllFutures(java.util.List<java.util.concurrent.CompletableFuture<T>> futures)
Waits for ALL futures to complete and returns a list of results.
|
java.util.Set<java.lang.String> |
getHosts()
Finds all hosts in the Alluxio cluster.
|
protected java.lang.String |
getShellName() |
protected java.util.Map<java.lang.String,Command> |
loadCommands() |
static void |
main(java.lang.String[] argv)
Main method, starts a new CollectInfo shell.
|
static void |
printHelp(java.lang.String message)
Prints the help message.
|
getCommands, printUsage, runpublic CollectInfo(AlluxioConfiguration alluxioConf)
CollectInfo.alluxioConf - Alluxio configurationpublic java.util.Set<java.lang.String> getHosts()
public static void printHelp(java.lang.String message)
message - message before standard usage informationpublic static void main(java.lang.String[] argv)
throws java.io.IOException
CollectInfo with --local option.
Then collect the tarballs generated on each of the hosts to the localhost.
And tarball all results into one final tarball.argv - array of arguments given by the user's input from the terminaljava.io.IOExceptionpublic static <T> java.util.concurrent.CompletableFuture<java.util.List<T>> collectAllFutures(java.util.List<java.util.concurrent.CompletableFuture<T>> futures)
T - this is the type the CompletableFuture containsfutures - a list of futures to collectCompletableFuture of all futuresprotected java.lang.String getShellName()
getShellName in class AbstractShellprotected java.util.Map<java.lang.String,Command> loadCommands()
loadCommands in class AbstractShellpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class AbstractShelljava.io.IOExceptionCopyright © 2022. All Rights Reserved.