Andreas Mager
99fea68bb8
broker/pom: code formatter used
2017-02-01 15:00:27 +01:00
Andrea Selva
ff4c5dff3b
Merge pull request #261 from AndreasMager/adding-assertj
2017-02-01 13:39:32 +01:00
Andreas Mager
94475d2b04
ProtocolProcessorTest#testCleanRetainedStoreAfterAQoS0AndRetainedTrue:
...
check added if test is in the correct state
2017-01-30 16:07:16 +01:00
Andreas Mager
f25af642b0
SubscriptionsStoreTest: containsExactlyInAnyOrder used for matches
2017-01-30 15:51:50 +01:00
Andreas Mager
c5b7fd52c5
SubscriptionsStoreTest: assertj used for assertions
2017-01-30 15:51:50 +01:00
Andreas Mager
f460d6a230
SubscriptionsStoreTest: classname used for static access
2017-01-30 15:50:42 +01:00
Andreas Mager
504ac3055e
SubscriptionsStoreTest: whitespaces removed
2017-01-30 15:50:42 +01:00
Andreas Mager
1bc4ff4581
pom: assertj added to test deps
2017-01-30 15:48:53 +01:00
andsel
1c64186a00
Switched from Moquette's MQTT codec to Netty's MQTT codec ones
2017-01-28 15:59:44 +01:00
Andreas Mager
43b73501d7
PerformanceTest added for the SubscriptionsStore#matches
2017-01-27 12:54:36 +01:00
Andreas Mager
01e7465f0c
MemorySessionStore: HashMap replaced by Map Interface
2017-01-26 21:42:21 +01:00
Andreas Mager
6f7011c9f2
MemorySessionStore#m_persistentSubscriptions: Map Layout changed
...
If one clientid subscribes a lot of topics the old implementation
struggles with the for loops
2017-01-23 18:37:43 +01:00
andsel
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
2017-01-18 23:28:11 +01:00
andsel
60c28f1ecb
Minor, just setted autogenerated random serialVersionUID instead of bad 1L
2017-01-18 22:46:04 +01:00
andsel
97ddd1cd8b
Merge branch Sofia2 with lot of improvements
2017-01-17 21:40:59 +01:00
Luis Barrios
ebdee0bb44
Make netty channel timeout configurable
2017-01-15 14:40:08 +01:00
Luis Barrios
d4f977c0af
Make several low-level netty parameters configurable
2017-01-13 11:01:35 +01:00
Luis Barrios
aed1a80532
Update version to 0.9.1.sofia
2017-01-12 17:27:23 +01:00
Luis Barrios
e7f26e402b
Include message and bytes metrics in the status of the active MQTT connections.
2017-01-12 17:25:46 +01:00
Luis Barrios
d7d97a74d8
Add simple connection management capabilities to the broker. An external codebase will now be able to monitor and close the opened connections.
2017-01-12 17:00:18 +01:00
Luis Barrios
964efd341e
Add log traces
2017-01-12 13:11:08 +01:00
Luis Barrios
03ae299e36
Add log traces
2017-01-12 12:35:51 +01:00
andsel
a7b8c07d1a
Bumped dev cycle for 0.10
2017-01-11 22:21:03 +01:00
andsel
4162aae3a0
Bumped version 0.9
2017-01-11 22:06:24 +01:00
Luis Barrios
8b3f158a43
Improve logging. Remove duplicated code from QosPublishHandlers.
2017-01-11 18:42:30 +01:00
Luis Barrios
aac5b37485
Improve logging
2017-01-11 16:36:45 +01:00
Luis Barrios
953e038223
Improve logging
2017-01-11 16:04:23 +01:00
Luis Barrios
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).
2017-01-11 15:33:23 +01:00
Luis Barrios
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.
2017-01-11 15:26:30 +01:00
Luis Barrios
e7ba2aee8e
Add debug log traces to AutoFlushHandler
2017-01-11 15:06:03 +01:00
Luis Barrios
4ae6893f81
Improve logging of ResourceLoaderConfig
2017-01-11 14:58:35 +01:00
Luis Barrios
1592a0676c
Improve logging of package io.moquette.server.config
2017-01-11 14:56:16 +01:00
Luis Barrios
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).
2017-01-11 11:23:24 +01:00
Luis Barrios
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.
2017-01-11 10:42:43 +01:00
Luis Barrios
8481fada93
Remove unused imports, raw types and some deprecated method calls..
2017-01-11 10:16:58 +01:00
Luis Barrios
933763486c
Remove rawtypes
2017-01-11 09:05:30 +01:00
Luis Barrios
aea4f3709a
Make the size of the BrokerInterceptor thread pool configurable.
2017-01-10 17:23:15 +01:00
Luis Barrios
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().
2017-01-10 17:06:13 +01:00
andsel
ac8a11fefa
Removed the reference counter for stored messages
2017-01-09 21:59:09 +01:00
andsel
081631242f
Removed old 'map based queues' to use persistent BlockingQueues from MapDB
2017-01-09 21:53:26 +01:00
andsel
3f0ab75efb
Updated copiright to year 2017
2017-01-04 14:37:29 +01:00
andsel
12a3c65c9b
Fixed javadoc (issue #164 )
2017-01-04 12:52:42 +01:00
andsel
480e36579c
Fixed NPE exception of inflight ACK because the publisher with clean=true removed all messages, also the published from message store
2017-01-04 11:17:30 +01:00
andsel
2c43c74fe3
Added gracefull handling when client cut TCP connection
2017-01-04 11:13:58 +01:00
andsel
4029ddd2b1
Removed ClasspathConfig to use the ClasspathResourceLoader and basic ResourceLoaderConfig
...
Removed FilesystemConfig to use the FileResourceLoader and basic ResourceLoaderConfig
2016-12-31 19:30:41 +01:00
andsel
0f41c9ea08
Changed default behaviour to use persistent sotre, now use in memory as default and not FS moquette.mapdb (Fix issue #242 )
2016-12-31 16:06:18 +01:00
andsel
a146ffb30e
Minor changes to distribution's log4j config file to include the messagelog logger
2016-12-31 15:28:06 +01:00
Neeme Praks
ac93f04dde
Refactored config file resource loading to make it easier to load config files from class path when embedding.
2016-12-31 11:46:32 +01:00
andsel
dd61be59b3
Switched from http encoder and decoder to codec, and fixed logger to check message type before log
2016-12-30 00:33:10 +01:00
andsel
ac2086a0e0
Fixed failing test due to more strict endpoint check from Netty 4.1.x
2016-12-30 00:33:10 +01:00