public class PMController extends Object
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 and Description |
---|
PMController(File[] inpPearFiles,
String outCompName,
File outPearFile)
Constructor that takes a given array of input PEAR files, a given output component name (ID)
and a given output PEAR file.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Deletes all temporary directories and files after the merging operation is completed.
|
static Logger |
getLogger()
Returns the instance of the class-specific
Logger object. |
static void |
logErrorMessage(String message)
Logs a given error message to the log file and prints it to the standard error console stream.
|
static void |
logInfoMessage(String message)
Logs a given info message to the log file and prints it to the standard output console stream.
|
static void |
logWarningMessage(String message)
Logs a given warning message to the log file and prints it to the standard error console
stream.
|
static void |
main(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.
|
public PMController(File[] inpPearFiles, String outCompName, File outPearFile) throws IOException
inpPearFiles
- The given array of input PEAR files.outCompName
- The given output component name (ID).outPearFile
- The given output PEAR file.IOException
- If any I/O exception occurred during initialization.public static void main(String[] args)
args
- pear_file_1 ... pear_file_n -n agg_name [-f agg_pear_file]public static Logger getLogger()
Logger
object.Logger
object.public static void logErrorMessage(String message)
message
- The given error message.public static void logInfoMessage(String message)
message
- The given info message.public static void logWarningMessage(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 IOException
IOException
- If an I/O exception occurred.public boolean mergePears() throws IOException
true
, if the merging operation
completed successfully, false
otherwise.true
, if the merge operation completed successfully, false
otherwise.IOException
- If an I/O exception occurred during the merging operation.Copyright © 2014. All rights reserved.