@InterfaceAudience.Private final class ClientIdGenerator extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
ClientIdGenerator() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
generateClientId()
Returns a unique ID incorporating IP address, PID, TID and timer.
|
static byte[] |
getIpAddressBytes()
Returns Some IPv4/IPv6 address available on the current machine that is up, not virtual and not
a loopback address.
|
static Long |
getPid()
Returns PID of the current process, if it can be extracted from JVM name, or null.
|
private static final org.slf4j.Logger LOG
private ClientIdGenerator()
public static byte[] generateClientId()
public static Long getPid()
public static byte[] getIpAddressBytes()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.