/** * {@inheritDoc} * * @return {@inheritDoc} */ @Override public boolean isActive() { try { validateInitialization(); } catch (InvalidStateException ex) { return false; } return informerWatchDog.isActive() && serverWatchDog.isActive(); }
/** * Method returns true if this instance was initialized, activated and is successfully connected to the middleware. * * @return returns true if this instance is ready otherwise false. */ @Override public Boolean isReady() { try { validateInitialization(); validateActivation(); validateMiddleware(); return true; } catch (InvalidStateException e) { return false; } }
/** * {@inheritDoc} * * @throws InterruptedException {@inheritDoc} * @throws CouldNotPerformException {@inheritDoc} */ @Override public void activate() throws InterruptedException, CouldNotPerformException { synchronized (manageableLock) { validateInitialization(); logger.debug("Activate RSBCommunicationService for: " + this); setControllerAvailabilityState(ControllerAvailabilityState.ACTIVATING); assert serverWatchDog != null; assert informerWatchDog != null; serverWatchDog.activate(); informerWatchDog.activate(); } }
synchronized (manageableLock) { try { validateInitialization(); } catch (InvalidStateException ex) {
try { logger.debug("Notify data change of " + this); validateInitialization(); if (!informer.isActive()) { logger.debug("Skip update notification because connection not established.");
synchronized (manageableLock) { try { validateInitialization(); } catch (final NotInitializedException ex) {