protected RSBSynchronizedRemoteServer(final Scope scope, final Double timeout) throws InstantiationException { super(scope, null); try { if (timeout == null) { throw new NotAvailableException("timeout"); } this.timeout = timeout; } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }
@Override public ServiceFactory getServiceFactory() throws NotAvailableException { if (serviceFactory == null) { throw new NotAvailableException("ServiceFactory", new NotSupportedException("Unit hosting", this)); } return serviceFactory; }
@Override public <ReplyType, RequestType> ReplyType call(String name, RequestType data, double timeout) throws CouldNotPerformException { throw new CouldNotPerformException("Could not call Method["+name+"]!", new InvalidStateException("RemoteServer not initialized!")); } }
@Override public Scope getScope() throws NotAvailableException { if(scope == null) { throw new NotAvailableException("scope", new InvalidStateException("Participant not initialized!")); } return scope; }
@Override public void setTypeInfo(Class<M> typeInfo) throws CouldNotPerformException { throw new CouldNotPerformException("Could not set type info!", new InvalidStateException("Informer not initialized!")); } }
/** * {@inheritDoc} * * @return {@inheritDoc} * @throws NotAvailableException {@inheritDoc} */ @Override public Scope getScope() throws NotAvailableException { if (scope == null) { throw new NotAvailableException("scope", new InvalidStateException("communication service not initialized yet!")); } return scope; }
protected RSBSynchronizedParticipant(final Scope scope, final ParticipantConfig config) throws InstantiationException { try { if (scope == null) { throw new NotAvailableException("scope"); } this.scope = scope; this.config = config; } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }
@Override public void removeHandler(Handler handler, boolean wait) throws InterruptedException, CouldNotPerformException { throw new CouldNotPerformException("Could not remove handler!", new InvalidStateException("Listener not initialized!")); } }
/** * {@inheritDoc} * * @return {@inheritDoc} * @throws NotAvailableException {@inheritDoc} */ @Override public Scope getScope() throws NotAvailableException { if (scope == null) { throw new NotAvailableException("scope", new InvalidStateException("remote service not initialized yet!")); } return scope; }
public GenericDeviceController(final ServiceFactory serviceFactory) throws InstantiationException, CouldNotPerformException { super(GenericDeviceController.class); try { if (serviceFactory == null) { throw new NotAvailableException("service factory"); } this.serviceFactory = serviceFactory; } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }
@Override public Event call(String name, Event event) throws CouldNotPerformException { throw new CouldNotPerformException("Could not call Method["+name+"]!", new InvalidStateException("RemoteServer not initialized!")); }
@Override public String getKind() throws NotAvailableException { throw new NotAvailableException("kind", new InvalidStateException("Participant not initialized!")); }
@Override public void addHandler(Handler handler, boolean wait) throws InterruptedException, CouldNotPerformException { throw new CouldNotPerformException("Could not add handler!", new InvalidStateException("Listener not initialized!")); }
@Override public ParticipantId getId() throws NotAvailableException { throw new NotAvailableException("id", new InvalidStateException("Participant not initialized!")); }
@Override public void setObserverManager(Factory.ParticipantObserverManager observerManager) throws CouldNotPerformException { throw new CouldNotPerformException("Could not register observer manager!", new InvalidStateException("Participant not initialized!")); }
@Override public Collection<? extends Method> getMethods() throws NotAvailableException { throw new NotAvailableException("methods", new InvalidStateException("Server not initialized!")); }
@Override public void deactivate() throws CouldNotPerformException, InterruptedException { throw new CouldNotPerformException("Could not deactivate participant!", new InvalidStateException("Participant not initialized!")); }
@Override public List<Filter> getFilters() throws NotAvailableException { throw new NotAvailableException("filters", new InvalidStateException("Listener not initialized!")); }
@Override public Event publish(M data) throws CouldNotPerformException { throw new CouldNotPerformException("Could publish data!", new InvalidStateException("Informer not initialized!")); }
@Override public void addFilter(Filter filter) throws CouldNotPerformException { throw new CouldNotPerformException("Could not add filter!", new InvalidStateException("Listener not initialized!")); }