This is the main EDNA application class. This class can be sub-classed
for any specific application need. An EDNA application is able to launch
an entry point plugin. It accepts the following parameter: --execute :
name of the plugin to be executed --inputFile : related plugin data (xml
input data file name) --outputFile : related plugin result (xml output
data file name) --conf : configuration file name --basedir :
where the application working directory should go --DEBUG or --debug :
turns on debugging -v or --version : Displays the application name and
version --verbose : Turns on verbose mode --no-log : Turns off
logging -h or --help : Prints out an usage message
|
__init__(self,
_strName=' EDApplication ' ,
_strVersion=' 1.0.1 ' ,
_strPluginName=None,
_strConfigurationFileName=None,
_strDataInputFilePath=None,
_edLogFile=None,
_strBaseDir=None,
_strWorkingDir=None,
_strDataOutputFilePath=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
execute(self)
This is the main execute method which executes preProcess, process
and postProcess. |
source code
|
|
|
preProcess(self)
Creates the application working directory (log dir) Initializes the
configuration retrieves the plugin xml data to be passed to the
plugin |
source code
|
|
|
process(self)
Calls the Plugin to be executed |
source code
|
|
|
processCommandline(self)
This method is intended to be overridden by applications who would
like to implement their own command line handling. |
source code
|
|
|
processCommandLineDebugVerboseLogFile(self) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string
|
|
|
createApplicationWorkingDirectory(self)
Created the working directory of the application
(<date>-<application name>) First tries to retrieve the
base dir from --basedir option or related parameter from constructor
Otherwise tries to retrieve it from EDNA_BASE_DIRECTORY environment
variable Otherwise put the base dir as the current directory |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string @return working dir
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
CONFIGURATION_PARAM_LABEL = ' --conf '
|
|
PLUGIN_PARAM_LABEL = ' --execute '
|
|
DATASET_PARAM_LABEL = ' --inputFile '
|
|
OUTPUT_PARAM_LABEL = ' --outputFile '
|
|
DATASET_BASE_DIRECTORY = ' --basedir '
|
|
DEBUG_PARAM_LABEL_1 = ' --DEBUG '
|
|
DEBUG_PARAM_LABEL_2 = ' --debug '
|
|
VERSION_PARAM_LABEL_1 = ' -v '
|
|
VERSION_PARAM_LABEL_2 = ' --version '
|
|
VERBOSE_MODE_LABEL = ' --verbose '
|
|
NO_LOG_LABEL = ' --no-log '
|
|
HELP_LABEL_1 = ' -h '
|
|
HELP_LABEL_2 = ' --help '
|
|
__edConfiguration = None
hash(x)
|
|
__edFactoryPlugin = None
hash(x)
|
|
__semaphore = Semaphore()
|