@Override public void start() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("discoveryAgent not configured"); } // lets pass into the agent the broker name and connection details discoveryAgent.setDiscoveryListener(this); discoveryAgent.start(); next.start(); }
LOG.debug("Connection failure exception: ", e); try { discoveryAgent.serviceFailed(event); } catch (IOException e1) { LOG.debug("Failure while handling create remote transport failure event: {}", e1.getMessage(), e1); discoveryAgent.serviceFailed(event); } catch (IOException e1) { LOG.debug("Failure while handling create local transport failure event: {}", e1.getMessage(), e1); try { discoveryAgent.serviceFailed(event); } catch (IOException e1) { LOG.debug("Discovery agent failure while handling failure event: {}", e1.getMessage(), e1);
@Override protected void handleStop(ServiceStopper stopper) throws Exception { for (Iterator<NetworkBridge> i = bridges.values().iterator(); i.hasNext();) { NetworkBridge bridge = i.next(); try { bridge.stop(); } catch (Exception e) { stopper.onException(this, e); } } bridges.clear(); activeEvents.clear(); try { this.discoveryAgent.stop(); } catch (Exception e) { stopper.onException(this, e); } super.handleStop(stopper); }
da.registerService(getPublishableConnectString()); da.start();
@Override protected void handleStart() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("You must configure the 'discoveryAgent' property"); } this.discoveryAgent.start(); super.handleStart(); }
public void setDiscoveryAgent(DiscoveryAgent discoveryAgent) { this.discoveryAgent = discoveryAgent; if (discoveryAgent != null) { this.discoveryAgent.setDiscoveryListener(this); } }
da.registerService(getPublishableConnectString()); da.start();
@Override protected void handleStart() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("You must configure the 'discoveryAgent' property"); } this.discoveryAgent.start(); super.handleStart(); }
public void setDiscoveryAgent(DiscoveryAgent discoveryAgent) { this.discoveryAgent = discoveryAgent; if (discoveryAgent != null) { this.discoveryAgent.setDiscoveryListener(this); } }
@Override public void start() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("discoveryAgent not configured"); } // lets pass into the agent the broker name and connection details discoveryAgent.setDiscoveryListener(this); discoveryAgent.start(); next.start(); }
da.registerService(getPublishableConnectString()); da.start();
@Override protected void handleStart() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("You must configure the 'discoveryAgent' property"); } this.discoveryAgent.start(); super.handleStart(); }
public void setDiscoveryAgent(DiscoveryAgent discoveryAgent) { this.discoveryAgent = discoveryAgent; if (discoveryAgent != null) { this.discoveryAgent.setDiscoveryListener(this); } }
@Override protected void handleStop(ServiceStopper stopper) throws Exception { for (Iterator<NetworkBridge> i = bridges.values().iterator(); i.hasNext();) { NetworkBridge bridge = i.next(); try { bridge.stop(); } catch (Exception e) { stopper.onException(this, e); } } bridges.clear(); activeEvents.clear(); try { this.discoveryAgent.stop(); } catch (Exception e) { stopper.onException(this, e); } super.handleStop(stopper); }
LOG.debug("Connection failure exception: ", e); try { discoveryAgent.serviceFailed(event); } catch (IOException e1) { LOG.debug("Failure while handling create remote transport failure event: {}", e1.getMessage(), e1); discoveryAgent.serviceFailed(event); } catch (IOException e1) { LOG.debug("Failure while handling create local transport failure event: {}", e1.getMessage(), e1); try { discoveryAgent.serviceFailed(event); } catch (IOException e1) { LOG.debug("Discovery agent failure while handling failure event: {}", e1.getMessage(), e1);
@Override public void start() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("discoveryAgent not configured"); } // lets pass into the agent the broker name and connection details discoveryAgent.setDiscoveryListener(this); discoveryAgent.start(); next.start(); }
da.registerService(getPublishableConnectString()); da.start();
@Override protected void handleStart() throws Exception { if (discoveryAgent == null) { throw new IllegalStateException("You must configure the 'discoveryAgent' property"); } this.discoveryAgent.start(); super.handleStart(); }
public void setDiscoveryAgent(DiscoveryAgent discoveryAgent) { this.discoveryAgent = discoveryAgent; if (discoveryAgent != null) { this.discoveryAgent.setDiscoveryListener(this); } }
@Override protected void handleStop(ServiceStopper stopper) throws Exception { for (Iterator<NetworkBridge> i = bridges.values().iterator(); i.hasNext();) { NetworkBridge bridge = i.next(); try { bridge.stop(); } catch (Exception e) { stopper.onException(this, e); } } bridges.clear(); activeEvents.clear(); try { this.discoveryAgent.stop(); } catch (Exception e) { stopper.onException(this, e); } super.handleStop(stopper); }