|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.tools.pear.merger.PMController
public class PMController
The PMController
class allows to merge several input PEAR files in one PEAR file
and generate an aggregate analysis engine from the components encapsulated in the input PEARs.
PMControllerHelper
,
PMUimaAgent
Constructor Summary | |
---|---|
PMController(java.io.File[] inpPearFiles,
java.lang.String outCompName,
java.io.File outPearFile)
Constructor that takes a given array of input PEAR files, a given output component name (ID) and a given output PEAR file. |
Method Summary | |
---|---|
void |
cleanUp()
Deletes all temporary directories and files after the merging operation is completed. |
static java.util.logging.Logger |
getLogger()
Returns the instance of the class-specific Logger object. |
static void |
logErrorMessage(java.lang.String message)
Logs a given error message to the log file and prints it to the standard error console stream. |
static void |
logInfoMessage(java.lang.String message)
Logs a given info message to the log file and prints it to the standard output console stream. |
static void |
logWarningMessage(java.lang.String message)
Logs a given warning message to the log file and prints it to the standard error console stream. |
static void |
main(java.lang.String[] args)
The command line application entry point. |
boolean |
mergePears()
Merges specified input PEARs into one PEAR, which encapsulates aggregate AE that refers to input components, as delegates. |
static void |
setLogFileEnabled(boolean enable)
Enables/disables PM log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PMController(java.io.File[] inpPearFiles, java.lang.String outCompName, java.io.File outPearFile) throws java.io.IOException
inpPearFiles
- The given array of input PEAR files.outCompName
- The given output component name (ID).outPearFile
- The given output PEAR file.
java.io.IOException
- If any I/O exception occurred during initialization.Method Detail |
---|
public static void main(java.lang.String[] args)
args
- pear_file_1 ... pear_file_n -n agg_name [-f agg_pear_file]public static java.util.logging.Logger getLogger()
Logger
object.
Logger
object.public static void logErrorMessage(java.lang.String message)
message
- The given error message.public static void logInfoMessage(java.lang.String message)
message
- The given info message.public static void logWarningMessage(java.lang.String message)
message
- The given warning message.public static void setLogFileEnabled(boolean enable)
enable
- if true
, the log file is enabled, otherwise it is disabled.public void cleanUp() throws java.io.IOException
java.io.IOException
- If an I/O exception occurred.public boolean mergePears() throws java.io.IOException
true
, if the merging operation
completed successfully, false
otherwise.
true
, if the merge operation completed successfully, false
otherwise.
java.io.IOException
- If an I/O exception occurred during the merging operation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |