@Override public void registerMethods(RSBLocalServer server) throws CouldNotPerformException { RPCHelper.registerInterface(Launcher.class, this, server); }
/** * {@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); }
public static String eventDataToArgumentString(final Event event) { if (event == null) { return "Void"; } return argumentToString(event.getData()); }
@Override public Future<Boolean> hasUser(String userId) throws CouldNotPerformException { return RPCHelper.callRemoteServerMethod(userId, remoteServer, Boolean.class); } }
@Override public Future<Boolean> isAdmin(String userId) throws NotAvailableException, CouldNotPerformException { return RPCHelper.callRemoteServerMethod(userId, remoteServer, Boolean.class); }
@Override public Future<Snapshot> recordSnapshot(UnitType unitType) throws CouldNotPerformException, InterruptedException { return RPCHelper.callRemoteMethod(unitType, this, Snapshot.class); }
@Override public void registerMethods(final RSBLocalServer server) throws CouldNotPerformException { RPCHelper.registerInterface(RegistryController.class, this, server); }
@Override public Future<TicketSessionKeyWrapper> requestClientServerTicket(TicketAuthenticatorWrapper ticketAuthenticatorWrapper) throws CouldNotPerformException { return RPCHelper.callRemoteServerMethod(ticketAuthenticatorWrapper, remoteServer, TicketSessionKeyWrapper.class); }
@Override public R call() throws Exception { final String shortArgument = RPCHelper.argumentToString(argument);
@Override public Future<Void> restoreSnapshot(final Snapshot snapshot) throws CouldNotPerformException, InterruptedException { return RPCHelper.callRemoteMethod(snapshot, this, Void.class); }
@Override public void registerMethods(RSBLocalServer server) throws CouldNotPerformException { // TODO Tamino: Make sure the unit template of connections already contains all services which are defined in the connection interface. // afterwarts remove this method because all services should be registered by the abstract unit class. Please make sure the mock registry registeres these services as well. RPCHelper.registerInterface(Connection.class, this, server); super.registerMethods(server); }
@Override public Future<TicketAuthenticatorWrapper> changeCredentials(LoginCredentialsChange loginCredentialsChange) throws CouldNotPerformException { return RPCHelper.callRemoteServerMethod(loginCredentialsChange, remoteServer, TicketAuthenticatorWrapper.class); }
public <R, T extends Object> R callMethod(final String methodName, final T argument, final long timeout) throws CouldNotPerformException, TimeoutException, InterruptedException { final String shortArgument = RPCHelper.argumentToString(argument); validateMiddleware(); long retryTimeout = METHOD_CALL_START_TIMEOUT;
@Override public Future<UserActivityClass> removeUserActivityClass(UserActivityClass userActivityClass) throws CouldNotPerformException { return RPCHelper.callRemoteMethod(userActivityClass, this, UserActivityClass.class); }
@Override public void registerMethods(final RSBLocalServer server) throws CouldNotPerformException { super.registerMethods(server); RPCHelper.registerInterface(UserActivityRegistry.class, this, server); }
@Override public Future<TicketAuthenticatorWrapper> register(LoginCredentialsChange loginCredentialsChange) throws CouldNotPerformException { return RPCHelper.callRemoteServerMethod(loginCredentialsChange, remoteServer, TicketAuthenticatorWrapper.class); }
@Override public Future<UserActivityClass> registerUserActivityClass(UserActivityClass userActivityClass) throws CouldNotPerformException { return RPCHelper.callRemoteMethod(userActivityClass, this, UserActivityClass.class); }
/** * {@inheritDoc} * * @param server {@inheritDoc} * @throws CouldNotPerformException {@inheritDoc} */ @Override public void registerMethods(final RSBLocalServer server) throws CouldNotPerformException { super.registerMethods(server); RPCHelper.registerInterface(DeviceRegistry.class, this, server); }
@Override public Future<TicketAuthenticatorWrapper> removeUser(LoginCredentialsChange loginCredentialsChange) throws CouldNotPerformException { return RPCHelper.callRemoteServerMethod(loginCredentialsChange, remoteServer, TicketAuthenticatorWrapper.class); }
@Override public Future<UserActivityConfig> registerUserActivityConfig(UserActivityConfig userActivityConfig) throws CouldNotPerformException { return RPCHelper.callRemoteMethod(userActivityConfig, this, UserActivityConfig.class); }