/* * (non-Javadoc) * * @see com.basho.riak.client.raw.RawClient#getClientId() */ public byte[] getClientId() throws IOException { final String clientId = client.getClientID(); if (clientId != null) { return CharsetUtils.utf8StringToBytes(clientId); } else { throw new IOException("null clientId returned by client"); } }
/* * (non-Javadoc) * * @see com.basho.riak.client.raw.RawClient#generateClientId() */ public byte[] generateAndSetClientId() throws IOException { client.prepareClientID(); return CharsetUtils.utf8StringToBytes(client.getClientID()); }