VMware GemFire Java API Reference
Package org.apache.geode.management
Class ClientHealthStatus
- java.lang.Object
-
- org.apache.geode.management.ClientHealthStatus
-
public class ClientHealthStatus extends java.lang.ObjectComposite data type used to distribute statistics which can be used to determine the health of a cache client.- Since:
- GemFire 7.0
-
-
Constructor Summary
Constructors Constructor Description ClientHealthStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClientCQCount()java.lang.StringgetClientId()Returns the ID of the client.intgetCpus()Returns the number of CPUs available to the client.java.lang.StringgetHostName()Returns the name of the host on which the client is running.java.lang.StringgetName()Returns the name of the client.intgetNumOfCacheListenerCalls()Returns the number of times a cache listener call has completed.intgetNumOfGets()Returns the number of times a successful get operation has occurred.intgetNumOfMisses()Returns the number of times a cache miss has occurred.intgetNumOfPuts()Returns the number of times an entry was added or replaced in this cache as a result of a local operation.intgetNumOfThreads()Returns the number of threads currently in use.java.util.Map<java.lang.String,java.lang.String>getPoolStats()longgetProcessCpuTime()Returns the amount of time (in nanoseconds) used by the client process.intgetQueueSize()Returns the client queue size.booleangetSubscriptionEnabled()longgetUpTime()Returns the amount of time (in seconds) that the client has been running.booleanisConnected()voidsetClientCQCount(int clientCQCount)voidsetClientId(java.lang.String clientId)Sets the ID of the client.voidsetConnected(boolean connected)voidsetCpus(int cpus)Sets the number of CPUs available to the client.voidsetHostName(java.lang.String hostName)Sets the name of the host on which the client is running.voidsetName(java.lang.String name)Sets the name of the client.voidsetNumOfCacheListenerCalls(int numOfCacheListenerCalls)Sets the number of times a cache listener call has completed.voidsetNumOfGets(int numOfGets)Sets the number of times a successful get operation has occurred.voidsetNumOfMisses(int numOfMisses)Sets the number of times a cache miss has occurred.voidsetNumOfPuts(int numOfPuts)Set the number of times an entry was added or replaced in this cache as a result of a local operation.voidsetNumOfThreads(int numOfThreads)Sets the number of threads currently in use.voidsetPoolStats(java.util.Map<java.lang.String,java.lang.String> map)voidsetProcessCpuTime(long processCpuTime)Sets the amount of time (in nanoseconds) used by the client process.voidsetQueueSize(int queueSize)Sets the client queue size.voidsetSubscriptionEnabled(boolean subscriptionEnabled)voidsetUpTime(long upTime)Sets the amount of time (in seconds) that the client has been running.java.lang.StringtoString()
-
-
-
Method Detail
-
getNumOfGets
public int getNumOfGets()
Returns the number of times a successful get operation has occurred.- Returns:
- the number of times a successful get operation has occurred
-
getNumOfPuts
public int getNumOfPuts()
Returns the number of times an entry was added or replaced in this cache as a result of a local operation. Operations counted include puts, creates, and gets which result in loading, net searching, or net loading a value. The count only includes operations done explicitly on this cache, not those that are pushed from other caches.- Returns:
- the number of times an entry was added or replaced in this cache as a result of a local operation
-
getNumOfMisses
public int getNumOfMisses()
Returns the number of times a cache miss has occurred.- Returns:
- the number of times a cache miss has occurred
-
getNumOfCacheListenerCalls
public int getNumOfCacheListenerCalls()
Returns the number of times a cache listener call has completed.- Returns:
- the number of times a cache listener call has completed
-
getNumOfThreads
public int getNumOfThreads()
Returns the number of threads currently in use.- Returns:
- the number of threads currently in use
-
getProcessCpuTime
public long getProcessCpuTime()
Returns the amount of time (in nanoseconds) used by the client process.- Returns:
- the amount of time (in nanoseconds) used by the client process
-
getCpus
public int getCpus()
Returns the number of CPUs available to the client.- Returns:
- the number of CPUs available to the client
-
getUpTime
public long getUpTime()
Returns the amount of time (in seconds) that the client has been running.- Returns:
- the amount of time (in seconds) that the client has been running
-
getClientId
public java.lang.String getClientId()
Returns the ID of the client.- Returns:
- the ID of the client
-
setNumOfGets
public void setNumOfGets(int numOfGets)
Sets the number of times a successful get operation has occurred.- Parameters:
numOfGets- the number of times a successful get operation has occurred
-
setNumOfPuts
public void setNumOfPuts(int numOfPuts)
Set the number of times an entry was added or replaced in this cache as a result of a local operation.- Parameters:
numOfPuts- the number of times an entry was added or replaced in this cache as a result of a local operation
-
setNumOfMisses
public void setNumOfMisses(int numOfMisses)
Sets the number of times a cache miss has occurred.- Parameters:
numOfMisses- the number of times a cache miss has occurred
-
setNumOfCacheListenerCalls
public void setNumOfCacheListenerCalls(int numOfCacheListenerCalls)
Sets the number of times a cache listener call has completed.- Parameters:
numOfCacheListenerCalls- the number of times a cache listener call has completed
-
setNumOfThreads
public void setNumOfThreads(int numOfThreads)
Sets the number of threads currently in use.- Parameters:
numOfThreads- the number of threads currently in use
-
setProcessCpuTime
public void setProcessCpuTime(long processCpuTime)
Sets the amount of time (in nanoseconds) used by the client process.- Parameters:
processCpuTime- the amount of time (in nanoseconds) used by the client process
-
setCpus
public void setCpus(int cpus)
Sets the number of CPUs available to the client.- Parameters:
cpus- the number of CPUs available to the client
-
setUpTime
public void setUpTime(long upTime)
Sets the amount of time (in seconds) that the client has been running.- Parameters:
upTime- the amount of time (in seconds) that the client has been running
-
setQueueSize
public void setQueueSize(int queueSize)
Sets the client queue size.- Parameters:
queueSize- the client queue size
-
setClientId
public void setClientId(java.lang.String clientId)
Sets the ID of the client.- Parameters:
clientId- the ID of the client
-
getQueueSize
public int getQueueSize()
Returns the client queue size.- Returns:
- the client queue size
-
getName
public java.lang.String getName()
Returns the name of the client.- Returns:
- the name of the client
-
getHostName
public java.lang.String getHostName()
Returns the name of the host on which the client is running.- Returns:
- the name of the host on which the client is running
-
setName
public void setName(java.lang.String name)
Sets the name of the client.- Parameters:
name- the name of the client
-
setHostName
public void setHostName(java.lang.String hostName)
Sets the name of the host on which the client is running.- Parameters:
hostName- the name of the host on which the client is running
-
getPoolStats
public java.util.Map<java.lang.String,java.lang.String> getPoolStats()
-
setPoolStats
public void setPoolStats(java.util.Map<java.lang.String,java.lang.String> map)
-
isConnected
public boolean isConnected()
-
setConnected
public void setConnected(boolean connected)
-
getSubscriptionEnabled
public boolean getSubscriptionEnabled()
-
getClientCQCount
public int getClientCQCount()
-
setSubscriptionEnabled
public void setSubscriptionEnabled(boolean subscriptionEnabled)
-
setClientCQCount
public void setClientCQCount(int clientCQCount)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-