summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-01-18Refactor broadcast operations.Kjetil Ørbekk
– Add handling of client errors.
2012-01-18Refactor Broadcaster.Kjetil Ørbekk
Take a client url instead of a client parameter, to handle error conditions.
2012-01-17Begin error handling.Kjetil Ørbekk
– Declare thrown exceptions in services. – Use try {} blocks when communicating with services.
2012-01-17Add timeout to network operations.Kjetil Ørbekk
2012-01-17Fix revision update.Kjetil Ørbekk
Change State to take the *new* revision when updating.
2012-01-17Reject old state updates.Kjetil Ørbekk
Only accept updates from master if revision >= currentRevision. Client must clear state before joining network.
2012-01-17Update android client.Kjetil Ørbekk
– Use the SameClient code from same. – Update dependency. – Remove PingServer.
2012-01-17Change test clasess that were moved to main.Kjetil Ørbekk
Remove junit annotations.
2012-01-16Remove old SameService code.Kjetil Ørbekk
2012-01-16Fix full state update to new clients.Kjetil Ørbekk
2012-01-16Fix network joining.Kjetil Ørbekk
Prevent infinite loop in master thread.
2012-01-16Change joinNetworkRequest.Kjetil Ørbekk
Remove networkName parameter to reduce the necessary information to join a network.
2012-01-16Fix ping discovery.Kjetil Ørbekk
2012-01-16Add ClientApp – a server hosting a ClientService.Kjetil Ørbekk
2012-01-16Fix URL handling in RpcHandler.Kjetil Ørbekk
Report http://ip:port/ as URL. Removes SameService.json part.
2012-01-16Add MasterApp – a MasterService server.Kjetil Ørbekk
2012-01-16Change Broadcaster factory method.Kjetil Ørbekk
2012-01-16Implement updateStateRequest().Kjetil Ørbekk
– Verify that states are synchronized to all clients.
2012-01-16Fix failing test.Kjetil Ørbekk
Add equals() to State.
2012-01-16Send state to clients.Kjetil Ørbekk
– Adds failing test - need to compare states of master and client.
2012-01-16Add assert in test of Master.Kjetil Ørbekk
2012-01-16Add failing master test.Kjetil Ørbekk
Fails because client implementation is not finished.
2012-01-16Add ClientServiceImpl class.Kjetil Ørbekk
2012-01-16Fix failing test.Kjetil Ørbekk
Uses test component to avoid NullPointerException.
2012-01-16Add TestConnectionManager.Kjetil Ørbekk
2012-01-15Add TestBroadcaster.Kjetil Ørbekk
TestBroadcaster implements a single-threaded broadcaster suitable for testing.
2012-01-15Make Broadcaster testable.Kjetil Ørbekk
2012-01-15Move old SameService files out of the way.Kjetil Ørbekk
2012-01-15Add broadcasting from master.Kjetil Ørbekk
2012-01-15Change ConnectionManager.Kjetil Ørbekk
Support Client and Master connections.
2012-01-15Remove SameState class.Kjetil Ørbekk
This commit doesn't delete the file, but comments out all the code, as it doesn't compile anymore.
2012-01-15Switch parameter order for consistency.Kjetil Ørbekk
2012-01-13Bring back worker thread.Kjetil Ørbekk
:(
2012-01-13Maintain a set of recently updated components in State.Kjetil Ørbekk
2012-01-13Add support for JSON state.Kjetil Ørbekk
Use Jackson for serialization and deserialization of JSON objects.
2012-01-13Add new Client and Master interfaces.Kjetil Ørbekk
Begin implementing Master interface.
2012-01-13New object model in State.Kjetil Ørbekk
– Currently mixed with old code. TODO: Remove old code.
2012-01-13Finish refactoring.Kjetil Ørbekk
Remove TODO.Refactoring.
2012-01-13Refactoring.Kjetil Ørbekk
Rename com.orbekk.{rpc → same}.
2012-01-13Rename projects.Kjetil Ørbekk
– jsonrpc → same – master → same-android
2012-01-13Remove unused imports.Kjetil Ørbekk
2012-01-11Use State class to hold the state.Kjetil Ørbekk
2012-01-11Add refactoring TODO.Kjetil Ørbekk
2012-01-11Improve SameStateTest.Kjetil Ørbekk
- Assert on specific state.
2012-01-11Add setState() operation.Kjetil Ørbekk
- State is synchronized between all clients. - Failure handling remains poor.
2012-01-11Add participant synchronization.Kjetil Ørbekk
- No error handling in the protocol at the moment.
2012-01-11Add SameState test.Kjetil Ørbekk
Test network participation.
2012-01-11Implement master functionality.Kjetil Ørbekk
- The first participant in the network is considered the master. - Forward join requests to the master.
2012-01-11Improve participant handling.Kjetil Ørbekk
- Send correct list of participants in notifyParticipation(). - Add self to list of participants.
2012-01-11Add IP discovery.Kjetil Ørbekk
Before a client wants to join a network, it may send a HTTP "ping" request to a known participant. The participant will send a HTTP "pong" request in response, which informs the client of its IP address. The IP address of a client is automatically retrieved from the first HTTP request received by Jetty.