java.lang.Cloneable
public class ClientInfo
extends java.lang.Object
implements java.lang.Cloneable
Constructor | Description |
---|---|
ClientInfo() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Creates a new object that is a copy of the current instance.
|
java.lang.String |
getAppName() |
Gets the application's name.
|
java.lang.String |
getClientID() |
Gets the client ID.
|
int |
getClientVersion() |
Gets the client version of the cache client.
|
int |
getCores() |
Gets the available cores of the cache client.
|
java.net.InetAddress |
getiPAddress() |
Gets the IP Address of the cache client.
|
static java.lang.String |
getLegacyClientID(ClientInfo info) |
GetLegacyClientId returns the client ID in string.
|
java.lang.String |
getMacAddress() |
Gets the Mac address of the cache client.
|
java.lang.String |
getMachineName() |
Gets the machine name of the cache client.
|
int |
getProcessID() |
Gets the process ID of the cache client.
|
ConnectivityStatus |
getStatus() |
Gets the connectivity status of the cache client.
|
void |
setAppName(java.lang.String appName) |
Sets the application's name.
|
void |
setClientID(java.lang.String clientID) |
Sets the client ID.
|
void |
setClientVersion(int clientVersion) |
Sets the client version of the cache client.
|
void |
setCores(int cores) |
Sets the available cores of the cache client.
|
void |
setiPAddress(java.net.InetAddress iPAddress) |
Sets the IP Address of the cache client.
|
void |
setMacAddress(java.lang.String macAddress) |
Sets the Mac Address of the cache client.
|
void |
setMachineName(java.lang.String machineName) |
Sets the machine name of the cache client.
|
void |
setProcessID(int processID) |
Sets the process ID of the cache client.
|
void |
setStatus(ConnectivityStatus status) |
Sets the connectivity status of the cache client.
|
java.lang.String |
toString() |
Converts Client Info to string, contains client ID, application name, process ID, machine name and address.
|
static ClientInfo |
tryParseLegacyClientID(java.lang.String clientId) |
It parses the client ID and gets information about the client ID in the form of ClientInfo.
|
public static java.lang.String getLegacyClientID(ClientInfo info)
info
- public static ClientInfo tryParseLegacyClientID(java.lang.String clientId)
clientId
- Client ID of the client.public void setAppName(java.lang.String appName)
appName
- The name to be given to the application.public java.lang.String getAppName()
public java.lang.String getClientID()
public void setClientID(java.lang.String clientID)
clientID
- Unique ID of the client.public java.net.InetAddress getiPAddress()
public void setiPAddress(java.net.InetAddress iPAddress)
iPAddress
- The IP Address of the client.public void setMacAddress(java.lang.String macAddress)
macAddress
- The Mac Address of the client.public int getCores()
public void setCores(int cores)
cores
- Sets the available cores of the cache client.public int getProcessID()
public void setProcessID(int processID)
processID
- The process ID of the cache client.public java.lang.String getMachineName()
public void setMachineName(java.lang.String machineName)
machineName
- The machine name of the cache client.public java.lang.String getMacAddress()
public ConnectivityStatus getStatus()
public void setStatus(ConnectivityStatus status)
status
- The connectivity status of the cache client.public int getClientVersion()
public void setClientVersion(int clientVersion)
clientVersion
- The client version of the cache client.public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.Object clone()
clone
in class java.lang.Object