Package com.tibco.tibjms.admin
Class StoreInfo
- java.lang.Object
-
- com.tibco.tibjms.admin.StoreInfo
-
- Direct Known Subclasses:
DbStoreInfo,FileStoreInfo,FTLStoreInfo,GridStoreInfo,MStoreInfo
public abstract class StoreInfo extends java.lang.ObjectClass representing information about server's store.
-
-
Constructor Summary
Constructors Constructor Description StoreInfo(java.lang.Object json)For Internal use only, may be removed or deprecated in future.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublegetAverageWriteTime()Get the average time (in seconds) a write call takes.longgetFileSize()Deprecated.this method is not applicable to all store types.longgetFreeSpace()Deprecated.this method is not applicable to all store types.longgetMsgBytes()Get the total size of the data messages stored in the store.longgetMsgCount()Get the number of data messages stored in the store.java.lang.StringgetName()Get the name of the store.longgetSwappedBytes()Get the total size of the data messages stored in the store as a result of swapping out non-persistent messages.longgetSwappedCount()Get the number of data messages stored in the store as a result of swapping out non-persistent messages.java.lang.StringgetType()Get the type of the store.longgetUsedSpace()Deprecated.this method is not applicable to all store types.doublegetWriteUsage()Get the Ratio between time spent within write and total time (server_rate_interval).
-
-
-
Constructor Detail
-
StoreInfo
public StoreInfo(java.lang.Object json) throws JMSExceptionFor Internal use only, may be removed or deprecated in future.- Throws:
JMSException
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the store.- Returns:
- the name of the store
- Since:
- EMS 10.4
-
getType
public java.lang.String getType()
Get the type of the store.- Returns:
- the type of the store
- Since:
- EMS 10.4
-
getMsgCount
public long getMsgCount()
Get the number of data messages stored in the store.- Returns:
- the number of messages
-
getMsgBytes
public long getMsgBytes()
Get the total size of the data messages stored in the store.- Returns:
- the size in bytes
-
getSwappedCount
public long getSwappedCount()
Get the number of data messages stored in the store as a result of swapping out non-persistent messages.- Returns:
- the number of messages
-
getSwappedBytes
public long getSwappedBytes()
Get the total size of the data messages stored in the store as a result of swapping out non-persistent messages.- Returns:
- the size in bytes
-
getFreeSpace
@Deprecated public long getFreeSpace()
Deprecated.this method is not applicable to all store types. Instead, if applicable, useFileStoreInfo.getNotInUseSpace()orMStoreInfo.getNotInUseSpace().Get the amount of space in the store file that is not in use.- Returns:
- the number of bytes that are free
-
getUsedSpace
@Deprecated public long getUsedSpace()
Deprecated.this method is not applicable to all store types. Instead, if applicable, useFileStoreInfo.getInUseSpace()orMStoreInfo.getInUseSpace().Get the amount of space in the store file that is in use.- Returns:
- the number of bytes that are in use
-
getFileSize
@Deprecated public long getFileSize()
Deprecated.this method is not applicable to all store types. Instead, if applicable, useFileStoreInfo.getSize()orMStoreInfo.getSize().Get the total size of the store file.- Returns:
- the size in bytes
-
getAverageWriteTime
public double getAverageWriteTime()
Get the average time (in seconds) a write call takes. This measurement is not available when the store is asynchronous.- Returns:
- average time (in seconds) per write call. Always 0 when store is in asynchronous mode.
- Since:
- EMS 6.1
-
getWriteUsage
public double getWriteUsage()
Get the Ratio between time spent within write and total time (server_rate_interval). This measurement is not available when the store is asynchronous.- Returns:
- value between [0-1] representing the ratio between time spent writing and total time. Always 0 when store is in asynchronous mode.
- Since:
- EMS 6.1
-
-