TODO: Create a common data struct -- which needs access to masterUI to get GetDisplayedEventData and GetAppMdMgr. Also will allow appView to access this data through masterUI so we don't process the same data twice
(router *eventrouting.EventRouter, monitoredAppGuids map[string]bool)
| 49 | // the same data twice |
| 50 | |
| 51 | func NewCommonData(router *eventrouting.EventRouter, monitoredAppGuids map[string]bool) *CommonData { |
| 52 | cd := &CommonData{router: router} |
| 53 | |
| 54 | cd.appMdMgr = router.GetProcessor().GetMetadataManager().GetAppMdManager() |
| 55 | cd.monitoredAppGuids = monitoredAppGuids |
| 56 | return cd |
| 57 | } |
| 58 | |
| 59 | func (cd *CommonData) GetDisplayAppStatsMap() map[string]*DisplayAppStats { |
| 60 | return cd.displayAppStatsMap |
nothing calls this directly
no test coverage detected