@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); } }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.getDefaultInstance()) return this; if (other.hasExecutorId()) { bitField0_ |= 0x00000001; executorId_ = other.executorId_; onChanged(); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasLocation()) { bitField0_ |= 0x00000008; location_ = other.location_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.getDefaultInstance()) return this; if (other.hasExecutorId()) { bitField0_ |= 0x00000001; executorId_ = other.executorId_; onChanged(); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasLocation()) { bitField0_ |= 0x00000008; location_ = other.location_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }