throw new MasterNotRunningException(msg);
}
InetSocketAddress isa = new InetSocketAddress(sn.getHostname(),
sn.getPort());
MasterProtocol tryMaster = (MasterProtocol) WaspRPC.getProxy(
masterProtocolState.protocolClass, masterProtocolState.version,
isa, this.conf, this.rpcTimeout);
if (tryMaster.isMasterRunning(null,
RequestConverter.buildIsMasterRunningRequest())
.getIsMasterRunning()) {
return tryMaster;
} else {
WaspRPC.stopProxy(tryMaster);