this.cache = serviceSet.getCache();
this.storeProvider = new LocalPStoreProvider(config);
} else {
Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
this.coord = new ZKClusterCoordinator(config);
this.storeProvider = new PStoreRegistry(this.coord, config).newPStoreProvider();
this.cache = new ICache(config, context.getAllocator(), false);
}
}