Package org.alfresco.tools
Class Repository
- java.lang.Object
-
- org.alfresco.tools.Tool
-
- org.alfresco.tools.Repository
-
- Direct Known Subclasses:
ContentStoreCleanerScalabilityRunner
public class Repository extends Tool
Initializes the full application context and then waits for a keypress to exit.- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisplayHelp()Display Tool Helpprotected intexecute()Perform Tool Behaviourprotected java.lang.StringgetToolName()Get the tool namestatic voidmain(java.lang.String[] args)Start the repository and wait for a keypress to stopprotected org.alfresco.tools.ToolContextprocessArgs(java.lang.String[] args)Process Tool Arguments-
Methods inherited from class org.alfresco.tools.Tool
exit, getApplicationContext, getServiceRegistry, handleError, logError, logInfo, logVerbose, start
-
-
-
-
Method Detail
-
getToolName
protected java.lang.String getToolName()
Description copied from class:ToolGet the tool name- Specified by:
getToolNamein classTool- Returns:
- the tool name
-
processArgs
protected org.alfresco.tools.ToolContext processArgs(java.lang.String[] args) throws ToolExceptionDescription copied from class:ToolProcess Tool Arguments- Overrides:
processArgsin classTool- Parameters:
args- the arguments- Returns:
- the tool context
- Throws:
ToolException
-
displayHelp
protected void displayHelp()
Description copied from class:ToolDisplay Tool Help- Overrides:
displayHelpin classTool
-
execute
protected int execute() throws ToolExceptionDescription copied from class:ToolPerform Tool Behaviour- Specified by:
executein classTool- Throws:
ToolException
-
main
public static void main(java.lang.String[] args)
Start the repository and wait for a keypress to stop- Parameters:
args- not used
-
-