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() |
Clones the object and returns the newly created clone of the object.
|
java.lang.String |
getAppName() |
Gets Application's Name.
|
java.lang.String |
getClientID() |
Gets client id.
|
int |
getClientVersion() |
Gets the client version of the cache client.
|
int |
getCores() |
Get 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 Application's Name.
|
void |
setClientID(java.lang.String clientID) |
Sets 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) |
TryParseLegacyClientId parse the Client id and get 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 clientpublic void setAppName(java.lang.String appName)
appName
- The name to be given to application.public java.lang.String getAppName()
public java.lang.String getClientID()
public void setClientID(java.lang.String clientID)
clientID
- Unique id of 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
- 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