public void readFrom(StreamInput in) throws IOException {
  nodeId=in.readOptionalString();
  state=State.fromValue(in.readByte());
  reason=in.readOptionalString();
}

public void readFrom ( StreamInput in ) throws IOException { nodeId = in . readOptionalString ( ) ; state = State . fromValue ( in . readByte ( ) ) ; reason = in . readOptionalString ( ) ; }
reads restore status from stream input
