示例#1
0
  public void stop() {
    LogManager.logDetail(
        LogConstants.CTX_DQP, "Stopping BufferManager using", bufferDir); // $NON-NLS-1$
    bufferMgr.shutdown();

    // Delete the buffer directory
    if (bufferDir != null) {
      cleanDirectory(bufferDir);
      bufferDir.delete();
    }
  }
示例#2
0
 public long getReadAttempts() {
   return bufferMgr.getReadAttempts();
 }
示例#3
0
 public long getCacheWriteCount() {
   return bufferMgr.getWriteCount();
 }
示例#4
0
 public long getCacheReadCount() {
   return bufferMgr.getReadCount();
 }
示例#5
0
 public long getHeapMemoryInUseByActivePlansKB() {
   return workingMaxReserveKb - bufferMgr.getReserveBatchBytes() / 1024;
 }
示例#6
0
 public long getHeapCacheMemoryInUseKB() {
   return bufferMgr.getActiveBatchBytes() / 1024
       + workingMaxReserveKb
       - bufferMgr.getMaxReserveKB();
 }