if (isShutdown()) {
return;
}
MasterQueue queue = _protocol.publishMaster(this);
if (queue != null) {
UpgradeAction upgradeAction = UpgradeRegistry.findUpgradeAction(_protocol, Version.readFromJar());
if (upgradeAction != null) {
upgradeAction.upgrade(_protocol);
}
_protocol.setVersion(Version.readFromJar());
LOG.info(getMasterName() + " became master with " + queue.size() + " waiting master operations");
startNodeManagement();
MasterContext masterContext = new MasterContext(_protocol, this, _deployPolicy, queue);