Lines Matching refs:encodedMsg
60 * @param encodedMsg The byte array containing the encoded form of the
65 public ChangeStatusMsg(byte[] encodedMsg) throws DataFormatException
73 if (encodedMsg[0] != ReplicationMsg.MSG_TYPE_CHANGE_STATUS)
81 requestedStatus = ServerStatus.valueOf(encodedMsg[1]);
84 newStatus = ServerStatus.valueOf(encodedMsg[2]);
101 byte[] encodedMsg = new byte[3];
104 encodedMsg[0] = ReplicationMsg.MSG_TYPE_CHANGE_STATUS;
107 encodedMsg[1] = requestedStatus.getValue();
110 encodedMsg[2] = newStatus.getValue();
112 return encodedMsg;