bdaac34a33
PublishMessage#getPayload: returns duplicate for safety
Andreas Mager2017-01-26 17:19:55 +01:00
94475d2b04
ProtocolProcessorTest#testCleanRetainedStoreAfterAQoS0AndRetainedTrue: check added if test is in the correct state
Andreas Mager2017-01-26 17:19:12 +01:00
f25af642b0
SubscriptionsStoreTest: containsExactlyInAnyOrder used for matches
Andreas Mager2017-01-19 21:55:01 +01:00
c5b7fd52c5
SubscriptionsStoreTest: assertj used for assertions
Andreas Mager2017-01-19 21:34:07 +01:00
f460d6a230
SubscriptionsStoreTest: classname used for static access
Andreas Mager2017-01-19 20:53:20 +01:00
504ac3055e
SubscriptionsStoreTest: whitespaces removed
Andreas Mager2017-01-19 20:52:16 +01:00
1c64186a00
Switched from Moquette's MQTT codec to Netty's MQTT codec ones
andsel2017-01-28 10:06:30 +01:00
07093ab0cb
Merge pull request #255 from AndreasMager/subscription-store-performance-test
Andrea Selva2017-01-28 15:46:38 +01:00
43b73501d7
PerformanceTest added for the SubscriptionsStore#matches
Andreas Mager2017-01-23 14:26:59 +01:00
e3c4360b62
Merge pull request #256 from AndreasMager/memory-session-store-boost
Andrea Selva2017-01-26 21:43:16 +01:00
01e7465f0c
MemorySessionStore: HashMap replaced by Map Interface
Andreas Mager2017-01-26 21:42:21 +01:00
6f7011c9f2
MemorySessionStore#m_persistentSubscriptions: Map Layout changed
Andreas Mager2017-01-23 18:03:20 +01:00
716c9ac0a0
Minor on logging, removed ugly if(isDebugEnabled()) for debug logging, kept only when the toString generation could potentially take long, and trasformed in tracing logs. Moved Error to Warn log level
andsel2017-01-18 23:27:02 +01:00
e295fcf9f2
Updated the list of contributors (not hexaustive)
andsel2017-01-18 23:25:53 +01:00
60c28f1ecb
Minor, just setted autogenerated random serialVersionUID instead of bad 1L
andsel2017-01-18 22:46:04 +01:00
9b164019ec
Fixed bad merge lines
andsel2017-01-18 22:35:23 +01:00
e777c54414
Merge branch 'Sofia2-master' with lots of improvements in dispatching events to interceptors
andsel2017-01-18 22:26:35 +01:00
97ddd1cd8b
Merge branch Sofia2 with lot of improvements
andsel2017-01-17 21:40:59 +01:00
ebdee0bb44
Make netty channel timeout configurable
Luis Barrios2017-01-15 14:40:08 +01:00
d4f977c0af
Make several low-level netty parameters configurable
Luis Barrios2017-01-13 11:01:35 +01:00
e7f26e402b
Include message and bytes metrics in the status of the active MQTT connections.
Luis Barrios2017-01-12 17:25:46 +01:00
d7d97a74d8
Add simple connection management capabilities to the broker. An external codebase will now be able to monitor and close the opened connections.
Luis Barrios2017-01-12 17:00:18 +01:00
1f1bfff4f7
Improve logging: - When a MQTT message is received, we should only log it in debug level. It is better to log the actions performed in the protocol processor at the info level (they are more meaningful). - Capture and log every exception raised while processing the message (including RuntimeExceptions).
Luis Barrios2017-01-11 15:33:23 +01:00
4512eeff23
Add log traces to MoquetteIdleTimeoutHandler and to NettyAcceptor. Fix NettyAcceptor shutdown: when the event loops take too long to stop, an IllegalStateException is raised. This leads to leaks, and prevents other parts of the broker to be shut down properly.
Luis Barrios2017-01-11 15:26:30 +01:00
e7ba2aee8e
Add debug log traces to AutoFlushHandler
Luis Barrios2017-01-11 15:06:03 +01:00
4ae6893f81
Improve logging of ResourceLoaderConfig
Luis Barrios2017-01-11 14:58:35 +01:00
1592a0676c
Improve logging of package io.moquette.server.config
Luis Barrios2017-01-11 14:56:16 +01:00
7666a1634a
Handle publish errors properly in PersistentQueueMessageSender. Create a connection descriptor store to handle all the message delivery errors and to avoid duplicating error handling code (i.e. the connection descriptors map is null, the connection descriptor does not exist, etc).
Luis Barrios2017-01-11 11:23:24 +01:00
63d106e414
Improve log traces of the subscriptions store. Make sure that no "raw" RuntimeExceptions are thrown, and include proper log traces before any exception is raised.
Luis Barrios2017-01-11 10:42:43 +01:00
8481fada93
Remove unused imports, raw types and some deprecated method calls..
Luis Barrios2017-01-11 10:16:58 +01:00
aea4f3709a
Make the size of the BrokerInterceptor thread pool configurable.
Luis Barrios2017-01-10 17:23:15 +01:00
46fcdc0894
Allow InterceptHandler to specify the messages they can intercept. This allows us to improve the performance of the broker interceptor, and will make log traces more clear. - Add methods to return an unique identifier and the supported message types at the InterceptHandler interface. - Include a default implementation of the new methods in the AbstractInterceptHandler. By default, all the interceptors will be able to handle any message (same as before). - Comment verifyNoMoreInteractions() call from the BrokerInterceptorTest.testAddAndRemoveInterceptHandler(). The removeInterceptHandler() method of the broker interceptor polls the InterceptHandler, so an interaction will always exist after the call to onSubscribe().
Luis Barrios2017-01-10 17:06:13 +01:00
1d75a25aa3
Update .gitignore file to exclude /osgi_test/target/ and /perf/target/
Luis Barrios2017-01-10 14:31:17 +01:00
0786de54b2
Update .gitignore file to exclude /osgi_test/target/ and /perf/target/
Luis Barrios2017-01-10 12:39:46 +01:00
ac8a11fefa
Removed the reference counter for stored messages
andsel2017-01-09 21:59:09 +01:00
081631242f
Removed old 'map based queues' to use persistent BlockingQueues from MapDB
andsel2017-01-09 21:53:26 +01:00
3f0ab75efb
Updated copiright to year 2017
andsel2017-01-04 14:37:29 +01:00
480e36579c
Fixed NPE exception of inflight ACK because the publisher with clean=true removed all messages, also the published from message store
andsel2017-01-04 11:17:30 +01:00
4029ddd2b1
Removed ClasspathConfig to use the ClasspathResourceLoader and basic ResourceLoaderConfig
andsel2016-12-31 19:21:12 +01:00
0f41c9ea08
Changed default behaviour to use persistent sotre, now use in memory as default and not FS moquette.mapdb (Fix issue #242)
andsel2016-12-31 16:06:18 +01:00
a146ffb30e
Minor changes to distribution's log4j config file to include the messagelog logger
andsel2016-12-31 15:28:06 +01:00
ac93f04dde
Refactored config file resource loading to make it easier to load config files from class path when embedding.
Neeme Praks2016-12-26 15:59:19 +02:00