Tags · SixsquareDSA/DistributedSystems · GitHub
Skip to content

Tags: SixsquareDSA/DistributedSystems

Tags

v1.1

Toggle v1.1's commit message
Added first deliverable as found in eclass. Didn't merge with master …

…cause I haven't seen the changes yet and I didn't want to mess anything up.

v1.0

Toggle v1.0's commit message
WORKING CODE.

Changes:
- Added ERROR in enum MessageType to handle errors in the future (ex. Database is down).
- Created new class NetworkHandler and now using that instead of Network.sendRequest.
Reason is cause I wanted to separate the reading and writing.
Also suspecting another problem with Network.sendRequest: When you're trying to ACK
you don't want to read back, so you can't use it. And in cases where you already have
a Socket (ex. serverSocket.accept()) you have to take it as it is.
- Made Checkin implement Serializable for Network transmission.
- Changed from Collections.toList() to Collections.toCollection(ArrayList::new)
to have more control over what is returned, make sure the types after being
serialized are the same.

Info:
At first I thought I had a bug cause all the the data were going to the first
mapper. Then after looking the data, I realised the area I was giving was too big.

Latitude Range: [40.55, 40.98]
Longitude Range: [-74.27, -73.68]

So a good suggested big set of data I tried is:
LowerLeftPoint = 40.55,-74.27
TopRightPoint = 40.98,-73.68
DateTimeStart = 0000-01-01 00:00:00  (birth of the universe)
DateTimeEnd = 2022-01-01 00:00:00    (when we'll get a degree)