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

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

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

origin: apache/activemq

/**
 * @return the name of the DestinationView
 */
public String getName() {
  return destination.getName();
}
origin: apache/activemq

@Override
public String getName() {
  return next.getName();
}
origin: apache/activemq

@Override
public String getName() {
  return destination.getName();
}
origin: apache/activemq

@Override
public void addDestination(Destination destination) {
  this.destinations.put(destination.getName(), destination);
}
origin: apache/activemq

protected boolean shouldDispatch(Broker broker, Message message, Destination dest) throws IOException {
  //if can't find .* in the prefix, default back to old logic and return true
  return prefix.contains(".*") && !prefix.startsWith("*") ? dest.getName().startsWith(prefix.substring(0, prefix.indexOf(".*"))) : true;
}
origin: apache/activemq

public boolean checkQueueSize(String queueName) {
  long count = 0;
  long queueSize = 0;
  Map<ActiveMQDestination, Destination> destinationMap = regionBroker.getDestinationMap();
  for (Map.Entry<ActiveMQDestination, Destination> entry : destinationMap.entrySet()) {
    if (entry.getKey().isQueue()) {
      if (entry.getValue().getName().matches(queueName)) {
        queueSize = entry.getValue().getDestinationStatistics().getMessages().getCount();
        count += queueSize;
        if (queueSize > 0) {
          LOG.info("Queue has pending message: {} queueSize is: {}", entry.getValue().getName(), queueSize);
        }
      }
    }
  }
  return count == 0;
}
origin: apache/activemq

@Override
public void slowConsumer(ConnectionContext context, Destination destination, Subscription subs) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    LOG.info("Detected slow consumer on {}", destination.getName());
    StringBuffer buf = new StringBuffer("Connection(");
    buf.append(subs.getConsumerInfo().getConsumerId().getConnectionId());
    buf.append(") Session(");
    buf.append(subs.getConsumerInfo().getConsumerId().getSessionId());
    buf.append(")");
    LOG.info(buf.toString());
  }
  super.slowConsumer(context, destination, subs);
}
origin: apache/activemq

@Override
public void isFull(ConnectionContext context, Destination destination, Usage<?> usage) {
  if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) {
    LOG.info("Destination is full: {}", destination.getName());
  }
  super.isFull(context, destination, usage);
}
origin: apache/activemq

destinations.remove(destination.getName());
origin: apache/activemq

  log = ((BaseDestination) dest).getLog();
log.info("{} Inactive for longer than {} ms - removing ...", dest.getName(), dest.getInactiveTimeoutBeforeGC());
try {
  getRoot().removeDestination(context, dest.getActiveMQDestination(), isAllowTempAutoCreationOnSend() ? 1 : 0);
origin: org.apache.activemq/activemq-broker

/**
 * @return the name of the DestinationView
 */
public String getName() {
  return destination.getName();
}
origin: org.apache.activemq/activemq-osgi

/**
 * @return the name of the DestinationView
 */
public String getName() {
  return destination.getName();
}
origin: org.apache.activemq/activemq-broker

@Override
public String getName() {
  return destination.getName();
}
origin: org.apache.activemq/activemq-broker

@Override
public void addDestination(Destination destination) {
  this.destinations.put(destination.getName(), destination);
}
origin: org.apache.activemq/activemq-broker

protected boolean shouldDispatch(Broker broker, Message message, Destination dest) throws IOException {
  //if can't find .* in the prefix, default back to old logic and return true
  return prefix.contains(".*") && !prefix.startsWith("*") ? dest.getName().startsWith(prefix.substring(0, prefix.indexOf(".*"))) : true;
}
origin: org.apache.activemq/activemq-all

@Override
public void slowConsumer(ConnectionContext context, Destination destination, Subscription subs) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    LOG.info("Detected slow consumer on {}", destination.getName());
    StringBuffer buf = new StringBuffer("Connection(");
    buf.append(subs.getConsumerInfo().getConsumerId().getConnectionId());
    buf.append(") Session(");
    buf.append(subs.getConsumerInfo().getConsumerId().getSessionId());
    buf.append(")");
    LOG.info(buf.toString());
  }
  super.slowConsumer(context, destination, subs);
}
origin: org.apache.activemq/activemq-broker

@Override
public void slowConsumer(ConnectionContext context, Destination destination, Subscription subs) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    LOG.info("Detected slow consumer on {}", destination.getName());
    StringBuffer buf = new StringBuffer("Connection(");
    buf.append(subs.getConsumerInfo().getConsumerId().getConnectionId());
    buf.append(") Session(");
    buf.append(subs.getConsumerInfo().getConsumerId().getSessionId());
    buf.append(")");
    LOG.info(buf.toString());
  }
  super.slowConsumer(context, destination, subs);
}
origin: org.apache.activemq/activemq-broker

@Override
public void isFull(ConnectionContext context, Destination destination, Usage<?> usage) {
  if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) {
    LOG.info("Destination is full: {}", destination.getName());
  }
  super.isFull(context, destination, usage);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void isFull(ConnectionContext context, Destination destination, Usage<?> usage) {
  if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) {
    LOG.info("Destination is full: {}", destination.getName());
  }
  super.isFull(context, destination, usage);
}
origin: pierre/meteo

@Override
public void isFull(ConnectionContext context, Destination destination, Usage usage) {
  if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) {
    LOG.info("Destination is full : " + destination.getName());
  }
  super.isFull(context, destination, usage);
}
org.apache.activemq.broker.regionDestinationgetName

Popular methods of Destination

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

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFrame (javax.swing)
  • Top 12 Jupyter Notebook extensions
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