Package com.gigaspaces.lrmi.nio.info
Class NIOStatistics
java.lang.Object
com.gigaspaces.lrmi.nio.info.NIOStatistics
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- Author:
- kimchy
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNIOStatistics(long timestamp, long completedTaskCount, int activeThreadsCount, int queueSize) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the current number of active threads.longReturns the total number of completed tasks.intReturns the current size of the pending tasks within the queue.longReturns the timestamp when this was created.booleanisNA()voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
NIOStatistics
public NIOStatistics() -
NIOStatistics
public NIOStatistics(long timestamp, long completedTaskCount, int activeThreadsCount, int queueSize)
-
-
Method Details
-
isNA
public boolean isNA() -
getTimestamp
public long getTimestamp()Returns the timestamp when this was created. -
getCompletedTaskCount
public long getCompletedTaskCount()Returns the total number of completed tasks. -
getActiveThreadsCount
public int getActiveThreadsCount()Returns the current number of active threads. -
getQueueSize
public int getQueueSize()Returns the current size of the pending tasks within the queue. -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-