simple java to distribute jobs from one master to a group of slaves