org.apache.directory.server.tools
Class ToolCommand

java.lang.Object
  extended by 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)
           
 
Method Summary
abstract  void execute(org.apache.commons.cli.CommandLine cmd)
           
 ServerStartupConfiguration getConfiguration()
           
 org.apache.directory.daemon.InstallationLayout getLayout()
           
 java.lang.String getName()
           
abstract  org.apache.commons.cli.Options getOptions()
           
 java.lang.String getVersion()
           
 boolean isDebugEnabled()
           
 boolean isQuietEnabled()
           
 boolean isVerboseEnabled()
           
 void setConfiguration(ServerStartupConfiguration configuration)
           
 void setDebugEnabled(boolean debugEnabled)
           
 void setLayout(java.io.File installationDirectory)
           
 void setLayout(org.apache.directory.daemon.InstallationLayout layout)
           
 void setLayout(java.lang.String installationPath)
           
 void setQuietEnabled(boolean quietEnabled)
           
 void setVerboseEnabled(boolean verboseEnabled)
           
 void setVersion(java.lang.String version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToolCommand

protected ToolCommand(java.lang.String name)
Method Detail

execute

public abstract void execute(org.apache.commons.cli.CommandLine cmd)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getOptions

public abstract org.apache.commons.cli.Options getOptions()

getName

public java.lang.String getName()

setLayout

public void setLayout(java.io.File installationDirectory)

setLayout

public void setLayout(java.lang.String installationPath)

setLayout

public void setLayout(org.apache.directory.daemon.InstallationLayout layout)

getLayout

public org.apache.directory.daemon.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()
Overrides:
toString in class java.lang.Object

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()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.