Examples of throwFirstException()


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()

        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()

                connection = null;
            } catch (JMSException e) {
                stopper.onException(this, e);
            }
        }
        stopper.throwFirstException();
    }

    // Properties
    // -------------------------------------------------------------------------
    public String getBrokerUrl() {
View Full Code Here

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

    public void stop() throws Exception {
        stopped = true;
        ServiceStopper ss = new ServiceStopper();
        doStop(ss);
        ss.throwFirstException();
    }
   
    public PolicyMap getDestinationPolicy(){
        return brokerService != null ? brokerService.getDestinationPolicy() : null;
    }
View Full Code Here

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

        log.debug("Caught exception stopping", e);
      } finally {
        ServiceStopper ss = new ServiceStopper();
        ss.stop(localBroker);
        ss.stop(remoteBroker);
        ss.throwFirstException();
      }
    }
        log.debug(localBrokerName+ " bridge to " + remoteBrokerName + " stopped");
    }
   
View Full Code Here

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

    public void stop() throws Exception {
        started = false;
        this.scheduler.cancel(purgeInactiveDestinationsTask);
        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()

                  ss.stop(th.transport);
                }
            }
           
            log.debug("Stopped: "+this);
            ss.throwFirstException();
        }
        reconnectTask.shutdown();
    }

    public long getInitialReconnectDelay() {
View Full Code Here

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

       
        for (Iterator iter = connections.iterator(); iter.hasNext();) {
            TransportConnection c = (TransportConnection) 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()

            remoteBroker.oneway(new ShutdownInfo());
        } finally {
            ServiceStopper ss = new ServiceStopper();
            ss.stop(localBroker);
            ss.stop(remoteBroker);
            ss.throwFirstException();
        }
    }
   
    protected void serviceRemoteException(IOException error) {
        log.info("Unexpected remote exception: "+error);
View Full Code Here

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

            stopper.stop(getManagementContext());
        }

        log.info("ActiveMQ JMS Message Broker (" + getBrokerName()+", "+brokerId+") stopped");

        stopper.throwFirstException();
    }

  protected void stopAllConnectors(ServiceStopper stopper) {
   
    for (Iterator iter = getNetworkConnectors().iterator(); iter.hasNext();) {
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.