public synchronized int getMinLargeMessageSize() { return serverLocator.getMinLargeMessageSize(); }
public synchronized int getMinLargeMessageSize() { return serverLocator.getMinLargeMessageSize(); }
public synchronized int getMinLargeMessageSize() { return serverLocator.getMinLargeMessageSize(); }
public synchronized int getMinLargeMessageSize() { return serverLocator.getMinLargeMessageSize(); }
public synchronized int getMinLargeMessageSize() { return serverLocator.getMinLargeMessageSize(); }
ServerLocator locator = addServerLocator(ActiveMQClient.createServerLocatorWithHA(tc)).setBlockOnNonDurableSend(true).setBlockOnDurableSend(true).setBlockOnAcknowledge(true).setReconnectAttempts(-1); sf = createSessionFactoryAndWaitForTopology(locator, 2); int minLarge = locator.getMinLargeMessageSize();
@Test public void testSimpleSendOnAvoid() throws Exception { ActiveMQServer server = createServer(true, isNetty()); server.start(); ClientSessionFactory sf = createSessionFactory(locator); ClientSession session = addClientSession(sf.createSession(false, true, true)); session.createQueue(ADDRESS, ADDRESS, true); ClientProducer producer = session.createProducer(ADDRESS); int minLargeSize = locator.getMinLargeMessageSize(); TestLargeMessageInputStream input = new TestLargeMessageInputStream(minLargeSize); ClientMessage clientFile = session.createMessage(true); clientFile.setBodyInputStream(input.clone()); producer.send(clientFile); session.start(); //no file should be in the dir as we send it as regular validateNoFilesOnLargeDir(); ClientConsumer consumer = session.createConsumer(ADDRESS); ClientMessage msg1 = consumer.receive(1000); Assert.assertNotNull(msg1); for (int i = 0; i < input.getSize(); i++) { byte b = msg1.getBodyBuffer().readByte(); Assert.assertEquals("incorrect char ", input.getChar(i), b); } msg1.acknowledge(); consumer.close(); session.close(); }
int minLargeSize = locator.getMinLargeMessageSize();
int minLargeSize = locator.getMinLargeMessageSize(); TestLargeMessageInputStream input = new TestLargeMessageInputStream(minLargeSize); input.setSize(80 * minLargeSize);
Assert.assertEquals(locator.getConnectionTTL(), connectionTTL); Assert.assertEquals(locator.getCallTimeout(), callTimeout); Assert.assertEquals(locator.getMinLargeMessageSize(), minLargeMessageSize); Assert.assertEquals(locator.getConsumerWindowSize(), consumerWindowSize); Assert.assertEquals(locator.getConsumerMaxRate(), consumerMaxRate);
final int minLargeSize = locator.getMinLargeMessageSize(); TestLargeMessageInputStream regularInput = new TestLargeMessageInputStream(minLargeSize); adjustLargeCompression(true, regularInput, 1024);
Assert.assertEquals(connectionTTL, locator.getConnectionTTL()); Assert.assertEquals(callTimeout, locator.getCallTimeout()); Assert.assertEquals(minLargeMessageSize, locator.getMinLargeMessageSize()); Assert.assertEquals(consumerWindowSize, locator.getConsumerWindowSize()); Assert.assertEquals(consumerMaxRate, locator.getConsumerMaxRate());
cf.getServerLocator().getConnectionTTL(); cf.getServerLocator().getCallTimeout(); cf.getServerLocator().getMinLargeMessageSize(); cf.getServerLocator().getConsumerWindowSize(); cf.getServerLocator().getConsumerMaxRate();