public UpdateFuture(final Future<M> internalFuture, final SynchronizedRemoteRegistry<String, M, ?> remoteRegistry, final RegistryRemote registryRemote) { super(internalFuture, remoteRegistry, registryRemote); init(); }
public RemovalFuture(final Future<M> internalFuture, final SynchronizedRemoteRegistry<String, M, ?> remoteRegistry, final RegistryRemote registryRemote) { super(internalFuture, remoteRegistry, registryRemote); init(); }
public RegistrationFuture(final Future<M> internalFuture, final SynchronizedRemoteRegistry<String, M, ?> remoteRegistry, final RegistryRemote registryRemote) { super(internalFuture, remoteRegistry, registryRemote); init(); }
@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> 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); } }
protected abstract boolean check(final M message, final SynchronizedRemoteRegistry<String, M, ?> remoteRegistry) throws CouldNotPerformException; }
@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> updateAppConfig(final UnitConfig appUnitConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(appUnitConfig, this, UnitConfig.class), appUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update appUnitConfig!", 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> 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<AppClass> updateAppClass(AppClass appClass) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(appClass, this, AppClass.class), appClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update 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> removeAppConfig(final UnitConfig appUnitConfig) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(appUnitConfig, this, UnitConfig.class), appUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove appUnitConfig!", ex); } }
@Override public Future<UnitConfig> updateAgentConfig(final UnitConfig agentUnitConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(agentUnitConfig, this, UnitConfig.class), agentUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update 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> removeSceneConfig(final UnitConfig sceneUnitConfig) throws CouldNotPerformException { try { return new RemovalFuture<>(RPCHelper.callRemoteMethod(sceneUnitConfig, this, UnitConfig.class), sceneConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not remove scene config!", ex); } }
@Override public Future<UnitConfig> updateUserConfig(final UnitConfig userConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(userConfig, this, UnitConfig.class), userConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update user config[" + userConfig + "]!", 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<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); } }