@Override public void onMessage(final ControlMessage.Message message) { try { switch (message.getType()) { case BlockStateChanged: final ControlMessage.BlockStateChangedMsg blockStateChangedMsg = message.getBlockStateChangedMsg(); final String blockId = blockStateChangedMsg.getBlockId(); onBlockStateChanged(blockId, convertBlockState(blockStateChangedMsg.getState()), blockStateChangedMsg.getLocation()); break; default: throw new IllegalMessageException( new Exception("This message should not be received by " + BlockManagerMaster.class.getName() + ":" + message.getType())); } } catch (final Exception e) { throw new RuntimeException(e); } }
@Override public void onMessage(final ControlMessage.Message message) { try { switch (message.getType()) { case BlockStateChanged: final ControlMessage.BlockStateChangedMsg blockStateChangedMsg = message.getBlockStateChangedMsg(); final String blockId = blockStateChangedMsg.getBlockId(); onBlockStateChanged(blockId, convertBlockState(blockStateChangedMsg.getState()), blockStateChangedMsg.getLocation()); break; default: throw new IllegalMessageException( new Exception("This message should not be received by " + BlockManagerMaster.class.getName() + ":" + message.getType())); } } catch (final Exception e) { throw new RuntimeException(e); } }
/** * <code>required string location = 4;</code> * * <pre> * The location of the block (e.g., executor id or remote store). * </pre> */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000008); location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /**
/** * <code>required string location = 4;</code> * * <pre> * The location of the block (e.g., executor id or remote store). * </pre> */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000008); location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /**