VOL-5367: Optimize the memory and cpu utilization of openonu adapter
Change-Id: I5b90f83387cbb6896e28ae95dc176e584cd836da
Signed-off-by: Praneeth Kumar Nalmas <praneeth.nalmas@radisys.com>
diff --git a/internal/pkg/common/interfaces.go b/internal/pkg/common/interfaces.go
index 0001ecb..ce91062 100755
--- a/internal/pkg/common/interfaces.go
+++ b/internal/pkg/common/interfaces.go
@@ -42,6 +42,14 @@
RLockMutexDeviceHandlersMap()
RUnlockMutexDeviceHandlersMap()
GetDeviceHandler(string) (IdeviceHandler, bool)
+ GetONUMIBDBMap() devdb.OnuMCmnMEDBMap
+ RLockMutexMIBDatabaseMap()
+ RUnlockMutexMIBDatabaseMap()
+ LockMutexMIBDatabaseMap()
+ UnlockMutexMIBDatabaseMap()
+ FetchEntryFromMibDatabaseMap(context.Context, string) (*devdb.OnuCmnMEDB, bool)
+ CreateEntryAtMibDatabaseMap(context.Context, string) (*devdb.OnuCmnMEDB, error)
+ ResetEntryFromMibDatabaseMap(context.Context, string)
}
// IdeviceHandler interface to deviceHandler