Commit Graph
100 Commits
Author SHA1 Message Date
andrea ffeb794303 Enabled overriding of subscription from same client to same topic with different QoS, the latest wins 2013-12-26 15:07:15 +01:00
andrea 06eb509bc3 Minor change, added coverage plugin 2013-12-26 12:53:48 +01:00
andrea 6428d39ce5 Forced some delay in server shutdown to give time the ProcessorEvent to shutdown correclty (it's asynch operation) 2013-12-26 12:49:38 +01:00
andrea 7695c14598 Minor change added logging 2013-12-26 12:48:35 +01:00
andrea d259d7c5e7 Missed in 2 commits ago 2013-12-26 11:46:34 +01:00
andrea 42311b2c54 Minor change, condensed debug logging 2013-12-26 11:45:52 +01:00
andrea a020d83c8a Added a test to check the cleaning of server status in start/sop cycles (usually used in integration tests itself. 2013-12-26 11:43:53 +01:00
andrea 9639639420 Minor change, introduced a latch to fix threading problem in test unit 2013-12-26 10:59:09 +01:00
andrea d59f5b9473 Minor change, introduced a latch to fix threading problem in test unit 2013-12-22 17:41:13 +01:00
andrea 7e3b6a841f Fixed issue #18, bad pubblishing of QoS0 message to inactive ( not connected) clients 2013-12-22 17:27:43 +01:00
andrea ee3aab938a Minor change, augmented logging quality 2013-12-14 14:05:05 +01:00
andrea 43ce8d6372 Fixed a bug in store remove subscription that doesn't check the clientID but just the topic match 2013-12-14 14:03:49 +01:00
andrea 0ac76e3452 Minor change, redefined toString for ConnectionDescriptor 2013-12-14 12:33:38 +01:00
andrea a50cabc572 In test, moved publisher and subscriber from local variables to fields 2013-12-14 10:01:14 +01:00
andrea 072c4fef86 Fixed issue #16 2013-11-27 18:48:57 +01:00
andrea 4226f4134f Added management of PUBACK messages in return of re-publish messages (after a cleanSession = false rebooted client) to clean sequentially the already dispatched messages 2013-11-27 18:47:34 +01:00
andrea 6c3deb392d Re-added FuseSource MQTT client because simplify certain testing use cases 2013-11-27 18:45:56 +01:00
andrea e9adffec54 Minor, added ByteBuffer to string conversion debug Utils 2013-11-27 18:44:42 +01:00
andrea 3ce82c5150 Minor, removed unused import 2013-11-27 15:46:07 +01:00
andrea 233a466dd6 Fixed ghost error due to bad timing in the test 2013-11-27 11:21:04 +01:00
andrea bd3a1f6c4d Changed the use of string concatenation of String.format in favor of formatted logging methods 2013-11-27 10:43:08 +01:00
andrea 215b85c407 Added publisher and subscriber using mqtt-client lib from FuseSource 2013-11-26 18:46:54 +01:00
andrea f592db516f Fixed the switching from byte[] to ByteBuffer on server storage 2013-11-26 16:21:01 +01:00
andrea d9d2d13d0d Adapted Netty parser to use ByteBuffer instead of byte[] 2013-11-26 13:50:50 +01:00
andrea e9bb34898b Adapted Netty parser to use ByteBuffer instead of byte[] 2013-11-26 12:25:48 +01:00
andrea 101a1060e7 Minor change, removed the logging of contents 2013-11-25 18:56:03 +01:00
andrea f649ebff24 Fixed issue #15, missed notification of publish due to bad re-activation on a nested topic tree. 2013-11-25 18:53:50 +01:00
andrea d4cc804624 Added handling of dirty connection close from client, without an DISCONNECT message 2013-11-25 18:51:35 +01:00
andrea 56ad66c04f Minor change, improved a bit logging messages quality 2013-11-25 17:13:39 +01:00
andrea 9a27304a9e Minor change, improved a bit logging messages quality 2013-11-25 12:17:31 +01:00
andrea a1b1417acb Initial try to remove buffer copies 2013-11-25 09:34:36 +01:00
andrea 056ab10121 Re-enabled commented tests 2013-11-24 14:44:23 +01:00
andrea 9cec0af484 Removed the Mina parser 2013-11-24 11:52:10 +01:00
andrea 1fa810362f Removed dependency on Mina IO framework 2013-11-24 11:51:15 +01:00
andrea 817ca8e176 Added output reactor to isolate the writing of messages 2013-11-14 16:43:03 +01:00
andrea 49d1b2c948 Added tests suite used by Roger Light to check SubscriptionStore.matchTopics 2013-11-06 13:37:23 +01:00
andrea 2c18ee92c7 Added tests suite used by Roger Light to check SubscriptionStore.matches 2013-11-06 12:35:10 +01:00
andrea 136b7e25c3 Set up for next development cycle (version 0.4) 2013-11-06 10:44:29 +01:00
andrea ac5fb3c9ac Added Netty connection stuff for the I/O 2013-09-15 17:18:26 +02:00
andrea 63842088a4 Minor change, implemented trivial toString() 2013-09-15 16:17:03 +02:00
andrea 3ce369ab43 Fixed bug in the calculation of payload site in publish decoder due to bad startPos recording 2013-09-15 15:31:09 +02:00
andrea 6269330364 Minor change, reorganized imports 2013-09-14 15:06:44 +02:00
andrea 466e0946d6 Given public visibility to MQTT Endoer/Decoer constructors to be used from the broker 2013-09-14 15:06:19 +02:00
andrea 51f0ba7e1c Added message type to every message 2013-09-14 12:57:06 +02:00
andrea 30e165c8ce Separated all mina related stuff in classes to avoid main protocol loop to depend on mina related stuff 2013-09-13 12:44:53 +02:00
andrea 70befbcd77 Fixed version of parent pom 2013-09-13 11:50:11 +02:00
andrea 5382a9c467 Removed old unused client lib 2013-09-13 11:33:53 +02:00
andrea 8ade5f68aa Extracted front MINA connector 2013-09-13 10:24:04 +02:00
andrea 6fb4682d8b Added encode/decode for PubRel message 2013-09-12 17:14:21 +02:00
andrea 47bdb27261 Added encode/decode for PubRec message 2013-09-12 17:12:02 +02:00
andrea dcffda5c4f Added encode/decode for PubComp message 2013-09-12 17:08:20 +02:00
andrea fa8a12a6f2 Added encode/decode for UnsubAck message 2013-09-12 17:00:21 +02:00
andrea 3066cfdd04 Added encode/decode for PingResp message 2013-09-12 16:53:33 +02:00
andrea 3fa3705d55 Added encode/decode for PingReq message 2013-09-12 16:50:36 +02:00
andrea ef8f794b93 Added encode/decode for Disconnect message 2013-09-12 16:44:06 +02:00
andrea 52402536d9 Added encode/decode for Unsubscribe message 2013-09-12 16:28:51 +02:00
andrea daa637c557 Minor cleaned imports 2013-09-12 16:14:51 +02:00
andrea 58017f45a1 Minor cleaned imports 2013-09-12 16:01:40 +02:00
andrea 2c9858c261 Added encode/decode for SubAck message 2013-09-12 15:58:53 +02:00
andrea 9f2497e0f9 Minor cleaned imports 2013-09-12 15:17:42 +02:00
andrea c3f5a69d68 Added encode/decode for Subscribe message 2013-09-12 15:16:55 +02:00
andrea 1b1cc715be Added encode/decode for PubAck message 2013-09-12 14:45:04 +02:00
andrea facec04ac2 Minor cleaned imports 2013-09-12 14:30:25 +02:00
andrea 28b37f68ea Added encode/decode for Publish message 2013-09-12 12:38:31 +02:00
andrea 4dd633cef8 Minor cleaned imports 2013-09-12 12:11:10 +02:00
andrea 4335a566f1 Minor cleaned imports 2013-09-12 09:19:31 +02:00
andrea ecfc5e645a Minor cleaned imports 2013-09-11 17:54:47 +02:00
andrea 1baa16b8e3 Extracted a TestUtils method mockChannelHandler 2013-09-11 17:51:59 +02:00
andrea 93859d1a63 Added encode/decode for ConnAck message 2013-09-11 17:48:07 +02:00
andrea 22fe25da32 Introduced hierarchy for message encoders 2013-09-11 16:47:41 +02:00
andrea 6afaa46cf4 Moved PubCompMessage to protocol commons module 2013-09-11 16:33:16 +02:00
andrea 24e34278aa Introduced DemuxDecoder to root the hierarchy of all message decoders 2013-09-11 16:19:31 +02:00
andrea 103d772533 Minor changes 2013-09-11 15:44:15 +02:00
andrea 3f44eaee39 Added Connect encoder part 2013-09-11 15:42:00 +02:00
andrea 557c682a5e Ported all existing test for MINA ConnectDecoder to Netty's 2013-09-11 11:25:34 +02:00
andrea 2ee84797ba Introduced raw decoder for CONNECT messages 2013-09-11 11:06:53 +02:00
andrea 2886aa0bab Extracted common pojo messages definitions 2013-09-10 15:00:18 +02:00
andrea d9131b4b07 Added skeleton for Netty parser 2013-09-09 11:59:59 +02:00
andrea 23b4958592 Renamed parser to mina-parser 2013-09-09 11:04:43 +02:00
andrea 779a0a9d26 Minor fix, cleaned imports 2013-09-01 12:52:50 +02:00
andrea 78daf36418 Minor fix, cleaned imports 2013-08-30 19:21:55 +02:00
andrea 0694f28f32 Simplified APIs 2013-08-30 19:21:11 +02:00
andrea 2c11cade06 Removed a ping pong beteen the ProtocolProcessor and SimpleMessaging, avoid call method, send Event, receive Event e callback a method into ProcotolProcessor 2013-08-30 19:05:09 +02:00
andrea ff0139d809 Changed some methods visibility 2013-08-30 18:55:11 +02:00
andrea 2b7858de7c Minor change, cleaned imports 2013-08-30 18:10:41 +02:00
andrea e579180abf Moved MemoryStorageService from test to src 2013-08-30 18:10:12 +02:00
andrea 635d37112e Renamed DummyStorageService to MemoryStorageService 2013-08-30 18:09:24 +02:00
andrea 63333b11ad Completed the memory implementation of DummyStorageService 2013-08-30 18:08:06 +02:00
andrea d2554788ea Added memory implementation of DummyStorageService for the subscriptions part 2013-08-30 17:40:56 +02:00
andrea 22269ccfb1 Removed empty test case 2013-08-30 17:06:48 +02:00
andrea fb7c137a11 Moved processSubscribe into ProtocolProcessor 2013-08-30 17:06:15 +02:00
andrea dd4ca33ed0 Moved processPublish from SimpleMessaging 2013-08-30 16:14:50 +02:00
andrea 90e2277490 Moved processUnsubscribe into ProtocolProcessor 2013-08-30 15:00:51 +02:00
andrea b3293a031f Moved processDisconnect into ProtocolProcessor 2013-08-30 14:53:57 +02:00
andrea 353b70d6c7 Moved processPubComp into ProtocolProcessor 2013-08-30 13:28:55 +02:00
andrea e74f6d5655 Moved processPubRec into ProtocolProcessor 2013-08-30 13:24:53 +02:00
andrea 7d0cb70584 Moved processPubRel and processPubComp into ProtocolProcessor 2013-08-30 13:23:06 +02:00
andrea 82e998e939 Created ProtocolProcessor and moved into it the processConnect from SimpleMessaging 2013-08-30 13:06:52 +02:00
andrea 49de06e500 Moved assertions to RuntimeError to let error emerge in runtime when assertions are disabled 2013-08-30 10:46:15 +02:00
andrea 0cf31ae364 Moved testUnsubscribe_do_not_notify_anymore_same_session from custome API to Fuse's 2013-08-28 22:27:41 +02:00