separate MapperMonitor source code to sending key to hanoi server.