当前位置: 首页>>代码示例>>Java>>正文


Java BrokerService.disableWrapper方法代码示例

本文整理汇总了Java中org.apache.activemq.broker.BrokerService.disableWrapper方法的典型用法代码示例。如果您正苦于以下问题:Java BrokerService.disableWrapper方法的具体用法?Java BrokerService.disableWrapper怎么用?Java BrokerService.disableWrapper使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.activemq.broker.BrokerService的用法示例。


在下文中一共展示了BrokerService.disableWrapper方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
   BrokerService.disableWrapper = disableWrapper;
   File tmpRoot = new File("./target/tmp");
   tmpRoot.mkdirs();
   temporaryFolder = new TemporaryFolder(tmpRoot);
   temporaryFolder.create();

   if (artemisBroker == null) {
      artemisBroker = createArtemisBroker();
   }
   startBroker();

   connectionFactory = createConnectionFactory();

   destination = createDestination();

   template = createJmsTemplate();
   template.setDefaultDestination(destination);
   template.setPubSubDomain(useTopic);
   template.afterPropertiesSet();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:23,代码来源:EmbeddedBrokerTestSupport.java

示例2: OpenwireArtemisBaseTest

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
public OpenwireArtemisBaseTest() {
   File tmpRoot = new File("./target/tmp");
   tmpRoot.mkdirs();
   temporaryFolder = new TemporaryFolder(tmpRoot);
   //The wrapper stuff will automatically create a default
   //server on a normal connection factory, which will
   //cause problems with clustering tests, which starts
   //all servers explicitly. Setting this to true
   //can prevent the auto-creation from happening.
   BrokerService.disableWrapper = true;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:OpenwireArtemisBaseTest.java

示例3: doConnect

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Override
public Transport doConnect(URI location) throws Exception {
   //here check broker, if no broker, we start one
   Map<String, String> params = URISupport.parseParameters(location);
   String brokerId = params.remove("invmBrokerId");
   boolean autoCreate = true;
   String create = params.remove("create");
   if (create != null) {
      autoCreate = "true".equals(create);
   }

   URI location1 = URISupport.createRemainingURI(location, Collections.EMPTY_MAP);

   LOG.info("deciding whether starting an internal broker: " + brokerService + " flag: " + BrokerService.disableWrapper);
   if (autoCreate && brokerService == null && !BrokerService.disableWrapper && BrokerService.checkPort(location1.getPort())) {

      LOG.info("starting internal broker: " + location1);
      ArtemisBrokerHelper.startArtemisBroker(location1);
      brokerService = new InternalServiceInfo(location.toString());

      if (brokerId != null) {
         BrokerRegistry.getInstance().bind(brokerId, ArtemisBrokerHelper.getBroker());
         LOG.info("bound: " + brokerId);
      }
   }
   //remove unused invm parameters
   params.remove("broker.persistent");
   params.remove("broker.useJmx");
   params.remove("marshal");
   params.remove("create");
   params.remove("asyncQueueDepth");
   URI location2 = URISupport.createRemainingURI(location, params);
   return super.doConnect(location2);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:35,代码来源:TcpTransportFactory.java

示例4: setUp

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
   BrokerService.disableWrapper = true;
   System.setProperty("javax.net.ssl.trustStore", TRUST_KEYSTORE);
   System.setProperty("javax.net.ssl.trustStorePassword", PASSWORD);
   System.setProperty("javax.net.ssl.trustStoreType", KEYSTORE_TYPE);
   System.setProperty("javax.net.ssl.keyStore", SERVER_KEYSTORE);
   System.setProperty("javax.net.ssl.keyStorePassword", PASSWORD);
   System.setProperty("javax.net.ssl.keyStoreType", KEYSTORE_TYPE);
   //System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");

   maxWait = 10000;
   super.setUp();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:15,代码来源:SslTransportBrokerTest.java

示例5: setUp

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
   BrokerService.disableWrapper = true;
   broker = BrokerFactory.createBroker(new URI(BROKER_URL));
   broker.start();
   broker.waitUntilStarted();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:8,代码来源:RemoveDestinationTest.java

示例6: tearDown

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
   BrokerService.disableWrapper = false;
   broker.stop();
   broker.waitUntilStopped();
   broker = null;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:8,代码来源:RemoveDestinationTest.java

示例7: tearDown

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Override
protected void tearDown() throws Exception {
   BrokerService.disableWrapper = false;
   connection.close();
   super.tearDown();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:7,代码来源:ZeroPrefetchConsumerTest.java

示例8: setUp

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
   BrokerService.disableWrapper = true;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:5,代码来源:TimeStampTest.java

示例9: tearDown

import org.apache.activemq.broker.BrokerService; //导入方法依赖的package包/类
@Override
public void tearDown() {
   ArtemisBrokerHelper.stopArtemisBroker();
   BrokerService.disableWrapper = false;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:6,代码来源:TimeStampTest.java


注:本文中的org.apache.activemq.broker.BrokerService.disableWrapper方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。