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 the client application name.
|
java.lang.String |
getClientID() |
Gets the client unique id of the cache client.
|
int |
getClientVersion() |
Gets the version of the NCahce client.
|
int |
getCores() |
Gets the available cores of the cache client.
|
java.net.InetAddress |
getIPAddress() |
Gets the IPAddress of the cache client.
|
java.lang.String |
getMacAddress() |
Gets the MacAddress of the cache client.
|
java.lang.String |
getMachineName() |
Gets the name of the machine the client is running on.
|
int |
getProcessID() |
Gets the Process ID of the cache client.
|
ConnectivityStatus |
getStatus() |
Gets the enum that specifies whether client is connected to cache or not.
|
void |
setAppName(java.lang.String value) |
Sets the client application name.
|
void |
setClientID(java.lang.String value) |
Sets the client unique id of the cache client.
|
void |
setClientVersion(int value) |
Sets the version of the NCache client.
|
void |
setCores(int value) |
Sets the available cores of the cache client.
|
void |
setIPAddress(java.net.InetAddress value) |
Sets the IPAddress of the cache client.
|
void |
setMacAddress(java.lang.String value) |
Sets the MacAddress of the cache client.
|
void |
setMachineName(java.lang.String value) |
Sets the name of the machine the client is running on.
|
void |
setProcessID(int value) |
Sets the Process ID of the cache client.
|
void |
setStatus(ConnectivityStatus value) |
Sets the enum that specifies whether client is connected to cache or not.
|
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) |
Parses the Client id and get information about the client id in the form of ClientInfo.
|
public static ClientInfo tryParseLegacyClientID(java.lang.String clientId)
clientId
- Client id of the client.ClientInfo
instance.public java.lang.String getAppName()
public void setAppName(java.lang.String value)
value
- The client application name.public java.lang.String getClientID()
public void setClientID(java.lang.String value)
value
- The client unique id of the cache client.public java.net.InetAddress getIPAddress()
public void setIPAddress(java.net.InetAddress value)
value
- The IPAddress of the cache client.public java.lang.String getMacAddress()
public void setMacAddress(java.lang.String value)
value
- The MacAddress of the cache client.public int getCores()
public void setCores(int value)
value
- The available cores of the cache client.public int getProcessID()
public void setProcessID(int value)
value
- The Process ID of the cache client.public java.lang.String getMachineName()
public void setMachineName(java.lang.String value)
value
- The name of the machine the client is running on.public ConnectivityStatus getStatus()
public void setStatus(ConnectivityStatus value)
value
- The ConnectivityStatus of the client.public int getClientVersion()
public void setClientVersion(int value)
value
- Version of NCache client.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object