   [& args]
   (apply apply-or-0 max args))
 
-(defmulti merge-agg-comp-stats
-  "Merges all bolt stats from one executor with the given accumulated stats."
-  page+comp-dispatch)
-
-(defmethod merge-agg-comp-stats [:component-page :bolt]
-  [_ _
-   {acc-in :cid+sid->input-stats
+(defn merge-agg-comp-stats-comp-page-bolt
+  [{acc-in :cid+sid->input-stats
     acc-out :sid->output-stats
     :as acc-bolt-stats}
    {bolt-in :cid+sid->input-stats

      ((fn [[weighted-avg cnt]]
        (div weighted-avg (* 1000 (min uptime 600))))))))

(defn- page+comp-dispatch
  [page-type comp-type & _]
  [page-type comp-type])

(defmulti agg-pre-merge
  page+comp-dispatch)

(defmethod agg-pre-merge [:component-page :bolt]
  [_ _
   {exec-id :exec-id
    host :host
    port :port
    uptime :uptime

                           (get window)
                           handle-sys-components-fn)}))}))

(defn agg-pre-merge-topo-page-bolt
  [{comp-id :comp-id
    num-tasks :num-tasks
    statk->w->sid->num :stats
    uptime :uptime}
