Commit Graph
100 Commits
Author SHA1 Message Date
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
andrea 693f498d05 Moved testUnsubscribe_do_not_notify_anymore_new_session from custome API to Fuse's 2013-08-28 22:24:50 +02:00
andrea f46cce493f Moved testRetain_maintainMessage_againstClientDestruction from custome API to Fuse's 2013-08-28 22:15:11 +02:00
andrea 8c04526c62 Moved testCleanSession_maintainClientSubscriptions_withServerRestart from custome API to Fuse's 2013-08-28 22:04:45 +02:00
andrea cdf76080c5 Moved testCleanSession_correctlyClientSubscriptions from custome API to Fuse's 2013-08-28 21:50:19 +02:00
andrea bc513dcba9 Moved testCleanSession_maintainClientSubscriptions_againstClientDestruction from custome API to Fuse's 2013-08-28 21:40:45 +02:00
andrea 016d7e8926 Moved testCleanSession_maintainClientSubscriptions from custome API to Fuse's 2013-08-28 20:14:55 +02:00
andrea 2cc1878cd6 Moved Fuse client source from asynch to sycnh API 2013-08-28 20:12:09 +02:00
andrea 81b4c3fb8d Missed in previous bump 2013-08-28 18:31:51 +02:00
andrea 76a889f160 Bumped version 0.2 2013-08-28 18:18:28 +02:00
andrea a8758b7f04 Fixed interdependency failure between SimpleMessagingTest and ServerIntegrationTest 2013-08-28 18:14:51 +02:00
andrea 2259c115c4 Introduced BFS utility method to be used to do a deep clean in subscriptions tree, and to implement an utility tree dump method 2013-08-28 18:14:09 +02:00
andrea 54af962ea3 Introduced practical toString method 2013-08-28 17:56:06 +02:00
andrea 53cb3dda73 Modified Server class to be embedded, fixes #10 and #11 2013-08-28 10:36:28 +02:00
andrea a010371a8b Removed unused method 2013-08-28 10:26:23 +02:00
andrea afcc20f483 Added unit test and fix for issue #12, due to bad topic in publish message after a late subscription and messages retained in DB. 2013-08-28 10:26:02 +02:00
andrea b1ee353ea8 Minor change, moved the test files into correct folders 2013-08-27 18:03:52 +02:00
andrea 4037a0c0b0 Minor change, minor readability improve 2013-08-27 16:24:11 +02:00
andrea 87791963b6 Defined constant for client's number of messages published 2012-08-29 21:46:47 +02:00
andrea 323811adb2 Added outbound event queue to be handled by Notifier stage 2012-08-29 21:20:36 +02:00
andrea bb3e8170d5 Added log 2012-08-29 14:40:37 +02:00
andrea f2220e664a Removed commented code from client 2012-08-28 11:42:34 +02:00