forked from legatoproject/legato-Service-DataHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataHub.adef
71 lines (62 loc) · 1.92 KB
/
dataHub.adef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//--------------------------------------------------------------------------------------------------
/**
* Application Definition for the Data Hub app.
*
* The Data Hub ("Hub" for short) is the central hub for the flow of control system data, such as
* sensor input and actuator setpoints. It is designed to enumerate available data sources
* (inputs/sensors) and sinks (actuators/outputs), provide filtering and buffering of input data,
* direct the flow of data between apps connected into the Hub, and provide administrative
* interfaces for dynamic discovery of I/O points, setting and clearing overrides, and
* configuration of the Hub itself.
*
* Copyright (C) Sierra Wireless Inc.
*/
//--------------------------------------------------------------------------------------------------
// Sadly, we have to run this app outside a sandbox for now, because it needs to access
// a part of the file system that will not get deleted by the framework when the app is updated.
sandboxed: false
executables:
{
hubd = ( components/dataHub )
#if ${DHUB_DISABLE_TOOLS} = 1
#else
dhub = ( components/adminTool )
#endif
}
processes:
{
run:
{
dataHub = ( hubd )
}
#if ${LE_CONFIG_RTOS} = y
maxStackBytes: 3072
#endif
faultAction: restart
}
extern:
{
hubd.dataHub.admin
hubd.dataHub.io
hubd.dataHub.le_appInfo
hubd.dataHub.query
hubd.dataHub.config
#if ${DHUB_DISABLE_TOOLS} = 1
#else
dhubToolAdmin = dhub.adminTool.admin
dhubToolIo = dhub.adminTool.io
dhubToolQuery = dhub.adminTool.query
#endif /* end !DHUB_DISABLE_TOOLS */
}
#if ${LE_CONFIG_LINUX} = y
bindings:
{
#if ${DHUB_DISABLE_TOOLS} = 1
#else
dhub.adminTool.admin -> hubd.dataHub.admin
dhub.adminTool.io -> hubd.dataHub.io
dhub.adminTool.query -> hubd.dataHub.query
#endif /* end !DHUB_DISABLE_TOOLS */
hubd.dataHub.le_appInfo -> <root>.le_appInfo
}
#endif /* end LE_CONFIG_LINUX */