/** * Serialize the write proxy identifier to string. * * @return serialized write proxy identifier. */ public String serialize() { return toLockId(socketAddress, shard); }
@Override public String toString() { return toLockId(socketAddress, shard); }
int shard = serverConf.getServerShardId(); int numThreads = serverConf.getServerThreads(); this.clientId = DLSocketAddress.toLockId(DLSocketAddress.getSocketAddress(serverPort), shard); String allocatorPoolName = String.format("allocator_%04d_%010d", serverRegionId, shard); dlConf.setLedgerAllocatorPoolName(allocatorPoolName);
/** * Serialize the write proxy identifier to string. * * @return serialized write proxy identifier. */ public String serialize() { return toLockId(socketAddress, shard); }
@Override public String toString() { return toLockId(socketAddress, shard); }