Removed all the old ProtocolProcessor stuff

This commit is contained in:
andsel
2018-11-08 22:18:11 +01:00
parent 24e9d9f83c
commit e10619813a
79 changed files with 483 additions and 6043 deletions
@@ -20,9 +20,10 @@ import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadMXBean;
import io.moquette.broker.ISubscriptionsRepository;
import io.moquette.broker.MemorySubscriptionsRepository;
import io.moquette.persistence.MemoryStorageService;
import io.moquette.spi.ISessionsStore;
import io.moquette.spi.impl.SessionsRepository;
import io.netty.handler.codec.mqtt.MqttQoS;
public final class PerformanceTest {
@@ -34,11 +35,11 @@ public final class PerformanceTest {
cpufreq-set -g performance -u 800MHz -c 2
cpufreq-set -g performance -u 800MHz -c 3
*/
public static void main(String[] args) throws IOException, InterruptedException {
public static void main(String[] args) throws IOException {
ISubscriptionsDirectory store = new CTrieSubscriptionDirectory();
MemoryStorageService memStore = new MemoryStorageService(null, null);
ISessionsStore aSessionsStore = memStore.sessionsStore();
SessionsRepository sessionsRepository = new SessionsRepository(aSessionsStore, null);
ISubscriptionsRepository sessionsRepository = new MemorySubscriptionsRepository();
store.init(sessionsRepository);
int times = 10000;