mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Added connection reload for SessionS
This commit is contained in:
committed by
Dan Christian Bogos
parent
88fb9c7926
commit
45ab2f9257
@@ -830,31 +830,31 @@ func (cdrS *CDRServer) V1CountCDRs(args *utils.RPCCDRsFilterWithArgDispatcher, c
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAttributeSConnection sets the new conection to the attribute service
|
||||
// SetAttributeSConnection sets the new connection to the attribute service
|
||||
// only used on reload
|
||||
func (cdrS *CDRServer) SetAttributeSConnection(attrS rpcclient.RpcClientConnection) {
|
||||
cdrS.attrS = attrS
|
||||
}
|
||||
|
||||
// SetThresholSConnection sets the new conection to the threshold service
|
||||
// SetThresholSConnection sets the new connection to the threshold service
|
||||
// only used on reload
|
||||
func (cdrS *CDRServer) SetThresholSConnection(thdS rpcclient.RpcClientConnection) {
|
||||
cdrS.thdS = thdS
|
||||
}
|
||||
|
||||
// SetStatSConnection sets the new conection to the stat service
|
||||
// SetStatSConnection sets the new connection to the stat service
|
||||
// only used on reload
|
||||
func (cdrS *CDRServer) SetStatSConnection(stS rpcclient.RpcClientConnection) {
|
||||
cdrS.statS = stS
|
||||
}
|
||||
|
||||
// SetChargerSConnection sets the new conection to the charger service
|
||||
// SetChargerSConnection sets the new connection to the charger service
|
||||
// only used on reload
|
||||
func (cdrS *CDRServer) SetChargerSConnection(chS rpcclient.RpcClientConnection) {
|
||||
cdrS.chargerS = chS
|
||||
}
|
||||
|
||||
// SetRALsConnection sets the new conection to the RAL service
|
||||
// SetRALsConnection sets the new connection to the RAL service
|
||||
// only used on reload
|
||||
func (cdrS *CDRServer) SetRALsConnection(rls rpcclient.RpcClientConnection) {
|
||||
cdrS.rals = rls
|
||||
|
||||
@@ -180,7 +180,7 @@ func (cS *ChargerService) V1GetChargersForEvent(args *utils.CGREventWithArgDispa
|
||||
return
|
||||
}
|
||||
|
||||
// SetAttributeConnection sets the new conection to the attribute service
|
||||
// SetAttributeConnection sets the new connection to the attribute service
|
||||
// only used on reload
|
||||
func (cS *ChargerService) SetAttributeConnection(attrS rpcclient.RpcClientConnection) {
|
||||
cS.attrS = attrS
|
||||
|
||||
@@ -69,7 +69,7 @@ func (pstr *AMQPv1Poster) Post(content []byte, fallbackFileName, _ string) (err
|
||||
break
|
||||
}
|
||||
// reset client and try again
|
||||
// used in case of closed conection because of idle time
|
||||
// used in case of closed connection because of idle time
|
||||
if pstr.client != nil {
|
||||
pstr.client.Close() // Make shure the connection is closed before reseting it
|
||||
}
|
||||
|
||||
@@ -766,7 +766,7 @@ func (rS *ResourceService) StartLoop() {
|
||||
go rS.runBackup()
|
||||
}
|
||||
|
||||
// SetThresholdConnection sets the new conection to the threshold service
|
||||
// SetThresholdConnection sets the new connection to the threshold service
|
||||
// only used on reload
|
||||
func (rS *ResourceService) SetThresholdConnection(thdS rpcclient.RpcClientConnection) {
|
||||
rS.thdS = thdS
|
||||
|
||||
@@ -423,7 +423,7 @@ func (sS *StatService) StartLoop() {
|
||||
go sS.runBackup()
|
||||
}
|
||||
|
||||
// SetThresholdConnection sets the new conection to the threshold service
|
||||
// SetThresholdConnection sets the new connection to the threshold service
|
||||
// only used on reload
|
||||
func (sS *StatService) SetThresholdConnection(thdS rpcclient.RpcClientConnection) {
|
||||
sS.thdS = thdS
|
||||
|
||||
@@ -634,19 +634,19 @@ func (spS *SupplierService) V1GetSupplierProfilesForEvent(args *utils.CGREventWi
|
||||
return
|
||||
}
|
||||
|
||||
// SetAttributeSConnection sets the new conection to the attribute service
|
||||
// SetAttributeSConnection sets the new connection to the attribute service
|
||||
// only used on reload
|
||||
func (spS *SupplierService) SetAttributeSConnection(attrS rpcclient.RpcClientConnection) {
|
||||
spS.attributeS = attrS
|
||||
}
|
||||
|
||||
// SetStatSConnection sets the new conection to the stat service
|
||||
// SetStatSConnection sets the new connection to the stat service
|
||||
// only used on reload
|
||||
func (spS *SupplierService) SetStatSConnection(stS rpcclient.RpcClientConnection) {
|
||||
spS.statS = stS
|
||||
}
|
||||
|
||||
// SetResourceSConnection sets the new conection to the resource service
|
||||
// SetResourceSConnection sets the new connection to the resource service
|
||||
// only used on reload
|
||||
func (spS *SupplierService) SetResourceSConnection(rS rpcclient.RpcClientConnection) {
|
||||
spS.resourceS = rS
|
||||
|
||||
Reference in New Issue
Block a user