Package org.eclipse.emf.cdo.spi.server
Class CDOCommand
java.lang.Object
org.eclipse.net4j.util.factory.Factory
org.eclipse.emf.cdo.spi.server.CDOCommand
- All Implemented Interfaces:
org.eclipse.net4j.util.factory.IFactory
,org.eclipse.net4j.util.factory.IFactoryKeyAware
- Direct Known Subclasses:
CDOCommand.WithRepository
public abstract class CDOCommand
extends org.eclipse.net4j.util.factory.Factory
- Since:
- 4.3
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static class
static class
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.factory.Factory
NO_DESCRIPTION
-
Constructor Summary
ConstructorDescriptionCDOCommand
(String name, String description) CDOCommand
(String name, String description, CDOCommand.CommandParameter... parameters) -
Method Summary
Modifier and TypeMethodDescriptionfinal CDOCommand
protected final String
duration()
final void
execute()
abstract void
final Object
executeCommand
(String cmd) final String
final CommandInterpreter
final String
getName()
final CDOCommand.CommandParameter[]
final String
static CDOCommand.CommandParameter
static CDOCommand.CommandParameter
static CDOCommand.CommandParameter
static CDOCommand.CommandParameter[]
parameters
(CDOCommand.CommandParameter parameter, CDOCommand.CommandParameter[] parameters) final void
final void
printBundleResource
(org.osgi.framework.Bundle bundle, String resource) final void
printDictionary
(Dictionary<?, ?> dic, String title) final void
println()
final void
final void
final void
setInterpreter
(CommandInterpreter interpreter) protected static String[]
trimFirstArgument
(String[] args) Methods inherited from class org.eclipse.net4j.util.factory.Factory
getDescriptionFor, getFactoryKey, getKey, getProductGroup, getType, productCreationException, productCreationException, setFactoryKey, toString
-
Field Details
-
PRODUCT_GROUP
- See Also:
-
INDENT
- See Also:
-
-
Constructor Details
-
CDOCommand
-
CDOCommand
-
-
Method Details
-
create
public final CDOCommand create(String description) throws org.eclipse.net4j.util.factory.ProductCreationException - Throws:
org.eclipse.net4j.util.factory.ProductCreationException
-
getInterpreter
-
setInterpreter
-
getName
-
getDescription
-
getParameters
-
getSyntax
-
executeCommand
-
print
-
println
public final void println() -
println
-
printStackTrace
-
printDictionary
-
printBundleResource
-
execute
- Throws:
Exception
-
duration
- Since:
- 4.8
-
execute
- Throws:
Exception
-
parameters
public static CDOCommand.CommandParameter[] parameters(CDOCommand.CommandParameter parameter, CDOCommand.CommandParameter[] parameters) -
parameter
-
parameter
-
optional
-
trimFirstArgument
-