@Override public boolean removeConnector(String connectorName) throws Exception { TransportConnector connector = brokerService.getConnectorByName(connectorName); if (connector == null) { throw new NoSuchElementException("Not connector matched the given name: " + connectorName); } connector.stop(); return brokerService.removeConnector(connector); }
connector = transportConnectors.get(i); if (connector != null && connector.getName() != null && connector.getName().matches(connectorName)) { connector.stop();
public synchronized void doStop() throws Exception { if (transportConnector != null) { TransportConnector temp = transportConnector; transportConnector = null; temp.stop(); } }
public synchronized void doFail() { if (transportConnector != null) { TransportConnector temp = transportConnector; transportConnector = null; try { temp.stop(); } catch (Exception e) { log.info("Caught while closing due to failure: " + e, e); } } }
@Override public boolean removeConnector(String connectorName) throws Exception { TransportConnector connector = brokerService.getConnectorByName(connectorName); if (connector == null) { throw new NoSuchElementException("Not connector matched the given name: " + connectorName); } connector.stop(); return brokerService.removeConnector(connector); }
@Override public boolean removeConnector(String connectorName) throws Exception { TransportConnector connector = brokerService.getConnectorByName(connectorName); if (connector == null) { throw new NoSuchElementException("Not connector matched the given name: " + connectorName); } connector.stop(); return brokerService.removeConnector(connector); }
@Override public boolean removeConnector(String connectorName) throws Exception { TransportConnector connector = brokerService.getConnectorByName(connectorName); if (connector == null) { throw new NoSuchElementException("Not connector matched the given name: " + connectorName); } connector.stop(); return brokerService.removeConnector(connector); }
public boolean removeConnector(String connectorName) throws Exception { TransportConnector connector = brokerService.getConnectorByName(connectorName); connector.stop(); return brokerService.removeConnector(connector); }
@Override public synchronized void stop() throws MessageBrokerException { BSDFLogger.getLogger().info("Stoping broker"); try { if (null != this.broker) { List<TransportConnector> transportConnectors = this.broker.getTransportConnectors(); for (TransportConnector transportConnector : transportConnectors) { transportConnector.stop(); } this.broker.stop(); this.broker = null; serviceGroundings = new ArrayList<AsyncMessageServiceGrounding>(); serviceChannelConsumers = new ArrayList<IChannelConsumer>(); } } catch (Exception ex) { throw new MessageBrokerException("Error stoping broker: " + this.name, ex); } }
connector = transportConnectors.get(i); if (connector != null && connector.getName() != null && connector.getName().matches(connectorName)) { connector.stop();
connector = transportConnectors.get(i); if (connector != null && connector.getName() != null && connector.getName().matches(connectorName)) { connector.stop();
connector = transportConnectors.get(i); if (connector != null && connector.getName() != null && connector.getName().matches(connectorName)) { connector.stop();
connector = transportConnectors.get(i); if (connector != null && connector.getName() != null && connector.getName().matches(connectorName)) { connector.stop();