Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
The log.
|
Modifier and Type | Method and Description |
---|---|
static void |
execute(javax.servlet.jsp.PageContext context)
Method for executing a batchjob.
|
static File |
getBatchDir()
Retrieves the directory for the batchDir (defined in settings).
|
static void |
getBatchOverviewPage(javax.servlet.jsp.PageContext context)
Method for creating the batchjob overview page.
|
static File |
getJarFile(String classPath)
Method for retrieving and validating the arc-file for a given DOOM!
|
static String |
getJobName(String classPath)
Method for extracting the name of the batchjob from the batchjob path.
|
static void |
getPageForClass(javax.servlet.jsp.PageContext context)
Method for creating the page for a batchjob.
|
protected static final org.slf4j.Logger log
public static void getBatchOverviewPage(javax.servlet.jsp.PageContext context) throws ArgumentNotValid, IOException
context
- The context of the page. Contains the locale for the language package.ArgumentNotValid
- If the PageContext is null.IOException
- If it is not possible to write to the JspWriter.public static void getPageForClass(javax.servlet.jsp.PageContext context) throws UnknownID, ArgumentNotValid, IllegalState, ForwardedToErrorPage, IOFailure
- Creates a line with the name of the batchjob.
- Write the description if the batchjob has a metadata resource annotation description of the batchjob class.
- The last run information, date and size of the error and output files.
- The arguments of the batchjob, with information if they have been defined in the resource annotations of the
class.
- Radio buttons for choosing the replica.
- Input box for regular expression for filenames to match.
- Execution button.
context
- The context of the page. Must contains a class name of the batchjob.UnknownID
- If the class cannot be found.ArgumentNotValid
- If the context is null.IllegalState
- If the class is not an instance of FileBatchJob.ForwardedToErrorPage
- If the context does not contain the required information.IOFailure
- If there is problems with the JspWriter.public static void execute(javax.servlet.jsp.PageContext context)
context
- The page context containing the needed information for executing the batchjob.public static String getJobName(String classPath) throws ArgumentNotValid
classPath
- The complete path for class (retrieve by class.getName()).ArgumentNotValid
- If the classPath is either null or empty.public static File getBatchDir()
public static File getJarFile(String classPath) throws ArgumentNotValid, IOFailure
classPath
- The path to the file.ArgumentNotValid
- If the classPath argument is null or the empty string.IOFailure
- If the file does not exist, or it is not a valid file.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.