Latest java code. everything working

Exhibited variant 1.
Exhibited variant 2.
Implemented dropping of packets.
Implemented queue for cloud allocation.