HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
dtm-daemon.py
Go to the documentation of this file.
1
#!/usr/bin/python -O
2
3
4
"""
5
HCE project, Python bindings, Distributed Tasks Manager application.
6
Event objects definitions.
7
8
@package: dtm
9
@file dtm-daemon.py
10
@author Oleksii <developers.hce@gmail.com>
11
@link: http://hierarchical-cluster-engine.com/
12
@copyright: Copyright © 2013-2014 IOIX Ukraine
13
@license: http://hierarchical-cluster-engine.com/license/
14
@since: 0.1
15
"""
16
17
import
ppath
18
from
ppath
import
sys
19
20
from
dtm.DTMD
import
DTMD
21
22
23
# That script create main daemon application to run dtm
24
25
26
# create the app
27
app =
DTMD
()
28
29
30
try
:
31
# setup the application
32
app.setup()
33
app.args.add_argument(
'-c'
,
'--config'
, action=
'store'
, metavar=
'config_file'
, help=
'config ini-file'
, required=
True
)
34
app.args.add_argument(
'-l'
,
'--log'
, action=
'store'
, metavar=
'log_file'
, help=
'log file'
)
35
app.args.add_argument(
'-n'
,
'--name'
, action=
'store'
, metavar=
'app_name'
, help=
'application name'
)
36
# run the application
37
app.run()
38
except
:
39
raise
40
finally
:
41
# close the app
42
app.close()
dtm.DTMD
Definition:
DTMD.py:1
dtm.DTMD.DTMD
Definition:
DTMD.py:49
sources
bin
dtm-daemon.py
Generated on Fri Nov 24 2017 18:53:52 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13