private void failOnShutdown(String message) throws InvalidStateException { if (this.shutdownInitiated) { throw new InvalidStateException(message); } }
public void validateInitialization() throws InvalidStateException { if (!initialized) { throw new InvalidStateException(this + " not initialized!"); } }
public void validateInitialization() throws InvalidStateException { if (synchronisationFuture == null) { throw new InvalidStateException(this + " not initialized!"); } }
@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 void addHandler(Handler handler, boolean wait) throws InterruptedException, CouldNotPerformException { throw new CouldNotPerformException("Could not add 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("communication service not initialized yet!")); } return scope; }
@Override public void setTypeInfo(Class<M> typeInfo) throws CouldNotPerformException { throw new CouldNotPerformException("Could not set type info!", new InvalidStateException("Informer not initialized!")); } }
@Override public void removeHandler(Handler handler, boolean wait) throws InterruptedException, CouldNotPerformException { throw new CouldNotPerformException("Could not remove handler!", new InvalidStateException("Listener not initialized!")); } }
@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 Future<Event> callAsync(String name) throws CouldNotPerformException { throw new CouldNotPerformException("Could not call Method["+name+"]!", new InvalidStateException("RemoteServer not initialized!")); }
@Override public Event call(String name, double timeout) throws CouldNotPerformException { throw new CouldNotPerformException("Could not call Method["+name+"]!", new InvalidStateException("RemoteServer not initialized!")); }
@Override public <ReplyType, RequestType> ReplyType call(String name, RequestType data) throws CouldNotPerformException { throw new CouldNotPerformException("Could not call Method["+name+"]!", new InvalidStateException("RemoteServer not initialized!")); }
@Override public Event publish(Event event) throws CouldNotPerformException { throw new CouldNotPerformException("Could publish event!", new InvalidStateException("Informer not initialized!")); }
@Override public Iterator<Filter> getFilterIterator() throws NotAvailableException { throw new NotAvailableException("filter iterator", new InvalidStateException("Listener not initialized!")); }
@Override public Iterator<Handler> getHandlerIterator() throws CouldNotPerformException { throw new NotAvailableException("handler iterator", 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; }
@Override public String getKind() throws NotAvailableException { throw new NotAvailableException("kind", new InvalidStateException("Participant 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!")); }