ionutboangiu
e05be683ae
change license from GPLv3 to AGPLv3
2025-10-13 09:57:41 +02:00
ionutboangiu
9812e6f605
return if Service Start/Shutdown errors
...
Previously, a couple cases could just close the shutdown channel but
in logs it would appear as if they have been started.
2025-05-30 14:54:09 +02:00
ionutboangiu
eed6b8a51a
add implementation for new ips module
2025-05-29 15:46:42 +02:00
ionutboangiu
1d536c6390
Revise ServiceManagerV1.Status API
...
Allows querying for the status of all/multiple services at once.
Reply becomes a map[string]string, where the key is the service name
and the value represents the name of the state the service is in
(instead of returning just RUNNING/STOPPED).
2025-02-07 13:23:59 +01:00
ionutboangiu
712aeb0d4a
Revise StateDeps implementation
...
Now tracks states by passing around an empty struct as a signal to
states defined on the service, as opposed to signal state changes by
closing the channel. This makes sure services can only be in one
state at once and allows for multiple state changes which were not
possible before.
2025-02-07 13:23:59 +01:00
armirveliaj
7db65ca62c
Clean up DispatcherS
2025-01-17 17:29:46 +01:00
ionutboangiu
e7152dacf8
Implement ConnManager service
...
Use it to register internal rpc conns instead of ServManager
DispatcherS now waits for AttributeS to start (only when enabled)
2025-01-14 19:00:37 +01:00
ionutboangiu
089dfc00ae
Use SyncedChan to handle shutdown
2025-01-14 19:00:37 +01:00
ionutboangiu
c49e67b2ed
Handle SERVICE_UP/DOWN states on ServManager layer
2025-01-14 19:00:37 +01:00
ionutboangiu
dab152f976
Integrate StateServiceDOWN + registry related refactor
...
Removed redundant IsRunning service method
Removed registry from constructors
Pass registry to Start/Reload/Shutdown service methods
2025-01-14 19:00:37 +01:00
ionutboangiu
396227d639
Refactor ServiceIndexer implementation
...
Renamed to ServiceRegistry
Improved comments
2025-01-10 20:18:08 +01:00
ionutboangiu
17405af987
Revise service manager logs
...
Logging is now done as ServiceManager level. Removed any other logs.
2025-01-10 20:18:08 +01:00
ionutboangiu
c8a3ebe5e8
Use channel instead of context to handle shutdown
2025-01-10 20:18:08 +01:00
ionutboangiu
fbc9afc784
Simplify indexer.AddService implementation
2024-12-04 19:28:50 +01:00
ionutboangiu
82c985cdbe
servmanager: remove redundant subsystems map
...
ServiceIndexer can handle its usecases instead
2024-12-04 19:28:50 +01:00
ionutboangiu
c29f1fdd35
Remove services/cgr-engine.go
...
Trying to move services init before CGREngine constructor makes it pointless,
as it's only used as a dependency storage for services init.
2024-12-04 09:06:59 +01:00
DanB
476f5ba877
Services with IntRPCConn method
2024-11-30 19:13:19 +01:00
DanB
6b241ee35b
Adding serviceIndexer and StateDependencies
2024-11-28 14:56:03 +01:00
DanB
23e5f0e387
Add generic way to insert services inside services/CGREngine
2024-11-26 14:03:57 +01:00
gezimblliku
73a7590f1c
added profiles,configs and services for trend && ranking
2024-08-02 09:37:52 +02:00
ionutboangiu
113e2a2bdf
Replace interface{} with any
2023-05-31 10:22:28 +02:00
ionutboangiu
2abfd046f0
Use existing error variable instead of creating a initializing a new one
2022-10-21 10:16:23 +02:00
ionutboangiu
60a4da69e0
Implement start/stop/status methods for servmanager + tests
2022-10-21 10:16:23 +02:00
DanB
8d37467b63
Reorganising dispatcherS routeID functionality to avoid extra processing of event
2022-08-27 15:53:48 +02:00
andronache98
ecdf5e54ea
Changed headers
2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155
Changed headers
2022-03-09 14:14:30 +01:00
Trial97
6a3f8ddc57
Updated config
2021-09-20 10:45:14 +02:00
Trial97
87ce843810
Updated services
2021-09-13 16:08:39 +02:00
Trial97
766f5e303a
Updated cgr-engine service
2021-09-13 16:08:39 +02:00
Trial97
cea082eb7f
Updated CGREngine structure
2021-09-13 16:08:39 +02:00
Trial97
9aa153c0b0
Finished implementing all the exporters
2021-08-18 16:34:44 +02:00
Trial97
c04c0a5adb
Added ConfigDB and option to read config from DB
2021-04-16 17:53:36 +02:00
Trial97
cfbe6e709d
Added AdminSv1 service
2021-04-13 13:35:03 +02:00
Trial97
3406d3c7c9
Updated based on new rpc library
2021-04-13 13:35:03 +02:00
Trial97
b028a99050
Removed rals config
2021-04-01 16:36:51 +02:00
Trial97
48205d689d
Removed until build
2021-03-30 20:49:53 +02:00
porosnicuadrian
58ea63eac3
Started to remove scheduler
2021-03-30 20:49:53 +02:00
Trial97
7e90a42c1f
Added filtered replication for dataDB items
2021-03-09 17:37:59 +01:00
Trial97
038aa5f2ea
Renamed DispatcherH in RegistarC
2021-03-02 20:06:30 +01:00
andronache
c42bffcd23
Fixed integration tests in services
2021-02-24 18:17:56 +01:00
andronache
a3e77e837a
Integration tests in services
2021-01-14 10:31:11 +01:00
andronache
e5f3961a53
Integration tests in services
2021-01-14 10:31:11 +01:00
andronache
090bced29e
Continuing tests in services
2020-12-16 15:28:42 +02:00
Trial97
9de6a2d172
Updated shutdown channel handling
2020-11-29 20:06:30 +01:00
Trial97
b0208c29f0
Updated scheduler task handling
2020-11-20 10:36:54 +01:00
Trial97
a81fce8341
Updated services shutdown
2020-11-16 10:11:46 +01:00
Trial97
616f7b283c
Added GlobalVarS as service to manage the reload for the global variables
2020-10-20 11:09:16 +02:00
Trial97
70b6506336
Updated service reload
2020-08-26 10:34:55 +02:00
Trial97
d8b19f5972
Updated services tests
2020-08-24 18:51:00 +02:00
Trial97
ef84af834c
Added DispatcherH as a service
2020-08-24 18:51:00 +02:00