public AbstractIOService(final IOWatchService watchService) { this.id = DEFAULT_SERVICE_NAME; ioWatchService = watchService; PriorityDisposableRegistry.register(this); }
public FileSystem configFileSystem() { if (configFileSystem == null) { configFileSystem = (FileSystem) PriorityDisposableRegistry.get("systemFS"); } return configFileSystem; } }
@Override public void contextDestroyed(final ServletContextEvent sce) { final List<PriorityDisposable> disposables = new ArrayList<PriorityDisposable>(PriorityDisposableRegistry.getDisposables()); sort(disposables); for (final PriorityDisposable disposable : disposables) { disposable.dispose(); } executorService.shutdown(); unmanagedExecutorService.shutdown(); for (final FileSystemProvider fileSystemProvider : FileSystemProviders.installedProviders()) { if (fileSystemProvider instanceof Disposable) { ((Disposable) fileSystemProvider).dispose(); } } PriorityDisposableRegistry.clear(); }
public IOService ioService() { if (ioService == null) { ioService = new IOServiceDotFileImpl(); assertTrue(PriorityDisposableRegistry.getDisposables().contains(ioService)); } return ioService; }
public AbstractIOService(final String id) { this.id = id; ioWatchService = null; PriorityDisposableRegistry.register(this); }
public IOService ioService() { if (ioService == null) { ioService = new IOServiceDotFileImpl(); assertTrue(PriorityDisposableRegistry.getDisposables().contains(ioService)); } return ioService; }
@PostConstruct public void setup() { instance = this; configIOService = new IOServiceNio2WrapperImpl("config"); configFileSystem = (FileSystem) PriorityDisposableRegistry.get("systemFS"); }
public AbstractIOService() { this.id = DEFAULT_SERVICE_NAME; ioWatchService = null; PriorityDisposableRegistry.register(this); }
public AbstractIOService(final String id, final IOWatchService watchService) { this.id = id; ioWatchService = watchService; PriorityDisposableRegistry.register(this); }
public SocialTimelineCacheInstancePersistence( final Gson gson, final Type gsonCollectionType, final IOService ioService, final SocialEventTypeRepositoryAPI socialEventTypeRepository, final SocialUserPersistenceAPI socialUserService, final SocialUserServicesExtendedBackEndImpl userServicesBackend, final FileSystem fileSystem, final SocialSecurityConstraintsManager socialSecurityConstraintsManager ) { this.gsonCollectionType = gsonCollectionType; this.gson = gson; this.ioService = ioService; this.socialEventTypeRepository = socialEventTypeRepository; this.socialUserPersistenceAPI = socialUserService; this.userServicesBackend = userServicesBackend; this.fileSystem = fileSystem; this.socialSecurityConstraintsManager = socialSecurityConstraintsManager; PriorityDisposableRegistry.register( this ); }
public SocialTimelineCacheInstancePersistence(final Gson gson, final Type gsonCollectionType, final IOService ioService, final SocialEventTypeRepositoryAPI socialEventTypeRepository, final SocialUserPersistenceAPI socialUserService, final SocialUserServicesExtendedBackEndImpl userServicesBackend, final FileSystem fileSystem, final SocialSecurityConstraintsManager socialSecurityConstraintsManager) { this.gsonCollectionType = gsonCollectionType; this.gson = gson; this.ioService = ioService; this.socialEventTypeRepository = socialEventTypeRepository; this.socialUserPersistenceAPI = socialUserService; this.userServicesBackend = userServicesBackend; this.fileSystem = fileSystem; this.socialSecurityConstraintsManager = socialSecurityConstraintsManager; PriorityDisposableRegistry.register(this); }
public SocialTimelineCacheClusterPersistence( final Gson gson, final Type gsonCollectionType, final IOService ioService, final SocialEventTypeRepositoryAPI socialEventTypeRepository, final SocialUserPersistenceAPI socialUserPersistenceAPI, final SocialClusterMessaging socialClusterMessaging, final SocialUserServicesExtendedBackEndImpl userServicesBackend, final FileSystem fileSystem, final SocialSecurityConstraintsManager socialSecurityConstraintsManager ) { this.gson = gson; this.gsonCollectionType = gsonCollectionType; this.ioService = ioService; this.socialEventTypeRepository = socialEventTypeRepository; this.socialUserPersistenceAPI = socialUserPersistenceAPI; this.socialClusterMessaging = socialClusterMessaging; this.userServicesBackend = userServicesBackend; this.fileSystem = fileSystem; this.socialSecurityConstraintsManager = socialSecurityConstraintsManager; PriorityDisposableRegistry.register( this ); }
public SocialTimelineCacheClusterPersistence(final Gson gson, final Type gsonCollectionType, final IOService ioService, final SocialEventTypeRepositoryAPI socialEventTypeRepository, final SocialUserPersistenceAPI socialUserPersistenceAPI, final SocialClusterMessaging socialClusterMessaging, final SocialUserServicesExtendedBackEndImpl userServicesBackend, final FileSystem fileSystem, final SocialSecurityConstraintsManager socialSecurityConstraintsManager) { this.gson = gson; this.gsonCollectionType = gsonCollectionType; this.ioService = ioService; this.socialEventTypeRepository = socialEventTypeRepository; this.socialUserPersistenceAPI = socialUserPersistenceAPI; this.socialClusterMessaging = socialClusterMessaging; this.userServicesBackend = userServicesBackend; this.fileSystem = fileSystem; this.socialSecurityConstraintsManager = socialSecurityConstraintsManager; PriorityDisposableRegistry.register(this); }
public SocialTimelineCacheInstancePersistence(final Gson gson, final Type gsonCollectionType, final IOService ioService, final SocialEventTypeRepositoryAPI socialEventTypeRepository, final SocialUserPersistenceAPI socialUserService, final SocialUserServicesExtendedBackEndImpl userServicesBackend, final FileSystem fileSystem, final SocialSecurityConstraintsManager socialSecurityConstraintsManager) { this.gsonCollectionType = gsonCollectionType; this.gson = gson; this.ioService = ioService; this.socialEventTypeRepository = socialEventTypeRepository; this.socialUserPersistenceAPI = socialUserService; this.userServicesBackend = userServicesBackend; this.fileSystem = fileSystem; this.socialSecurityConstraintsManager = socialSecurityConstraintsManager; PriorityDisposableRegistry.register(this); }
public SocialTimelineCacheClusterPersistence(final Gson gson, final Type gsonCollectionType, final IOService ioService, final SocialEventTypeRepositoryAPI socialEventTypeRepository, final SocialUserPersistenceAPI socialUserPersistenceAPI, final SocialClusterMessaging socialClusterMessaging, final SocialUserServicesExtendedBackEndImpl userServicesBackend, final FileSystem fileSystem, final SocialSecurityConstraintsManager socialSecurityConstraintsManager) { this.gson = gson; this.gsonCollectionType = gsonCollectionType; this.ioService = ioService; this.socialEventTypeRepository = socialEventTypeRepository; this.socialUserPersistenceAPI = socialUserPersistenceAPI; this.socialClusterMessaging = socialClusterMessaging; this.userServicesBackend = userServicesBackend; this.fileSystem = fileSystem; this.socialSecurityConstraintsManager = socialSecurityConstraintsManager; PriorityDisposableRegistry.register(this); }
public MetadataIndexEngine(IndexProvider provider, MetaModelStore metaModelStore, Supplier<MultiIndexerLock> lockSupplier) { this.provider = provider; this.metaModelBuilder = new MetaModelBuilder(metaModelStore); this.lockSupplier = lockSupplier; PriorityDisposableRegistry.register(this); }
public MetadataIndexEngine(IndexProvider provider, MetaModelStore metaModelStore, Supplier<MultiIndexerLock> lockSupplier) { this.provider = provider; this.metaModelBuilder = new MetaModelBuilder(metaModelStore); this.lockSupplier = lockSupplier; PriorityDisposableRegistry.register(this); }
public IOSecurityService(final IOService service, final AuthenticationService authenticationService, final AuthorizationManager authManager) { this.authManager = checkNotNull("authManager", authManager); this.service = checkNotNull("service", service); this.authenticationService = checkNotNull("provider", authenticationService); PriorityDisposableRegistry.register(this); }
public IOSecurityService(final IOService service, final AuthenticationService authenticationService, final AuthorizationManager authManager) { this.authManager = checkNotNull("authManager", authManager); this.service = checkNotNull("service", service); this.authenticationService = checkNotNull("provider", authenticationService); PriorityDisposableRegistry.register(this); }