X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fran_lost_connection_handler.go;h=12d4df1b5a17690eacbe926a54c1806e2cd2206f;hb=refs%2Fchanges%2F83%2F2983%2F1;hp=61b1393f50cf170c13da4f6883c19705310edc46;hpb=de19068aaa1f3d2b415cd960106121ceb167aaa9;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go index 61b1393..12d4df1 100644 --- a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go +++ b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go @@ -13,7 +13,10 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package rmrmsghandlers @@ -24,14 +27,14 @@ import ( ) type RanLostConnectionHandler struct { - ranReconnectionManager managers.IRanReconnectionManager - logger *logger.Logger + ranDisconnectionManager managers.IRanDisconnectionManager + logger *logger.Logger } -func NewRanLostConnectionHandler(logger *logger.Logger, ranReconnectionManager managers.IRanReconnectionManager) RanLostConnectionHandler { +func NewRanLostConnectionHandler(logger *logger.Logger, ranDisconnectionManager managers.IRanDisconnectionManager) RanLostConnectionHandler { return RanLostConnectionHandler{ - logger: logger, - ranReconnectionManager: ranReconnectionManager, + logger: logger, + ranDisconnectionManager: ranDisconnectionManager, } } func (h RanLostConnectionHandler) Handle(request *models.NotificationRequest) { @@ -40,5 +43,5 @@ func (h RanLostConnectionHandler) Handle(request *models.NotificationRequest) { h.logger.Warnf("#RanLostConnectionHandler.Handle - RAN name: %s - Received lost connection notification", ranName) - _ = h.ranReconnectionManager.ReconnectRan(ranName) + _ = h.ranDisconnectionManager.DisconnectRan(ranName) }