github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/daemon/stats_collector_windows.go (about) 1 package daemon 2 3 import ( 4 "time" 5 6 "github.com/docker/docker/container" 7 ) 8 9 // newStatsCollector returns a new statsCollector for collection stats 10 // for a registered container at the specified interval. The collector allows 11 // non-running containers to be added and will start processing stats when 12 // they are started. 13 func (daemon *Daemon) newStatsCollector(interval time.Duration) *statsCollector { 14 return &statsCollector{} 15 } 16 17 // statsCollector manages and provides container resource stats 18 type statsCollector struct { 19 } 20 21 // collect registers the container with the collector and adds it to 22 // the event loop for collection on the specified interval returning 23 // a channel for the subscriber to receive on. 24 func (s *statsCollector) collect(c *container.Container) chan interface{} { 25 return nil 26 } 27 28 // stopCollection closes the channels for all subscribers and removes 29 // the container from metrics collection. 30 func (s *statsCollector) stopCollection(c *container.Container) { 31 } 32 33 // unsubscribe removes a specific subscriber from receiving updates for a container's stats. 34 func (s *statsCollector) unsubscribe(c *container.Container, ch chan interface{}) { 35 }