Remove dead code
This commit is contained in:
parent
b2a9be1373
commit
68c7c2575d
|
@ -153,7 +153,6 @@ public class TimeoutTask implements Runnable {
|
||||||
|
|
||||||
// Finally, freely shutdown all expired consumers.
|
// Finally, freely shutdown all expired consumers.
|
||||||
if (expiredCallbacks.size() > 0) {
|
if (expiredCallbacks.size() > 0) {
|
||||||
long startTime = System.currentTimeMillis();
|
|
||||||
List<String> tokens = new ArrayList<>(expiredCallbacks.size());
|
List<String> tokens = new ArrayList<>(expiredCallbacks.size());
|
||||||
for (String token : expiredCallbacks.keySet()) {
|
for (String token : expiredCallbacks.keySet()) {
|
||||||
tokens.add(token);
|
tokens.add(token);
|
||||||
|
|
|
@ -68,7 +68,6 @@ public class ColocatedActiveMQServer extends ActiveMQServerImpl {
|
||||||
@Override
|
@Override
|
||||||
protected NodeManager createNodeManager(final File directory, boolean replicatingBackup) {
|
protected NodeManager createNodeManager(final File directory, boolean replicatingBackup) {
|
||||||
if (replicatingBackup) {
|
if (replicatingBackup) {
|
||||||
NodeManager manager;
|
|
||||||
if (getConfiguration().getJournalType() == JournalType.ASYNCIO && LibaioContext.isLoaded()) {
|
if (getConfiguration().getJournalType() == JournalType.ASYNCIO && LibaioContext.isLoaded()) {
|
||||||
return new AIOFileLockNodeManager(directory, replicatingBackup, getConfiguration().getJournalLockAcquisitionTimeout());
|
return new AIOFileLockNodeManager(directory, replicatingBackup, getConfiguration().getJournalLockAcquisitionTimeout());
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,10 +39,6 @@ public class ClusteredTopicExample {
|
||||||
|
|
||||||
Connection connection1 = null;
|
Connection connection1 = null;
|
||||||
|
|
||||||
InitialContext ic0 = null;
|
|
||||||
|
|
||||||
InitialContext ic1 = null;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// Step 1. Instantiate topic
|
// Step 1. Instantiate topic
|
||||||
|
@ -116,14 +112,6 @@ public class ClusteredTopicExample {
|
||||||
if (connection1 != null) {
|
if (connection1 != null) {
|
||||||
connection1.close();
|
connection1.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ic0 != null) {
|
|
||||||
ic0.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ic1 != null) {
|
|
||||||
ic1.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,6 @@ public class SpringPartitionBrokerTest extends TestCase {
|
||||||
Partitioning config = plugin.getConfig();
|
Partitioning config = plugin.getConfig();
|
||||||
assertEquals(2, config.getBrokers().size());
|
assertEquals(2, config.getBrokers().size());
|
||||||
|
|
||||||
Object o;
|
|
||||||
String json = "{\n" +
|
String json = "{\n" +
|
||||||
" \"by_client_id\":{\n" +
|
" \"by_client_id\":{\n" +
|
||||||
" \"client1\":{\"ids\":[\"broker1\"]},\n" +
|
" \"client1\":{\"ids\":[\"broker1\"]},\n" +
|
||||||
|
|
|
@ -91,8 +91,6 @@ public class GroupingTest extends JMSTestBase {
|
||||||
connection.start();
|
connection.start();
|
||||||
connection2.start();
|
connection2.start();
|
||||||
|
|
||||||
final String jmsxgroupID = null;
|
|
||||||
|
|
||||||
Thread t = new Thread(new Runnable() {
|
Thread t = new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
|
@ -484,7 +484,6 @@ public class WildCardRoutingTest extends ActiveMQTestBase {
|
||||||
public void testWildcardRoutingWithHashMultiLengthAddresses() throws Exception {
|
public void testWildcardRoutingWithHashMultiLengthAddresses() throws Exception {
|
||||||
SimpleString addressAB = new SimpleString("a.b.c.f");
|
SimpleString addressAB = new SimpleString("a.b.c.f");
|
||||||
SimpleString addressAC = new SimpleString("a.c.f");
|
SimpleString addressAC = new SimpleString("a.c.f");
|
||||||
SimpleString addressAD = new SimpleString("a.d");
|
|
||||||
SimpleString address = new SimpleString("a.#.f");
|
SimpleString address = new SimpleString("a.#.f");
|
||||||
SimpleString queueName1 = new SimpleString("Q1");
|
SimpleString queueName1 = new SimpleString("Q1");
|
||||||
SimpleString queueName2 = new SimpleString("Q2");
|
SimpleString queueName2 = new SimpleString("Q2");
|
||||||
|
|
|
@ -215,9 +215,6 @@ public class ActiveMQConnectionFactoryTest extends ActiveMQTestBase {
|
||||||
|
|
||||||
private void testSettersThrowException(final ActiveMQConnectionFactory cf) {
|
private void testSettersThrowException(final ActiveMQConnectionFactory cf) {
|
||||||
|
|
||||||
String discoveryAddress = RandomUtil.randomString();
|
|
||||||
int discoveryPort = RandomUtil.randomPositiveInt();
|
|
||||||
long discoveryRefreshTimeout = RandomUtil.randomPositiveLong();
|
|
||||||
String clientID = RandomUtil.randomString();
|
String clientID = RandomUtil.randomString();
|
||||||
long clientFailureCheckPeriod = RandomUtil.randomPositiveLong();
|
long clientFailureCheckPeriod = RandomUtil.randomPositiveLong();
|
||||||
long connectionTTL = RandomUtil.randomPositiveLong();
|
long connectionTTL = RandomUtil.randomPositiveLong();
|
||||||
|
@ -235,14 +232,12 @@ public class ActiveMQConnectionFactoryTest extends ActiveMQTestBase {
|
||||||
String loadBalancingPolicyClassName = RandomUtil.randomString();
|
String loadBalancingPolicyClassName = RandomUtil.randomString();
|
||||||
int dupsOKBatchSize = RandomUtil.randomPositiveInt();
|
int dupsOKBatchSize = RandomUtil.randomPositiveInt();
|
||||||
int transactionBatchSize = RandomUtil.randomPositiveInt();
|
int transactionBatchSize = RandomUtil.randomPositiveInt();
|
||||||
long initialWaitTimeout = RandomUtil.randomPositiveLong();
|
|
||||||
boolean useGlobalPools = RandomUtil.randomBoolean();
|
boolean useGlobalPools = RandomUtil.randomBoolean();
|
||||||
int scheduledThreadPoolMaxSize = RandomUtil.randomPositiveInt();
|
int scheduledThreadPoolMaxSize = RandomUtil.randomPositiveInt();
|
||||||
int threadPoolMaxSize = RandomUtil.randomPositiveInt();
|
int threadPoolMaxSize = RandomUtil.randomPositiveInt();
|
||||||
long retryInterval = RandomUtil.randomPositiveLong();
|
long retryInterval = RandomUtil.randomPositiveLong();
|
||||||
double retryIntervalMultiplier = RandomUtil.randomDouble();
|
double retryIntervalMultiplier = RandomUtil.randomDouble();
|
||||||
int reconnectAttempts = RandomUtil.randomPositiveInt();
|
int reconnectAttempts = RandomUtil.randomPositiveInt();
|
||||||
boolean failoverOnServerShutdown = RandomUtil.randomBoolean();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
cf.setClientID(clientID);
|
cf.setClientID(clientID);
|
||||||
|
|
|
@ -133,7 +133,6 @@ public class OpenWireTestBase extends ActiveMQTestBase {
|
||||||
final double retryIntervalMultiplier = 1.0;
|
final double retryIntervalMultiplier = 1.0;
|
||||||
final int reconnectAttempts = -1;
|
final int reconnectAttempts = -1;
|
||||||
final int callTimeout = 30000;
|
final int callTimeout = 30000;
|
||||||
final boolean ha = false;
|
|
||||||
List<String> connectorNames = registerConnectors(server, connectorConfigs);
|
List<String> connectorNames = registerConnectors(server, connectorConfigs);
|
||||||
|
|
||||||
String cfName = name.getMethodName();
|
String cfName = name.getMethodName();
|
||||||
|
|
|
@ -20,7 +20,6 @@ import org.apache.activemq.artemis.core.persistence.GroupingInfo;
|
||||||
import org.apache.activemq.artemis.core.persistence.QueueBindingInfo;
|
import org.apache.activemq.artemis.core.persistence.QueueBindingInfo;
|
||||||
import org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager;
|
import org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager;
|
||||||
import org.apache.activemq.artemis.core.postoffice.PostOffice;
|
import org.apache.activemq.artemis.core.postoffice.PostOffice;
|
||||||
import org.apache.activemq.artemis.core.server.Queue;
|
|
||||||
import org.apache.activemq.artemis.tests.integration.IntegrationTestLogger;
|
import org.apache.activemq.artemis.tests.integration.IntegrationTestLogger;
|
||||||
import org.apache.activemq.artemis.tests.unit.core.server.impl.fakes.FakeJournalLoader;
|
import org.apache.activemq.artemis.tests.unit.core.server.impl.fakes.FakeJournalLoader;
|
||||||
import org.apache.activemq.artemis.tests.unit.core.server.impl.fakes.FakePostOffice;
|
import org.apache.activemq.artemis.tests.unit.core.server.impl.fakes.FakePostOffice;
|
||||||
|
@ -31,9 +30,7 @@ import org.junit.Test;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
|
|
||||||
public class RestartSMTest extends ActiveMQTestBase {
|
public class RestartSMTest extends ActiveMQTestBase {
|
||||||
|
@ -78,8 +75,6 @@ public class RestartSMTest extends ActiveMQTestBase {
|
||||||
|
|
||||||
journal.loadBindingJournal(queueBindingInfos, new ArrayList<GroupingInfo>());
|
journal.loadBindingJournal(queueBindingInfos, new ArrayList<GroupingInfo>());
|
||||||
|
|
||||||
Map<Long, Queue> queues = new HashMap<>();
|
|
||||||
|
|
||||||
journal.loadMessageJournal(postOffice, null, null, null, null, null, null, new FakeJournalLoader());
|
journal.loadMessageJournal(postOffice, null, null, null, null, null, null, new FakeJournalLoader());
|
||||||
|
|
||||||
journal.stop();
|
journal.stop();
|
||||||
|
@ -88,8 +83,6 @@ public class RestartSMTest extends ActiveMQTestBase {
|
||||||
|
|
||||||
journal.start();
|
journal.start();
|
||||||
|
|
||||||
queues = new HashMap<>();
|
|
||||||
|
|
||||||
journal.loadMessageJournal(postOffice, null, null, null, null, null, null, new FakeJournalLoader());
|
journal.loadMessageJournal(postOffice, null, null, null, null, null, null, new FakeJournalLoader());
|
||||||
|
|
||||||
queueBindingInfos = new ArrayList<>();
|
queueBindingInfos = new ArrayList<>();
|
||||||
|
|
|
@ -142,9 +142,6 @@ public class ActiveMQClusteredTest extends ActiveMQRAClusteredTestBase {
|
||||||
managedConnections.add(mc);
|
managedConnections.add(mc);
|
||||||
ActiveMQConnectionFactory cf1 = mc.getConnectionFactory();
|
ActiveMQConnectionFactory cf1 = mc.getConnectionFactory();
|
||||||
|
|
||||||
long timeout = 10000;
|
|
||||||
long now = System.currentTimeMillis();
|
|
||||||
|
|
||||||
while (!((ServerLocatorImpl)cf1.getServerLocator()).isReceivedTopology()) {
|
while (!((ServerLocatorImpl)cf1.getServerLocator()).isReceivedTopology()) {
|
||||||
Thread.sleep(50);
|
Thread.sleep(50);
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,6 @@ public class ResourceAdapterTest extends ActiveMQRATestBase {
|
||||||
String testBalancer = "testBalancer";
|
String testBalancer = "testBalancer";
|
||||||
String testParams = "key=val";
|
String testParams = "key=val";
|
||||||
String testaddress = "testaddress";
|
String testaddress = "testaddress";
|
||||||
String loadbalancer = "loadbalancer";
|
|
||||||
String testpass = "testpass";
|
String testpass = "testpass";
|
||||||
String testuser = "testuser";
|
String testuser = "testuser";
|
||||||
ActiveMQResourceAdapter qResourceAdapter = new ActiveMQResourceAdapter();
|
ActiveMQResourceAdapter qResourceAdapter = new ActiveMQResourceAdapter();
|
||||||
|
@ -153,7 +152,6 @@ public class ResourceAdapterTest extends ActiveMQRATestBase {
|
||||||
String testBalancer = "testBalancer2";
|
String testBalancer = "testBalancer2";
|
||||||
String testParams = "key=val2";
|
String testParams = "key=val2";
|
||||||
String testaddress = "testaddress2";
|
String testaddress = "testaddress2";
|
||||||
String loadbalancer = "loadbalancer2";
|
|
||||||
String testpass = "testpass2";
|
String testpass = "testpass2";
|
||||||
String testuser = "testuser2";
|
String testuser = "testuser2";
|
||||||
ActiveMQResourceAdapter qResourceAdapter = new ActiveMQResourceAdapter();
|
ActiveMQResourceAdapter qResourceAdapter = new ActiveMQResourceAdapter();
|
||||||
|
|
|
@ -60,8 +60,6 @@ public class PreACKPerf extends AbstractSendReceivePerfTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long end = System.currentTimeMillis();
|
|
||||||
|
|
||||||
printMsgsSec(start, nmessages);
|
printMsgsSec(start, nmessages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue