Tabnine Logo
Destination.start
Code IndexAdd Tabnine to your IDE (free)

How to use
start
method
in
org.apache.activemq.broker.region.Destination

Best Java code snippets using org.apache.activemq.broker.region.Destination.start (Showing top 15 results out of 315)

origin: apache/activemq

@Override
public void start() throws Exception {
  next.start();
}
origin: apache/activemq

@Override
public final void start() throws Exception {
  started = true;
  Set<ActiveMQDestination> inactiveDests = getInactiveDestinations();
  for (Iterator<ActiveMQDestination> iter = inactiveDests.iterator(); iter.hasNext();) {
    ActiveMQDestination dest = iter.next();
    ConnectionContext context = new ConnectionContext();
    context.setBroker(broker.getBrokerService().getBroker());
    context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
    context.getBroker().addDestination(context, dest, false);
  }
  destinationsLock.readLock().lock();
  try{
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.start();
    }
  } finally {
    destinationsLock.readLock().unlock();
  }
}
origin: apache/activemq

  dest = destinationInterceptor.intercept(dest);
dest.start();
addSubscriptionsForDestination(context, dest);
destinations.put(destination, dest);
origin: org.apache.activemq/activemq-all

@Override
public void start() throws Exception {
  next.start();
}
origin: org.apache.activemq/activemq-broker

@Override
public void start() throws Exception {
  next.start();
}
origin: pierre/meteo

public void start() throws Exception {
  next.start();
}
origin: org.apache.activemq/activemq-osgi

@Override
public void start() throws Exception {
  next.start();
}
origin: org.apache.activemq/activemq-broker

@Override
public final void start() throws Exception {
  started = true;
  Set<ActiveMQDestination> inactiveDests = getInactiveDestinations();
  for (Iterator<ActiveMQDestination> iter = inactiveDests.iterator(); iter.hasNext();) {
    ActiveMQDestination dest = iter.next();
    ConnectionContext context = new ConnectionContext();
    context.setBroker(broker.getBrokerService().getBroker());
    context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
    context.getBroker().addDestination(context, dest, false);
  }
  destinationsLock.readLock().lock();
  try{
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.start();
    }
  } finally {
    destinationsLock.readLock().unlock();
  }
}
origin: org.apache.activemq/activemq-all

@Override
public final void start() throws Exception {
  started = true;
  Set<ActiveMQDestination> inactiveDests = getInactiveDestinations();
  for (Iterator<ActiveMQDestination> iter = inactiveDests.iterator(); iter.hasNext();) {
    ActiveMQDestination dest = iter.next();
    ConnectionContext context = new ConnectionContext();
    context.setBroker(broker.getBrokerService().getBroker());
    context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
    context.getBroker().addDestination(context, dest, false);
  }
  destinationsLock.readLock().lock();
  try{
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.start();
    }
  } finally {
    destinationsLock.readLock().unlock();
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public final void start() throws Exception {
  started = true;
  Set<ActiveMQDestination> inactiveDests = getInactiveDestinations();
  for (Iterator<ActiveMQDestination> iter = inactiveDests.iterator(); iter.hasNext();) {
    ActiveMQDestination dest = iter.next();
    ConnectionContext context = new ConnectionContext();
    context.setBroker(broker.getBrokerService().getBroker());
    context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
    context.getBroker().addDestination(context, dest, false);
  }
  destinationsLock.readLock().lock();
  try{
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.start();
    }
  } finally {
    destinationsLock.readLock().unlock();
  }
}
origin: pierre/meteo

public final void start() throws Exception {
  started = true;
  Set<ActiveMQDestination> inactiveDests = getInactiveDestinations();
  for (Iterator<ActiveMQDestination> iter = inactiveDests.iterator(); iter.hasNext();) {
    ActiveMQDestination dest = iter.next();
    ConnectionContext context = new ConnectionContext();
    context.setBroker(broker.getBrokerService().getBroker());
    context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
    context.getBroker().addDestination(context, dest, false);
  }
  synchronized (destinationsMutex) {
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.start();
    }
  }
}
origin: org.apache.activemq/activemq-osgi

  dest = destinationInterceptor.intercept(dest);
dest.start();
addSubscriptionsForDestination(context, dest);
destinations.put(destination, dest);
origin: org.apache.activemq/activemq-broker

  dest = destinationInterceptor.intercept(dest);
dest.start();
addSubscriptionsForDestination(context, dest);
destinations.put(destination, dest);
origin: org.apache.activemq/activemq-all

  dest = destinationInterceptor.intercept(dest);
dest.start();
addSubscriptionsForDestination(context, dest);
destinations.put(destination, dest);
origin: pierre/meteo

public Destination addDestination(ConnectionContext context, ActiveMQDestination destination,
    boolean createIfTemporary) throws Exception {
  LOG.debug(broker.getBrokerName() + " adding destination: " + destination);
  synchronized (destinationsMutex) {
    Destination dest = destinations.get(destination);
    if (dest == null) {
      if (destination.isTemporary() == false || createIfTemporary) {
        dest = createDestination(context, destination);
        // intercept if there is a valid interceptor defined
        DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor();
        if (destinationInterceptor != null) {
          dest = destinationInterceptor.intercept(dest);
        }
        dest.start();
        destinations.put(destination, dest);
        destinationMap.put(destination, dest);
        addSubscriptionsForDestination(context, dest);
      }
      if (dest == null) {
        throw new JMSException("The destination " + destination + " does not exist.");
      }
    }
    return dest;
  }
}
org.apache.activemq.broker.regionDestinationstart

Popular methods of Destination

  • getConsumers
  • getDestinationStatistics
  • getName
  • getActiveMQDestination
  • browse
  • removeSubscription
  • acknowledge
  • addProducer
  • addSubscription
  • dispose
  • fastProducer
    Called to notify a producer is too fast
  • gc
  • fastProducer,
  • gc,
  • getBlockedProducerWarningInterval,
  • getCursorMemoryHighWaterMark,
  • getDeadLetterStrategy,
  • getMaxAuditDepth,
  • getMaxBrowsePageSize,
  • getMaxPageSize,
  • getMaxProducersToAudit,
  • getMemoryUsage

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now