use of com.hazelcast.client.impl.ClientImpl in project hazelcast by hazelcast.
the class ClientClusterServiceImpl method getLocalClient.
@Override
public Client getLocalClient() {
Address address = getOwnerConnectionAddress();
final ClientConnectionManager cm = client.getConnectionManager();
final ClientConnection connection = (ClientConnection) cm.getConnection(address);
InetSocketAddress inetSocketAddress = connection != null ? connection.getLocalSocketAddress() : null;
final String uuid = getPrincipal().getUuid();
return new ClientImpl(uuid, inetSocketAddress);
}
Aggregations