public void initialize(Properties props, WorkerBuildContext context, DirectoryBasedIndexManager indexManager) {
this.indexManager = indexManager;
serviceManager = context.getServiceManager();
CacheManagerService cacheManagerService = serviceManager.requestService(CacheManagerService.class);
this.cacheManager = cacheManagerService.getEmbeddedCacheManager();
ComponentRegistryService componentRegistryService = serviceManager.requestService(ComponentRegistryService.class);
final ComponentRegistry componentsRegistry = componentRegistryService.getComponentRegistry();
this.indexName = indexManager.getIndexName();
this.rpcManager = componentsRegistry.getComponent(RpcManager.class);
this.cacheName = componentsRegistry.getCacheName();
this.distributionManager = componentsRegistry.getComponent(DistributionManager.class);
log.commandsBackendInitialized(indexName);