GemFire 7.0.1

com.gemstone.gemfire.management
Interface DiskStoreMXBean


public interface DiskStoreMXBean

MBean that provides access to information and management functionality for a DiskStore.

Since:
7.0

Method Summary
 void flush()
          Causes any data that is currently in the asynchronous queue to be written to disk.
 boolean forceCompaction()
          Requests the DiskStore to start compacting.
 void forceRoll()
          Requests the DiskStore to start writing to a new op-log.
 int getCompactionThreshold()
          Returns the threshold at which an op-log may be compacted.
 String[] getDiskDirectories()
          Returns the names of the directories to which the region's data will be written.
 long getDiskReadsAvgLatency()
          Returns the disk reads average latency.
 float getDiskReadsRate()
          Returns the average number of disk reads per second.
 long getDiskWritesAvgLatency()
          Returns the disk writes average latency.
 float getDiskWritesRate()
          Returns the average number of disk writes per second.
 long getFlushTimeAvgLatency()
          Returns the flush time average latency.
 long getMaxOpLogSize()
          Returns the maximum size (in megabytes) that a single op-log can grow to.
 String getName()
          Returns the name of the DiskStore.
 int getQueueSize()
          Returns the maximum number of operations that can be asynchronously queued for saving to disk.
 long getTimeInterval()
          Returns the time (in milliseconds) that can elapse before unwritten data is saved to disk.
 int getTotalBackupCompleted()
          Returns the number of backups of this DiskStore that have been completed.
 int getTotalBackupInProgress()
          Returns the number of backups currently in progress on this DiskStore.
 long getTotalBytesOnDisk()
          Returns the total number of bytes of space this DiskStore has used.
 int getTotalQueueSize()
          Returns the number of entries in the asynchronous queue waiting to be written to disk.
 int getTotalRecoveriesInProgress()
          Returns the number of persistent regions currently being recovered from disk.
 int getWriteBufferSize()
          Returns the size of the write buffer that this DiskStore will use when writing data to disk.
 boolean isAutoCompact()
          Returns whether disk files are to be automatically compacted.
 boolean isForceCompactionAllowed()
          Returns whether manual compaction of disk files is allowed.
 

Method Detail

getName

String getName()
Returns the name of the DiskStore.


isAutoCompact

boolean isAutoCompact()
Returns whether disk files are to be automatically compacted.

Returns:
True if disk files are automatically compacted, false otherwise

getCompactionThreshold

int getCompactionThreshold()
Returns the threshold at which an op-log may be compacted. Until it reaches this threshold the op-log will not be compacted. The threshold is a percentage in the range 0..100.


isForceCompactionAllowed

boolean isForceCompactionAllowed()
Returns whether manual compaction of disk files is allowed.

Returns:
True if manual compaction is allowed, false otherwise.

getMaxOpLogSize

long getMaxOpLogSize()
Returns the maximum size (in megabytes) that a single op-log can grow to.


getTimeInterval

long getTimeInterval()
Returns the time (in milliseconds) that can elapse before unwritten data is saved to disk.


getWriteBufferSize

int getWriteBufferSize()
Returns the size of the write buffer that this DiskStore will use when writing data to disk.


getDiskDirectories

String[] getDiskDirectories()
Returns the names of the directories to which the region's data will be written.


getQueueSize

int getQueueSize()
Returns the maximum number of operations that can be asynchronously queued for saving to disk. When this limit is reached operations will block until they can be put in the queue.


getTotalBytesOnDisk

long getTotalBytesOnDisk()
Returns the total number of bytes of space this DiskStore has used.


getDiskReadsRate

float getDiskReadsRate()
Returns the average number of disk reads per second.


getDiskWritesRate

float getDiskWritesRate()
Returns the average number of disk writes per second.


getDiskReadsAvgLatency

long getDiskReadsAvgLatency()
Returns the disk reads average latency.


getDiskWritesAvgLatency

long getDiskWritesAvgLatency()
Returns the disk writes average latency.


getFlushTimeAvgLatency

long getFlushTimeAvgLatency()
Returns the flush time average latency.


getTotalQueueSize

int getTotalQueueSize()
Returns the number of entries in the asynchronous queue waiting to be written to disk.


getTotalBackupInProgress

int getTotalBackupInProgress()
Returns the number of backups currently in progress on this DiskStore.


getTotalBackupCompleted

int getTotalBackupCompleted()
Returns the number of backups of this DiskStore that have been completed.


getTotalRecoveriesInProgress

int getTotalRecoveriesInProgress()
Returns the number of persistent regions currently being recovered from disk.


forceRoll

void forceRoll()
Requests the DiskStore to start writing to a new op-log. The old oplog will be asynchronously compressed if compaction is set to true. The new op-log will be created in the next available directory with free space. If there is no directory with free space available and compaction is set to false, then a DiskAccessException saying that the disk is full will be thrown. If compaction is true then the application will wait for the other op-logs to be compacted and additional space is available.


forceCompaction

boolean forceCompaction()
Requests the DiskStore to start compacting. The compaction is done even if automatic compaction is not configured. If the current, active op-log has had data written to it, and may be compacted, then an implicit call to forceRoll will be made so that the active op-log can be compacted. This method will block until compaction finishes.

Returns:
True if one or more op-logs were compacted or false to indicate that no op-logs were ready to be compacted or that a compaction was already in progress.

flush

void flush()
Causes any data that is currently in the asynchronous queue to be written to disk. Does not return until the flush is complete.


GemFire 7.0.1

Copyright © 1997-2013 VMware, Inc. All rights reserved.