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 client application name.
|
java.lang.String |
getClientID() |
Gets the client unique ID of the cache client.
|
int |
getClientVersion() |
Gets the version of the NCache client.
|
int |
getCores() |
Gets the available cores of the cache client.
|
java.net.InetAddress |
getIPAddress() |
Gets the IP Address of the cache client.
|
java.lang.String |
getMacAddress() |
Gets the Mac Address 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 IP Address of the cache client.
|
void |
setMacAddress(java.lang.String value) |
Sets the Mac Address 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 gets 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 IP Address of the cache client.public java.lang.String getMacAddress()
public void setMacAddress(java.lang.String value)
value
- The Mac Address 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