MCPcopy Create free account
hub / github.com/ECSTeam/cloudfoundry-top-plugin / NewCommonData

Function NewCommonData

ui/dataCommon/commonData.go:51–57  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

49// the same data twice
50
51func 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
59func (cd *CommonData) GetDisplayAppStatsMap() map[string]*DisplayAppStats {
60 return cd.displayAppStatsMap

Callers

nothing calls this directly

Calls 3

GetAppMdManagerMethod · 0.80
GetMetadataManagerMethod · 0.80
GetProcessorMethod · 0.80

Tested by

no test coverage detected