/** * {@inheritDoc} * * @return {@inheritDoc} * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public Future<Snapshot> recordSnapshot() throws CouldNotPerformException, InterruptedException { return RPCHelper.callRemoteMethod(this, Snapshot.class); }
@Override public Future<AuthenticatedValue> registerUnitConfigAuthenticated(AuthenticatedValue authenticatedValue) throws CouldNotPerformException { try { return RPCHelper.callRemoteMethod(authenticatedValue, this, AuthenticatedValue.class); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register unit config!", ex); } }
@Override public Future<UnitConfig> removeUnitGroupConfig(final UnitConfig groupConfig) throws CouldNotPerformException { try { return RPCHelper.callRemoteMethod(groupConfig, this, UnitConfig.class); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove group unit config!", ex); } }
@Override public Future<ServiceTemplate> updateServiceTemplate(ServiceTemplate serviceTemplate) throws CouldNotPerformException { try { return RPCHelper.callRemoteMethod(serviceTemplate, this, ServiceTemplate.class); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update service template!", ex); } }
@Override public Future<UnitTemplate> updateUnitTemplate(final UnitTemplate unitTemplate) throws CouldNotPerformException { try { return RPCHelper.callRemoteMethod(unitTemplate, this, UnitTemplate.class); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update unit template!", ex); } }
/** * {@inheritDoc} */ @Override public Future<Void> waitUntilReadyFuture() { try { return RPCHelper.callRemoteMethod(this, Void.class); } catch (final CouldNotPerformException ex) { return FutureProcessor.canceledFuture(null, ex); } }
@Override public Future<AppClass> removeAppClass(AppClass appClass) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(appClass, this, AppClass.class), appClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove app class!", ex); } }
@Override public Future<AgentClass> removeAgentClass(AgentClass agentClass) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(agentClass, this, AgentClass.class), agentClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove agent class!", ex); } }
@Override public Future<UnitConfig> removeAuthorizationGroupConfig(UnitConfig groupConfig) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(groupConfig, this, UnitConfig.class), authorizationGroupConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove group config[" + groupConfig + "]!", ex); } }
@Override public Future<UnitConfig> registerAppConfig(final UnitConfig appUnitConfig) throws CouldNotPerformException { try { return new RegistrationFuture<>(RPCHelper.callRemoteMethod(appUnitConfig, this, UnitConfig.class), appUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register appUnitConfig!", ex); } }
@Override public Future<UnitConfig> registerAuthorizationGroupConfig(UnitConfig groupConfig) throws CouldNotPerformException { try { return new RegistrationFuture<>(RPCHelper.callRemoteMethod(groupConfig, this, UnitConfig.class), authorizationGroupConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register group config!", ex); } }
@Override public Future<UnitConfig> updateSceneConfig(final UnitConfig sceneUnitConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(sceneUnitConfig, this, UnitConfig.class), sceneConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update scene config!", ex); } }
@Override public Future<AppClass> registerAppClass(AppClass appClass) throws CouldNotPerformException { try { return new RegistrationFuture<>(RPCHelper.callRemoteMethod(appClass, this, AppClass.class), appClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register app class!", ex); } }
@Override public Future<UnitConfig> registerAgentConfig(final UnitConfig agentUnitConfig) throws CouldNotPerformException { try { return new RegistrationFuture<>(RPCHelper.callRemoteMethod(agentUnitConfig, this, UnitConfig.class), agentUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register agent config!", ex); } }
@Override public Future<UnitConfig> removeAgentConfig(final UnitConfig agentUnitConfig) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(agentUnitConfig, this, UnitConfig.class), agentUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove agent config!", ex); } }
@Override public Future<AgentClass> registerAgentClass(AgentClass agentClass) throws CouldNotPerformException { try { return new RegistrationFuture<>(RPCHelper.callRemoteMethod(agentClass, this, AgentClass.class), agentClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register agent class!", ex); } }
@Override public Future<UnitConfig> removeUserConfig(final UnitConfig userConfig) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(userConfig, this, UnitConfig.class), userConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove user config[" + userConfig + "]!", ex); } }
@Override public Future<UnitConfig> updateAuthorizationGroupConfig(UnitConfig groupConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(groupConfig, this, UnitConfig.class), authorizationGroupConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update group config[" + groupConfig + "]!", ex); } }
@Override public Future<AgentClass> updateAgentClass(AgentClass agentClass) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(agentClass, this, AgentClass.class), agentClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update agent class!", ex); } }
@Override public Future<UnitConfig> registerUserConfig(final UnitConfig userConfig) throws CouldNotPerformException { try { return new RegistrationFuture<>(RPCHelper.callRemoteMethod(userConfig, this, UnitConfig.class), userConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not register user config!", ex); } }