@ti-engine/core 1.6.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +383 -364
- package/LICENSE.md +321 -321
- package/README.md +597 -548
- package/bin/localization/labels.json +122 -122
- package/bin/settings.json +41 -41
- package/bin/start-instance.js +164 -156
- package/components/auditing.js +191 -191
- package/components/connection-observer.js +72 -72
- package/components/definitions.types.js +248 -248
- package/components/exchange/default/default-message-exchange.js +136 -136
- package/components/exchange/default/default-message-receiver.js +101 -101
- package/components/exchange/default/default-message-sender.js +100 -100
- package/components/exchange/message-dispatcher.js +168 -168
- package/components/exchange/message-exchange.js +449 -449
- package/components/exchange/message-handler.js +235 -234
- package/components/exchange/message-memory-cache.js +190 -190
- package/components/exchange/message-observer.js +126 -126
- package/components/exchange/message-receiver.js +181 -181
- package/components/exchange/message-sender.js +143 -143
- package/components/exchange/message-tracer.js +212 -212
- package/components/service-caller.js +370 -370
- package/components/service-consumer.js +131 -131
- package/components/service-executor.js +278 -278
- package/components/service-instance.js +316 -316
- package/components/service-provider.js +251 -251
- package/integrations/redis-integration.js +591 -591
- package/package.json +89 -90
- package/utils/cache.js +772 -772
- package/utils/config.js +103 -103
- package/utils/exceptions.js +368 -368
- package/utils/localization.js +298 -298
- package/utils/logger.js +82 -82
- package/utils/tools.js +632 -632
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
{
|
|
2
|
-
"system": {
|
|
3
|
-
"exceptions": {
|
|
4
|
-
"0": {
|
|
5
|
-
"en": "Unidentified error encountered or unrecognized exception code provided."
|
|
6
|
-
},
|
|
7
|
-
"1000": {
|
|
8
|
-
"en": "Error thrown by internal JS source."
|
|
9
|
-
},
|
|
10
|
-
"1001": {
|
|
11
|
-
"en": "Attempt to construct an abstract class detected."
|
|
12
|
-
},
|
|
13
|
-
"1002": {
|
|
14
|
-
"en": "Attempt to call an abstract method detected."
|
|
15
|
-
},
|
|
16
|
-
"1003": {
|
|
17
|
-
"en": "Invalid or no service domain name provided at microservice startup."
|
|
18
|
-
},
|
|
19
|
-
"1004": {
|
|
20
|
-
"en": "The system cache required for proper engine operation is unavailable."
|
|
21
|
-
},
|
|
22
|
-
"1005": {
|
|
23
|
-
"en": "The provided service handler is not a proper function."
|
|
24
|
-
},
|
|
25
|
-
"1006": {
|
|
26
|
-
"en": "The requested feature is not supported by current configuration or version."
|
|
27
|
-
},
|
|
28
|
-
"1007": {
|
|
29
|
-
"en": "The provided argument is not of the expected type."
|
|
30
|
-
},
|
|
31
|
-
"1008": {
|
|
32
|
-
"en": "The invoked framework component is not initialized."
|
|
33
|
-
},
|
|
34
|
-
"1009": {
|
|
35
|
-
"en": "Attempt to override a protected or private method or property detected."
|
|
36
|
-
},
|
|
37
|
-
"1010": {
|
|
38
|
-
"en": "The requested functionality is not yet implemented."
|
|
39
|
-
},
|
|
40
|
-
"2000": {
|
|
41
|
-
"en": "Invalid authorization token provided."
|
|
42
|
-
},
|
|
43
|
-
"2001": {
|
|
44
|
-
"en": "Invalid or expired session encountered."
|
|
45
|
-
},
|
|
46
|
-
"2002": {
|
|
47
|
-
"en": "Attempt for unauthorized access detected."
|
|
48
|
-
},
|
|
49
|
-
"2003": {
|
|
50
|
-
"en": "The system detected tampering with the message received via message exchange."
|
|
51
|
-
},
|
|
52
|
-
"2004": {
|
|
53
|
-
"en": "The requested authentication method is not recognized or supported."
|
|
54
|
-
},
|
|
55
|
-
"3000": {
|
|
56
|
-
"en": "General error during cross-application communication."
|
|
57
|
-
},
|
|
58
|
-
"3001": {
|
|
59
|
-
"en": "The message sender instance is currently unavailable."
|
|
60
|
-
},
|
|
61
|
-
"3002": {
|
|
62
|
-
"en": "The execution of a service could not complete within the allowed timeout."
|
|
63
|
-
},
|
|
64
|
-
"3003": {
|
|
65
|
-
"en": "The specified service is not found in the service registry."
|
|
66
|
-
},
|
|
67
|
-
"3004": {
|
|
68
|
-
"en": "The specified service is not found in the service definition interface."
|
|
69
|
-
},
|
|
70
|
-
"3005": {
|
|
71
|
-
"en": "No handler found in the interface for the specified service or service version."
|
|
72
|
-
},
|
|
73
|
-
"3006": {
|
|
74
|
-
"en": "The message receiver instance is currently unavailable."
|
|
75
|
-
},
|
|
76
|
-
"3007": {
|
|
77
|
-
"en": "The message exchange is irrevocably broken and cannot be used any longer."
|
|
78
|
-
},
|
|
79
|
-
"3008": {
|
|
80
|
-
"en": "The execution of a service reported a failure. This might be a business logic error or a system error."
|
|
81
|
-
},
|
|
82
|
-
"3010": {
|
|
83
|
-
"en": "Connection retry attempts exceeded the configured limit."
|
|
84
|
-
},
|
|
85
|
-
"4000": {
|
|
86
|
-
"en": "The request method is not recognized or not supported."
|
|
87
|
-
},
|
|
88
|
-
"4001": {
|
|
89
|
-
"en": "The request URI is not recognized or not supported."
|
|
90
|
-
},
|
|
91
|
-
"4002": {
|
|
92
|
-
"en": "The request body is not recognized or not supported."
|
|
93
|
-
},
|
|
94
|
-
"4003": {
|
|
95
|
-
"en": "The request query is not recognized or not supported."
|
|
96
|
-
},
|
|
97
|
-
"4004": {
|
|
98
|
-
"en": "The request headers are not recognized or not supported."
|
|
99
|
-
},
|
|
100
|
-
"4005": {
|
|
101
|
-
"en": "The request parameters are not recognized or not supported."
|
|
102
|
-
},
|
|
103
|
-
"4006": {
|
|
104
|
-
"en": "The request format is not recognized or not supported."
|
|
105
|
-
},
|
|
106
|
-
"4007": {
|
|
107
|
-
"en": "The request content type is not recognized or not supported."
|
|
108
|
-
},
|
|
109
|
-
"4008": {
|
|
110
|
-
"en": "The request content length is not recognized or not supported."
|
|
111
|
-
},
|
|
112
|
-
"4009": {
|
|
113
|
-
"en": "The request content encoding is not recognized or not supported."
|
|
114
|
-
},
|
|
115
|
-
"5004": {
|
|
116
|
-
"en": "The requested resource cannot be found. See details for more information."
|
|
117
|
-
},
|
|
118
|
-
"5005": {
|
|
119
|
-
"en": "The application service encountered an error. See details for more information."
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"system": {
|
|
3
|
+
"exceptions": {
|
|
4
|
+
"0": {
|
|
5
|
+
"en": "Unidentified error encountered or unrecognized exception code provided."
|
|
6
|
+
},
|
|
7
|
+
"1000": {
|
|
8
|
+
"en": "Error thrown by internal JS source."
|
|
9
|
+
},
|
|
10
|
+
"1001": {
|
|
11
|
+
"en": "Attempt to construct an abstract class detected."
|
|
12
|
+
},
|
|
13
|
+
"1002": {
|
|
14
|
+
"en": "Attempt to call an abstract method detected."
|
|
15
|
+
},
|
|
16
|
+
"1003": {
|
|
17
|
+
"en": "Invalid or no service domain name provided at microservice startup."
|
|
18
|
+
},
|
|
19
|
+
"1004": {
|
|
20
|
+
"en": "The system cache required for proper engine operation is unavailable."
|
|
21
|
+
},
|
|
22
|
+
"1005": {
|
|
23
|
+
"en": "The provided service handler is not a proper function."
|
|
24
|
+
},
|
|
25
|
+
"1006": {
|
|
26
|
+
"en": "The requested feature is not supported by current configuration or version."
|
|
27
|
+
},
|
|
28
|
+
"1007": {
|
|
29
|
+
"en": "The provided argument is not of the expected type."
|
|
30
|
+
},
|
|
31
|
+
"1008": {
|
|
32
|
+
"en": "The invoked framework component is not initialized."
|
|
33
|
+
},
|
|
34
|
+
"1009": {
|
|
35
|
+
"en": "Attempt to override a protected or private method or property detected."
|
|
36
|
+
},
|
|
37
|
+
"1010": {
|
|
38
|
+
"en": "The requested functionality is not yet implemented."
|
|
39
|
+
},
|
|
40
|
+
"2000": {
|
|
41
|
+
"en": "Invalid authorization token provided."
|
|
42
|
+
},
|
|
43
|
+
"2001": {
|
|
44
|
+
"en": "Invalid or expired session encountered."
|
|
45
|
+
},
|
|
46
|
+
"2002": {
|
|
47
|
+
"en": "Attempt for unauthorized access detected."
|
|
48
|
+
},
|
|
49
|
+
"2003": {
|
|
50
|
+
"en": "The system detected tampering with the message received via message exchange."
|
|
51
|
+
},
|
|
52
|
+
"2004": {
|
|
53
|
+
"en": "The requested authentication method is not recognized or supported."
|
|
54
|
+
},
|
|
55
|
+
"3000": {
|
|
56
|
+
"en": "General error during cross-application communication."
|
|
57
|
+
},
|
|
58
|
+
"3001": {
|
|
59
|
+
"en": "The message sender instance is currently unavailable."
|
|
60
|
+
},
|
|
61
|
+
"3002": {
|
|
62
|
+
"en": "The execution of a service could not complete within the allowed timeout."
|
|
63
|
+
},
|
|
64
|
+
"3003": {
|
|
65
|
+
"en": "The specified service is not found in the service registry."
|
|
66
|
+
},
|
|
67
|
+
"3004": {
|
|
68
|
+
"en": "The specified service is not found in the service definition interface."
|
|
69
|
+
},
|
|
70
|
+
"3005": {
|
|
71
|
+
"en": "No handler found in the interface for the specified service or service version."
|
|
72
|
+
},
|
|
73
|
+
"3006": {
|
|
74
|
+
"en": "The message receiver instance is currently unavailable."
|
|
75
|
+
},
|
|
76
|
+
"3007": {
|
|
77
|
+
"en": "The message exchange is irrevocably broken and cannot be used any longer."
|
|
78
|
+
},
|
|
79
|
+
"3008": {
|
|
80
|
+
"en": "The execution of a service reported a failure. This might be a business logic error or a system error."
|
|
81
|
+
},
|
|
82
|
+
"3010": {
|
|
83
|
+
"en": "Connection retry attempts exceeded the configured limit."
|
|
84
|
+
},
|
|
85
|
+
"4000": {
|
|
86
|
+
"en": "The request method is not recognized or not supported."
|
|
87
|
+
},
|
|
88
|
+
"4001": {
|
|
89
|
+
"en": "The request URI is not recognized or not supported."
|
|
90
|
+
},
|
|
91
|
+
"4002": {
|
|
92
|
+
"en": "The request body is not recognized or not supported."
|
|
93
|
+
},
|
|
94
|
+
"4003": {
|
|
95
|
+
"en": "The request query is not recognized or not supported."
|
|
96
|
+
},
|
|
97
|
+
"4004": {
|
|
98
|
+
"en": "The request headers are not recognized or not supported."
|
|
99
|
+
},
|
|
100
|
+
"4005": {
|
|
101
|
+
"en": "The request parameters are not recognized or not supported."
|
|
102
|
+
},
|
|
103
|
+
"4006": {
|
|
104
|
+
"en": "The request format is not recognized or not supported."
|
|
105
|
+
},
|
|
106
|
+
"4007": {
|
|
107
|
+
"en": "The request content type is not recognized or not supported."
|
|
108
|
+
},
|
|
109
|
+
"4008": {
|
|
110
|
+
"en": "The request content length is not recognized or not supported."
|
|
111
|
+
},
|
|
112
|
+
"4009": {
|
|
113
|
+
"en": "The request content encoding is not recognized or not supported."
|
|
114
|
+
},
|
|
115
|
+
"5004": {
|
|
116
|
+
"en": "The requested resource cannot be found. See details for more information."
|
|
117
|
+
},
|
|
118
|
+
"5005": {
|
|
119
|
+
"en": "The application service encountered an error. See details for more information."
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
123
|
}
|
package/bin/settings.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"auditing": {
|
|
3
|
-
"logConsoleEnabled": true,
|
|
4
|
-
"logDetails": true,
|
|
5
|
-
"logMinLevel": 0,
|
|
6
|
-
"logUsesJSON": false
|
|
7
|
-
},
|
|
8
|
-
"gcloudIntegration": {
|
|
9
|
-
"apiKey": "",
|
|
10
|
-
"loggingEnabled": false,
|
|
11
|
-
"logName": "ti-engine",
|
|
12
|
-
"projectID": ""
|
|
13
|
-
},
|
|
14
|
-
"localization": {
|
|
15
|
-
"labelsPath": [],
|
|
16
|
-
"language": "en"
|
|
17
|
-
},
|
|
18
|
-
"memoryCache": {
|
|
19
|
-
"authKey": null,
|
|
20
|
-
"redisDB": 0,
|
|
21
|
-
"redisHost": "127.0.0.1",
|
|
22
|
-
"redisPort": 6379,
|
|
23
|
-
"user": "default"
|
|
24
|
-
},
|
|
25
|
-
"messageExchange": {
|
|
26
|
-
"messageQueuePrefix": "ti:messages:",
|
|
27
|
-
"messageStore": "ti:messages:store",
|
|
28
|
-
"securityHashEnabled": true,
|
|
29
|
-
"securityHashKey": "",
|
|
30
|
-
"traceExpirationTime": 3600,
|
|
31
|
-
"traceLogEnabled": false,
|
|
32
|
-
"traceRepository": "ti:messages:trace"
|
|
33
|
-
},
|
|
34
|
-
"serviceConfig": {
|
|
35
|
-
"executionTimeout": 180000,
|
|
36
|
-
"healthCheckAddress": "ti:services:registry:health:",
|
|
37
|
-
"healthCheckInterval": "*/1 * * * * *",
|
|
38
|
-
"healthCheckTimeout": 3,
|
|
39
|
-
"serviceRegistryAddress": "ti:services:registry:catalog:"
|
|
40
|
-
},
|
|
41
|
-
"operationMode": "production"
|
|
1
|
+
{
|
|
2
|
+
"auditing": {
|
|
3
|
+
"logConsoleEnabled": true,
|
|
4
|
+
"logDetails": true,
|
|
5
|
+
"logMinLevel": 0,
|
|
6
|
+
"logUsesJSON": false
|
|
7
|
+
},
|
|
8
|
+
"gcloudIntegration": {
|
|
9
|
+
"apiKey": "",
|
|
10
|
+
"loggingEnabled": false,
|
|
11
|
+
"logName": "ti-engine",
|
|
12
|
+
"projectID": ""
|
|
13
|
+
},
|
|
14
|
+
"localization": {
|
|
15
|
+
"labelsPath": [],
|
|
16
|
+
"language": "en"
|
|
17
|
+
},
|
|
18
|
+
"memoryCache": {
|
|
19
|
+
"authKey": null,
|
|
20
|
+
"redisDB": 0,
|
|
21
|
+
"redisHost": "127.0.0.1",
|
|
22
|
+
"redisPort": 6379,
|
|
23
|
+
"user": "default"
|
|
24
|
+
},
|
|
25
|
+
"messageExchange": {
|
|
26
|
+
"messageQueuePrefix": "ti:messages:",
|
|
27
|
+
"messageStore": "ti:messages:store",
|
|
28
|
+
"securityHashEnabled": true,
|
|
29
|
+
"securityHashKey": "",
|
|
30
|
+
"traceExpirationTime": 3600,
|
|
31
|
+
"traceLogEnabled": false,
|
|
32
|
+
"traceRepository": "ti:messages:trace"
|
|
33
|
+
},
|
|
34
|
+
"serviceConfig": {
|
|
35
|
+
"executionTimeout": 180000,
|
|
36
|
+
"healthCheckAddress": "ti:services:registry:health:",
|
|
37
|
+
"healthCheckInterval": "*/1 * * * * *",
|
|
38
|
+
"healthCheckTimeout": 3,
|
|
39
|
+
"serviceRegistryAddress": "ti:services:registry:catalog:"
|
|
40
|
+
},
|
|
41
|
+
"operationMode": "production"
|
|
42
42
|
}
|