A master slave file sync implementation in java