Tabnine Logo
Broker.getPeerBrokerInfos
Code IndexAdd Tabnine to your IDE (free)

How to use
getPeerBrokerInfos
method
in
org.apache.activemq.broker.Broker

Best Java code snippets using org.apache.activemq.broker.Broker.getPeerBrokerInfos (Showing top 18 results out of 315)

origin: apache/activemq

@Override
public BrokerInfo[] getPeerBrokerInfos() {
  return getNext().getPeerBrokerInfos();
}
origin: apache/activemq

BrokerInfo info = connector.getBrokerInfo().copy();
if (connector.isUpdateClusterClients()) {
  info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
} else {
  info.setPeerBrokerInfos(null);
origin: apache/activemq

brokerInfo.setBrokerName(broker.getBrokerName());
brokerInfo.setBrokerId(broker.getBrokerId());
brokerInfo.setPeerBrokerInfos(broker.getPeerBrokerInfos());
brokerInfo.setFaultTolerantConfiguration(broker.isFaultTolerantConfiguration());
brokerInfo.setBrokerURL(broker.getBrokerService().getDefaultSocketURIString());
origin: pierre/meteo

public BrokerInfo[] getPeerBrokerInfos() {
  return next.getPeerBrokerInfos();
}
origin: org.apache.activemq/activemq-all

@Override
public BrokerInfo[] getPeerBrokerInfos() {
  return getNext().getPeerBrokerInfos();
}
origin: org.apache.activemq/activemq-osgi

@Override
public BrokerInfo[] getPeerBrokerInfos() {
  return getNext().getPeerBrokerInfos();
}
origin: org.apache.activemq/activemq-broker

@Override
public BrokerInfo[] getPeerBrokerInfos() {
  return getNext().getPeerBrokerInfos();
}
origin: pierre/meteo

public BrokerInfo[] getPeerBrokerInfos() {
  return getNext().getPeerBrokerInfos();
}
origin: pierre/meteo

protected ConnectionControl getConnectionControl() {
  boolean rebalance = isRebalanceClusterClients();
  String connectedBrokers = "";
  String self = "";
  if (isUpdateClusterClients()) {
    if (brokerService.getDefaultSocketURIString() != null) {
      self += brokerService.getDefaultSocketURIString();
      self += ",";
    }
    if (rebalance == false) {
      connectedBrokers += self;
    }
    if (this.broker.getPeerBrokerInfos() != null) {
      for (BrokerInfo info : this.broker.getPeerBrokerInfos()) {
        if (isMatchesClusterFilter(info.getBrokerName())) {
          connectedBrokers += info.getBrokerURL();
          connectedBrokers += ",";
        }
      }
    }
    if (rebalance) {
      connectedBrokers += self;
    }
  }
  ConnectionControl control = new ConnectionControl();
  control.setConnectedBrokers(connectedBrokers);
  control.setRebalanceConnection(rebalance);
  return control;
}
origin: org.apache.activemq/activemq-all

BrokerInfo info = connector.getBrokerInfo().copy();
if (connector.isUpdateClusterClients()) {
  info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
} else {
  info.setPeerBrokerInfos(null);
origin: org.apache.activemq/activemq-broker

BrokerInfo info = connector.getBrokerInfo().copy();
if (connector.isUpdateClusterClients()) {
  info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
} else {
  info.setPeerBrokerInfos(null);
origin: org.apache.activemq/activemq-osgi

BrokerInfo info = connector.getBrokerInfo().copy();
if (connector.isUpdateClusterClients()) {
  info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
} else {
  info.setPeerBrokerInfos(null);
origin: pierre/meteo

BrokerInfo info = connector.getBrokerInfo().copy();
if (connector.isUpdateClusterClients()) {
  info.setPeerBrokerInfos(this.broker.getPeerBrokerInfos());
} else {
  info.setPeerBrokerInfos(null);
origin: pierre/meteo

protected void startBridge() throws Exception {
  connectionInfo = new ConnectionInfo();
  connectionInfo.setConnectionId(new ConnectionId(idGenerator.generateId()));
  connectionInfo.setClientId(idGenerator.generateId());
  connectionInfo.setUserName(userName);
  connectionInfo.setPassword(password);
  connectionInfo.setBrokerMasterConnector(true);
  sessionInfo = new SessionInfo(connectionInfo, 1);
  producerInfo = new ProducerInfo(sessionInfo, 1);
  producerInfo.setResponseRequired(false);
  if (connector != null) {
    brokerInfo = connector.getBrokerInfo();
  } else {
    brokerInfo = new BrokerInfo();
  }
  brokerInfo.setBrokerName(broker.getBrokerName());
  brokerInfo.setPeerBrokerInfos(broker.getBroker().getPeerBrokerInfos());
  brokerInfo.setSlaveBroker(true);
  brokerInfo.setPassiveSlave(broker.isPassiveSlave());
  restartBridge();
  LOG.info("Slave connection between " + localBroker + " and " + remoteBroker + " has been established.");
}
origin: pierre/meteo

brokerInfo.setBrokerName(broker.getBrokerName());
brokerInfo.setBrokerId(broker.getBrokerId());
brokerInfo.setPeerBrokerInfos(broker.getPeerBrokerInfos());
brokerInfo.setFaultTolerantConfiguration(broker.isFaultTolerantConfiguration());
brokerInfo.setBrokerURL(getServer().getConnectURI().toString());
origin: org.apache.activemq/activemq-all

brokerInfo.setBrokerName(broker.getBrokerName());
brokerInfo.setBrokerId(broker.getBrokerId());
brokerInfo.setPeerBrokerInfos(broker.getPeerBrokerInfos());
brokerInfo.setFaultTolerantConfiguration(broker.isFaultTolerantConfiguration());
brokerInfo.setBrokerURL(broker.getBrokerService().getDefaultSocketURIString());
origin: org.apache.activemq/activemq-osgi

brokerInfo.setBrokerName(broker.getBrokerName());
brokerInfo.setBrokerId(broker.getBrokerId());
brokerInfo.setPeerBrokerInfos(broker.getPeerBrokerInfos());
brokerInfo.setFaultTolerantConfiguration(broker.isFaultTolerantConfiguration());
brokerInfo.setBrokerURL(broker.getBrokerService().getDefaultSocketURIString());
origin: org.apache.activemq/activemq-broker

brokerInfo.setBrokerName(broker.getBrokerName());
brokerInfo.setBrokerId(broker.getBrokerId());
brokerInfo.setPeerBrokerInfos(broker.getPeerBrokerInfos());
brokerInfo.setFaultTolerantConfiguration(broker.isFaultTolerantConfiguration());
brokerInfo.setBrokerURL(broker.getBrokerService().getDefaultSocketURIString());
org.apache.activemq.brokerBrokergetPeerBrokerInfos

Javadoc

Get the BrokerInfo's of any connected Brokers

Popular methods of Broker

  • getAdaptor
    Get a Broker from the Broker Stack that is a particular class
  • getDestinationMap
    return a reference destination map of a region based on the destination type
  • removeDestination
  • commitTransaction
    Commits a transaction.
  • forgetTransaction
    Forgets a transaction.
  • getBrokerService
  • getClients
  • getDestinations
  • getPreparedTransactions
    Gets a list of all the prepared xa transactions.
  • getVmConnectorURI
  • removeConsumer
  • acknowledge
  • removeConsumer,
  • acknowledge,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JList (javax.swing)
  • 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