public class CollectMetricsCommand extends AbstractCollectInfoCommand
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMAND_NAME |
static org.apache.commons.cli.Options |
OPTIONS |
mFsContext, mWorkingDirPath| Constructor and Description |
|---|
CollectMetricsCommand(FileSystemContext fsContext)
Creates a new instance of
CollectMetricsCommand. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommandName() |
java.lang.String |
getDescription() |
java.lang.String |
getMetricsJson(java.lang.String url)
Probes Alluxio metrics json sink.
|
java.lang.String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl) |
generateOutputFile, getWorkingDirectory, validateArgsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgspublic static final java.lang.String COMMAND_NAME
public static final org.apache.commons.cli.Options OPTIONS
public CollectMetricsCommand(FileSystemContext fsContext)
CollectMetricsCommand.fsContext - the FileSystemContext to execute inpublic java.lang.String getCommandName()
public int run(org.apache.commons.cli.CommandLine cl)
throws AlluxioException,
java.io.IOException
AlluxioExceptionjava.io.IOExceptionpublic java.lang.String getUsage()
public java.lang.String getDescription()
public java.lang.String getMetricsJson(java.lang.String url)
throws java.io.IOException
url - URL that serves Alluxio metricsjava.io.IOExceptionCopyright © 2022. All Rights Reserved.