public abstract class CmdLineTool extends Object implements CliCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
commandName |
protected BaseConfiguration |
configuration |
protected boolean |
dumpConfig |
protected boolean |
dumpDefaultConfig |
protected static String |
ENVIRONMENT_PREFIX |
protected static String |
FILE_SEPARATOR |
protected com.google.inject.Injector |
injector |
protected com.github.joschi.jadconfig.JadConfig |
jadConfig |
protected static String |
PROPERTIES_PREFIX |
protected static String |
TMPDIR |
protected static Version |
version |
| Modifier | Constructor and Description |
|---|---|
protected |
CmdLineTool(BaseConfiguration configuration) |
protected |
CmdLineTool(String commandName,
BaseConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
annotateInjectorCreationException(com.google.inject.CreationException e) |
protected void |
annotateInjectorExceptions(Collection<com.google.inject.spi.Message> messages) |
protected Set<ServerStatus.Capability> |
capabilities() |
protected abstract List<com.google.inject.Module> |
getCommandBindings() |
protected abstract List<Object> |
getCommandConfigurationBeans() |
protected Collection<com.github.joschi.jadconfig.Repository> |
getConfigRepositories(String configFile) |
protected List<com.google.inject.Module> |
getSharedBindingsModules() |
boolean |
isDebug() |
boolean |
isDumpConfig() |
boolean |
isDumpDefaultConfig() |
protected Set<Plugin> |
loadPlugins(String pluginPath) |
protected boolean |
onlyLogErrors() |
protected com.github.joschi.jadconfig.guice.NamedConfigParametersModule |
readConfiguration(String configFile) |
void |
run() |
protected com.google.inject.Injector |
setupInjector(com.github.joschi.jadconfig.guice.NamedConfigParametersModule configModule,
com.google.inject.Module... otherModules) |
protected void |
setupLogger() |
protected abstract void |
startCommand() |
protected abstract boolean |
validateConfiguration() |
protected static final String ENVIRONMENT_PREFIX
protected static final String PROPERTIES_PREFIX
protected static final Version version
protected static final String FILE_SEPARATOR
protected static final String TMPDIR
protected final com.github.joschi.jadconfig.JadConfig jadConfig
protected final BaseConfiguration configuration
protected boolean dumpConfig
protected boolean dumpDefaultConfig
protected String commandName
protected com.google.inject.Injector injector
protected CmdLineTool(BaseConfiguration configuration)
protected CmdLineTool(String commandName, BaseConfiguration configuration)
protected abstract boolean validateConfiguration()
public boolean isDumpConfig()
public boolean isDumpDefaultConfig()
public boolean isDebug()
protected abstract List<com.google.inject.Module> getCommandBindings()
protected abstract void startCommand()
protected void setupLogger()
protected boolean onlyLogErrors()
protected Collection<com.github.joschi.jadconfig.Repository> getConfigRepositories(String configFile)
protected com.github.joschi.jadconfig.guice.NamedConfigParametersModule readConfiguration(String configFile)
protected List<com.google.inject.Module> getSharedBindingsModules()
protected com.google.inject.Injector setupInjector(com.github.joschi.jadconfig.guice.NamedConfigParametersModule configModule,
com.google.inject.Module... otherModules)
protected void annotateInjectorCreationException(com.google.inject.CreationException e)
protected void annotateInjectorExceptions(Collection<com.google.inject.spi.Message> messages)
protected Set<ServerStatus.Capability> capabilities()
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.