ServletWithMetricsBase storeEntryServlet = constructStoreEntryServlet();
servlets.put(PathType.STORE_ENTRY, storeEntryServlet);
ServletWithMetricsBase storeListServlet = constructStoreListServlet();
servlets.put(PathType.STORE_ENTRIES, storeListServlet);
final BackgroundMetricsAccessor metrics = constructMetricsAccessor(
new AllOperationMetrics.Provider[] {
storeEntryServlet, storeListServlet, syncListServlet, syncPullServlet
});
servlets.put(PathType.NODE_METRICS, constructNodeMetricsServlet(metrics));
return new ServiceDispatchServlet<K,E,PathType>(_cluster, null, _serviceStuff, servlets);