/** * Initialize the CacheService * * @param layout The place on disk where the cache configuration will be stored */ public void initialize( InstanceLayout layout ) { initialize( layout, null ); }
/** * Builds the directory server instance. * * @param name the instance name */ private void build( String name ) throws Exception { directoryService.setInstanceId( name ); buildInstanceDirectory( name ); CacheService cacheService = new CacheService(); cacheService.initialize( directoryService.getInstanceLayout() ); directoryService.setCacheService( cacheService ); // Init the service now initSchema(); initSystemPartition(); directoryService.startup(); }
/** * Builds the directory server instance. * * @param name the instance name */ private void build( String name ) throws Exception { directoryService.setInstanceId( name ); buildInstanceDirectory( name ); CacheService cacheService = new CacheService(); cacheService.initialize( directoryService.getInstanceLayout(), name ); directoryService.setCacheService( cacheService ); // Init the service now initSchema(); initSystemPartition(); directoryService.startup(); }
cacheService.initialize( instanceLayout );
cacheService.initialize(this.service.getInstanceLayout());
cacheService.initialize( instanceLayout );
cacheService.initialize(layout);
cacheService.initialize(directoryService.getInstanceLayout());