org.apache.directory.server.tools
Class ToolCommand
java.lang.Object
org.apache.directory.server.tools.ToolCommand
- Direct Known Subclasses:
- CapacityTestCommand, DiagnosticCommand, DisconnectNotificationCommand, DumpCommand, GracefulShutdownCommand, ImportCommand, IndexCommand
- public abstract class ToolCommand
- extends java.lang.Object
Simple base class for tool commands.
- Version:
- $Rev: 434420 $
- Author:
- Apache Directory Project
Constructor Summary |
protected |
ToolCommand(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ToolCommand
protected ToolCommand(java.lang.String name)
execute
public abstract void execute(CommandLine cmd)
throws java.lang.Exception
- Throws:
java.lang.Exception
getOptions
public abstract Options getOptions()
getName
public java.lang.String getName()
setLayout
public void setLayout(java.io.File installationDirectory)
setLayout
public void setLayout(java.lang.String installationPath)
getLayout
public InstallationLayout getLayout()
setConfiguration
public void setConfiguration(ServerStartupConfiguration configuration)
getConfiguration
public ServerStartupConfiguration getConfiguration()
setVersion
public void setVersion(java.lang.String version)
getVersion
public java.lang.String getVersion()
toString
public java.lang.String toString()
setDebugEnabled
public void setDebugEnabled(boolean debugEnabled)
isDebugEnabled
public boolean isDebugEnabled()
setVerboseEnabled
public void setVerboseEnabled(boolean verboseEnabled)
isVerboseEnabled
public boolean isVerboseEnabled()
setQuietEnabled
public void setQuietEnabled(boolean quietEnabled)
isQuietEnabled
public boolean isQuietEnabled()