public AppManagerController() throws org.openbase.jul.exception.InstantiationException, InterruptedException { try { this.factory = AppFactoryImpl.getInstance(); this.appRegistry = new ControllerRegistryImpl<>(); this.appRegistrySynchronizer = new EnableableEntryRegistrySynchronizer<String, AppController, UnitConfig, UnitConfig.Builder>(appRegistry, Registries.getUnitRegistry().getAppUnitConfigRemoteRegistry(), Registries.getUnitRegistry(), factory) { @Override public boolean enablingCondition(final UnitConfig config) { return config.getEnablingState().getValue() == EnablingStateType.EnablingState.State.ENABLED; } }; } catch (CouldNotPerformException ex) { throw new org.openbase.jul.exception.InstantiationException(this, ex); } }
public SceneManagerController() throws org.openbase.jul.exception.InstantiationException, InterruptedException { try { this.factory = SceneFactoryImpl.getInstance(); this.sceneRegistry = new ControllerRegistryImpl<>(); this.sceneRegistrySynchronizer = new EnableableEntryRegistrySynchronizer<String, SceneController, UnitConfig, UnitConfig.Builder>(sceneRegistry, Registries.getSceneRegistry().getSceneConfigRemoteRegistry(), Registries.getSceneRegistry(), factory) { @Override public boolean enablingCondition(UnitConfig config) { return config.getEnablingState().getValue().equals(EnablingStateType.EnablingState.State.ENABLED); } }; } catch (CouldNotPerformException ex) { throw new org.openbase.jul.exception.InstantiationException(this, ex); } }
public AgentManagerController() throws org.openbase.jul.exception.InstantiationException, InterruptedException { try { this.factory = AgentFactoryImpl.getInstance(); this.agentRegistry = new ControllerRegistryImpl<>(); this.agentRegistrySynchronizer = new EnableableEntryRegistrySynchronizer<String, AgentController, UnitConfig, UnitConfig.Builder>(agentRegistry, Registries.getAgentRegistry().getAgentConfigRemoteRegistry(), Registries.getAgentRegistry(), factory) { @Override public boolean enablingCondition(final UnitConfig config) { return config.getEnablingState().getValue() == EnablingState.State.ENABLED; } }; } catch (CouldNotPerformException ex) { throw new org.openbase.jul.exception.InstantiationException(this, ex); } }
@Override public void shutdown() { deviceRegistrySynchronizer.shutdown(); deviceControllerRegistry.shutdown(); unitControllerRegistry.shutdown(); unitSimulationManager.shutdown(); instance = null; }
@Override public void deactivate() throws CouldNotPerformException, InterruptedException { active = false; unitSimulationManager.deactivate(); deviceRegistrySynchronizer.deactivate(); deviceControllerRegistry.clear(); unitControllerRegistry.clear(); }
public UserManagerController() throws org.openbase.jul.exception.InstantiationException, InterruptedException { try { this.userFactory = UserFactoryImpl.getInstance(); this.authorizationGroupFactory = AuthorizationGroupFactoryImpl.getInstance(); this.userRegistry = new ControllerRegistryImpl<>(); this.authorizationGroupRegistry = new ControllerRegistryImpl<>(); this.userRegistrySynchronizer = new EnableableEntryRegistrySynchronizer<String, UserController, UnitConfig, UnitConfig.Builder>(userRegistry, Registries.getUserRegistry().getUserConfigRemoteRegistry(), Registries.getUserRegistry(), userFactory) { @Override public boolean enablingCondition(UnitConfig config) { return config.getEnablingState().getValue() == EnablingState.State.ENABLED; } }; this.authorizationGroupRegistrySynchronizer = new ActivatableEntryRegistrySynchronizer<String, AuthorizationGroupController, UnitConfig, Builder>(authorizationGroupRegistry, Registries.getUnitRegistry().getAuthorizationGroupUnitConfigRemoteRegistry(), Registries.getUserRegistry(), authorizationGroupFactory) { @Override public boolean activationCondition(UnitConfig config) { return config.getEnablingState().getValue() == State.ENABLED; } }; } catch (CouldNotPerformException ex) { throw new org.openbase.jul.exception.InstantiationException(this, ex); } }
public LocationManagerController() throws org.openbase.jul.exception.InstantiationException, InterruptedException { try { this.locationFactory = LocationFactoryImpl.getInstance(); this.connectionFactory = ConnectionFactoryImpl.getInstance(); this.locationRegistry = new ControllerRegistryImpl<>(); this.connectionRegistry = new ControllerRegistryImpl<>(); this.locationRegistrySynchronizer = new ActivatableEntryRegistrySynchronizer<String, LocationController, UnitConfig, UnitConfig.Builder>(locationRegistry, Registries.getLocationRegistry().getLocationConfigRemoteRegistry(), Registries.getLocationRegistry(), locationFactory) { @Override public boolean activationCondition(final UnitConfig config) { return config.getEnablingState().getValue() == State.ENABLED; } }; this.connectionRegistrySynchronizer = new ActivatableEntryRegistrySynchronizer<String, ConnectionController, UnitConfig, UnitConfig.Builder>(connectionRegistry, Registries.getLocationRegistry().getConnectionConfigRemoteRegistry(), Registries.getLocationRegistry(), connectionFactory) { @Override public boolean activationCondition(final UnitConfig config) { return config.getEnablingState().getValue() == State.ENABLED; } }; this.unitGrouptFactory = UnitGroupFactoryImpl.getInstance(); this.unitGroupRegistry = new ControllerRegistryImpl<>(); this.unitGroupRegistrySynchronizer = new ActivatableEntryRegistrySynchronizer<String, UnitGroupController, UnitConfig, UnitConfig.Builder>(unitGroupRegistry, Registries.getUnitRegistry().getUnitGroupUnitConfigRemoteRegistry(), Registries.getUnitRegistry(), unitGrouptFactory) { @Override public boolean activationCondition(final UnitConfig config) { return config.getEnablingState().getValue() == State.ENABLED; } }; } catch (CouldNotPerformException ex) { throw new org.openbase.jul.exception.InstantiationException(this, ex); } }
this.deviceControllerRegistry = new ControllerRegistryImpl<>();