Package org.dspace.scripts.handler
Interface DSpaceRunnableHandler
-
- All Known Implementing Classes:
CommandLineDSpaceRunnableHandler
public interface DSpaceRunnableHandlerThis is an interface meant to be implemented by any DSpaceRunnableHandler to specify specific execution methods of the script depending on where it was called from
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleCompletion()This method handles the completion of the scriptvoidhandleException(Exception e)This method handles an exception thrown by the scriptvoidhandleException(String message)This method handles an exception thrown by the scriptvoidhandleException(String message, Exception e)This method handles an exception thrown by the scriptvoidlogDebug(String message)This method will perform the debug logging of the message givenvoidlogError(String message)This method will perform the error logging of the message givenvoidlogInfo(String message)This method will perform the info logging of the message givenvoidlogWarning(String message)This method will perform the warning logging of the message givenvoidprintHelp(org.apache.commons.cli.Options options, String name)This method will print the help for the options and namevoidstart()This method handles the start of the script
-
-
-
Method Detail
-
start
void start() throws SQLExceptionThis method handles the start of the script- Throws:
SQLException- If something goes wrong
-
handleCompletion
void handleCompletion() throws SQLExceptionThis method handles the completion of the script- Throws:
SQLException- If something goes wrong
-
handleException
void handleException(Exception e)
This method handles an exception thrown by the script- Parameters:
e- The exception thrown by the script
-
handleException
void handleException(String message)
This method handles an exception thrown by the script- Parameters:
message- The String message for the exception thrown by the script
-
handleException
void handleException(String message, Exception e)
This method handles an exception thrown by the script- Parameters:
message- The String message for the exception thrown by the scripte- The exception thrown by the script
-
logDebug
void logDebug(String message)
This method will perform the debug logging of the message given- Parameters:
message- The message to be logged as debug
-
logInfo
void logInfo(String message)
This method will perform the info logging of the message given- Parameters:
message- The message to be logged as info
-
logWarning
void logWarning(String message)
This method will perform the warning logging of the message given- Parameters:
message- The message to be logged as warning
-
logError
void logError(String message)
This method will perform the error logging of the message given- Parameters:
message- The message to be logged as an error
-
printHelp
void printHelp(org.apache.commons.cli.Options options, String name)This method will print the help for the options and name- Parameters:
options- The options for the scriptname- The name of the script
-
-