117118119120121122123124125126127
if ( cachedMaster != null ) { MasterClient client = (MasterClient) cachedMaster.first(); if ( client != null ) { client.shutdown(); } cachedMaster = Pair.<Master, Machine>of( null, Machine.NO_MACHINE ); } }