Examples of throwFirstException()


Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

    public void stop() throws Exception {
      ServiceStopper ss = new ServiceStopper();
      ss.stop(discoveryAgent);
      ss.stop(next);
      ss.throwFirstException();
    }

    public void onServiceAdd(DiscoveryEvent event) {
        String url = event.getServiceName();
        if (url != null) {
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

        }
        finally {
            ServiceStopper ss = new ServiceStopper();
            ss.stop(localBroker);
            ss.stop(remoteBroker);
            ss.throwFirstException();
        }
    }

    protected void serviceRemoteException(IOException error) {
        log.error("Network connection between " + localBroker + " and " + remoteBroker + " shutdown: " + error.getMessage(), error);
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

        }
        for (Iterator<ProxyConnection> iter = connections.iterator(); iter.hasNext();) {
            LOG.info("Connector stopped: Stopping proxy.");
            ss.stop(iter.next());
        }
        ss.throwFirstException();
        LOG.info("Proxy Connector " + getName() + " Stopped");
    }

    // Properties
    // -------------------------------------------------------------------------
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

                    stopper.onException(hook, e);
                }
            }
        }
       
        stopper.throwFirstException();
    }
   
    public boolean checkQueueSize(String queueName) {
        long count = 0;
        long queueSize = 0;
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

        }
        shuttingDown.set(true);
        ServiceStopper ss = new ServiceStopper();
        ss.stop(localTransport);
        ss.stop(remoteTransport);
        ss.throwFirstException();
    }
   
}
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

        }
        for (Iterator iter = connections.iterator(); iter.hasNext();) {
            log.info("Connector stopped: Stopping proxy.");
            ss.stop((Service) iter.next());
        }
        ss.throwFirstException();
        log.info("Proxy Connector " + getName() + " Stopped");
    }
   
    // Properties
    // -------------------------------------------------------------------------
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

    public void stop() throws Exception {
        started = false;
        ServiceStopper ss = new ServiceStopper();
        doStop(ss);
        ss.throwFirstException();
        // clear the state
        clientIdSet.clear();
        connections.clear();
        destinations.clear();
        brokerInfos.clear();
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

        for (Iterator<TransportConnection> iter = connections.iterator(); iter.hasNext();) {
            TransportConnection c = iter.next();
            ss.stop(c);
        }
        ss.throwFirstException();
        LOG.info("Connector " + getName() + " Stopped");
    }

    // Implementation methods
    // -------------------------------------------------------------------------
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

                    ss.stop(th.transport);
                }
            }

            LOG.debug("Stopped: " + this);
            ss.throwFirstException();
        }
        reconnectTask.shutdown();
    }

  public int getMinAckCount() {
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.throwFirstException()

                } catch (Throwable e) {
                    stopper.onException(hook, e);
                }
            }
        }
        stopper.throwFirstException();
    }
   
        public boolean checkQueueSize(String queueName) {
        long count = 0;
        long queueSize = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.