public static byte[] serializeShortAndLong(Short shortValue, Long longValue) {
    ByteBuffer buffer = ByteBuffer.allocate(Short.SIZE / Byte.SIZE + Long.SIZE / Byte.SIZE);
    buffer.putShort(shortValue);
    buffer.putLong(longValue);
    return buffer.array();
  }
Serialize and return the arguments.
@param shortValue a Short value.
@param longValue a Long value.
@return the serialized byte array.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapUtils.java