/** * {@inheritDoc} * * @param scope {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final rsb.Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * @param scope * @throws InitializationException * @throws InterruptedException */ public void init(final Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public <R, T extends Object> R callMethod(final String methodName, final T argument) throws CouldNotPerformException, InterruptedException { return callMethod(methodName, argument, -1); }
@Override public void init(Scope scope, ParticipantConfig participantConfig) throws InitializationException, InterruptedException { super.init(scope, participantConfig); try { RPCHelper.registerInterface(AuthenticatedRequestable.class, this, server); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
/** * {@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); }
protected final Object getConfigField(String name) throws CouldNotPerformException { synchronized (CONFIG_LOCK) { return getConfigField(name, getConfig()); } }
private Scope detectScope() throws NotAvailableException { synchronized (CONFIG_LOCK) { return detectScope(getConfig()); } }
protected final Object getConfigField(String name) throws CouldNotPerformException { synchronized (CONFIG_LOCK) { return getConfigField(name, getConfig()); } }
private Scope detectScope() throws NotAvailableException { synchronized (CONFIG_LOCK) { return detectScope(getConfig()); } }
@Override public void disable() throws CouldNotPerformException, InterruptedException { synchronized (enablingLock) { enabled = false; deactivate(); } }
@Override public void enable() throws CouldNotPerformException, InterruptedException { synchronized (enablingLock) { enabled = true; activate(); } }
@Override public void init(final CONFIG config) throws InitializationException, InterruptedException { this.executing = false; super.init(config); }
public static synchronized RSBFactoryImpl getInstance() { if (instance == null) { instance = new RSBFactoryImpl(); } return instance; }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public <R> Future<R> callMethodAsync(final String methodName) throws CouldNotPerformException { return callMethodAsync(methodName, null); }
@Override public Future<Boolean> hasUser(String userId) throws CouldNotPerformException { return RPCHelper.callRemoteServerMethod(userId, remoteServer, Boolean.class); } }
/** * {@inheritDoc} * * @param scope {@inheritDoc} * @param participantConfig {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final Scope scope, final ParticipantConfig participantConfig) throws InitializationException, InterruptedException { internalInit(scope, participantConfig); }
/** * {@inheritDoc} * * @param scope {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * @param scope * @throws InitializationException * @throws InterruptedException */ public void init(final rsb.Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public <R> R callMethod(final String methodName) throws CouldNotPerformException, InterruptedException { return callMethod(methodName, null); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public <R> R callMethod(String methodName, long timeout) throws CouldNotPerformException, TimeoutException, InterruptedException { return callMethod(methodName, null, timeout); }