public void finish() {
   synchronized (monitorAgent) {
     monitorAgent.finish();
   }
   senderReceiver.sendAsync(
       new Message(Type.DEREG, location, PhysicalLocation.coordinatorLocation(), null));
   senderReceiver.shutdown();
 }
 private Message createRegistrationMessage() {
   Tuple body = new DefaultTuple();
   return new Message(
       Message.Type.REG, logicalLocation, PhysicalLocation.coordinatorLocation(), body);
 }