Tabnine Logo
BrokerInfo.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.activemq.command.BrokerInfo
constructor

Best Java code snippets using org.apache.activemq.command.BrokerInfo.<init> (Showing top 20 results out of 315)

origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: apache/activemq

public BrokerInfo copy() {
  BrokerInfo copy = new BrokerInfo();
  copy(copy);
  return copy;
}
origin: apache/activemq

@Test
public void addPeerBrokerWithoutFilter() throws Exception {
  underTest.setBrokerService(new BrokerService());
  final String validName = "west";
  BrokerInfo brokerInfo = new BrokerInfo();
  brokerInfo.setBrokerURL(validName);
  brokerInfo.setBrokerName(validName);
  assertFalse(underTest.getPeerBrokers().contains(validName));
  underTest.addPeerBroker(brokerInfo);
  assertTrue(underTest.getPeerBrokers().contains(validName));
  final String validName2 = "east";
  brokerInfo = new BrokerInfo();
  brokerInfo.setBrokerURL(validName2);
  brokerInfo.setBrokerName(validName2);
  assertFalse(underTest.getPeerBrokers().contains(validName2));
  underTest.addPeerBroker(brokerInfo);
  assertTrue(underTest.getPeerBrokers().contains(validName2));
}
origin: apache/activemq

@Test
public void addPeerBrokerWithFilter() throws Exception {
  underTest.setUpdateClusterFilter("e.*,w.*");
  final String validName = "west";
  BrokerInfo brokerInfo = new BrokerInfo();
  brokerInfo.setBrokerURL(validName);
  brokerInfo.setBrokerName(validName);
  assertFalse(underTest.getPeerBrokers().contains(validName));
  underTest.addPeerBroker(brokerInfo);
  assertTrue(underTest.getPeerBrokers().contains(validName));
  final String validName2 = "east";
  brokerInfo = new BrokerInfo();
  brokerInfo.setBrokerURL(validName2);
  brokerInfo.setBrokerName(validName2);
  assertFalse(underTest.getPeerBrokers().contains(validName2));
  underTest.addPeerBroker(brokerInfo);
  assertTrue(underTest.getPeerBrokers().contains(validName2));
  final String inValidName = "boo";
  brokerInfo = new BrokerInfo();
  brokerInfo.setBrokerURL(inValidName);
  brokerInfo.setBrokerName(inValidName);
  assertFalse(underTest.getPeerBrokers().contains(inValidName));
  underTest.addPeerBroker(brokerInfo);
  assertFalse(underTest.getPeerBrokers().contains(inValidName));
}
origin: apache/activemq

synchronized (this) {
  if (!isCreatedByDuplex()) {
    BrokerInfo brokerInfo = new BrokerInfo();
    brokerInfo.setBrokerName(configuration.getBrokerName());
    brokerInfo.setBrokerURL(configuration.getBrokerURL());
origin: org.apache.activemq/activemq-all

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: org.apache.activemq/activemq-osgi

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: pierre/meteo

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new BrokerInfo();
}
origin: org.apache.activemq/activemq-all

public BrokerInfo copy() {
  BrokerInfo copy = new BrokerInfo();
  copy(copy);
  return copy;
}
origin: org.apache.activemq/activemq-client

public BrokerInfo copy() {
  BrokerInfo copy = new BrokerInfo();
  copy(copy);
  return copy;
}
origin: pierre/meteo

public BrokerInfo copy() {
  BrokerInfo copy = new BrokerInfo();
  copy(copy);
  return copy;
}

origin: apache/activemq-artemis

public void sendBrokerInfo(OpenWireConnection connection) throws Exception {
 BrokerInfo brokerInfo = new BrokerInfo();
 brokerInfo.setBrokerName(getBrokerName());
 brokerInfo.setBrokerId(new BrokerId("" + server.getNodeID()));
 brokerInfo.setPeerBrokerInfos(null);
 brokerInfo.setFaultTolerantConfiguration(false);
 brokerInfo.setBrokerURL(connection.getLocalAddress());
 //cluster support yet to support
 brokerInfo.setPeerBrokerInfos(null);
 connection.dispatch(brokerInfo);
}
org.apache.activemq.commandBrokerInfo<init>

Popular methods of BrokerInfo

  • getBrokerId
  • getBrokerName
  • getBrokerURL
  • setBrokerName
  • setBrokerURL
  • setBrokerId
  • setFaultTolerantConfiguration
  • setPeerBrokerInfos
  • getNetworkProperties
  • isDuplexConnection
  • isNetworkConnection
  • isSlaveBroker
  • isNetworkConnection,
  • isSlaveBroker,
  • setDuplexConnection,
  • setNetworkConnection,
  • setNetworkProperties,
  • copy,
  • getBrokerUploadUrl,
  • getConnectionId,
  • getPeerBrokerInfos

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top PhpStorm 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