Exemplo n.º 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();
    }
  }
Exemplo n.º 2
0
 public long getReadAttempts() {
   return bufferMgr.getReadAttempts();
 }
Exemplo n.º 3
0
 public long getCacheWriteCount() {
   return bufferMgr.getWriteCount();
 }
Exemplo n.º 4
0
 public long getCacheReadCount() {
   return bufferMgr.getReadCount();
 }
Exemplo n.º 5
0
 public long getHeapMemoryInUseByActivePlansKB() {
   return workingMaxReserveKb - bufferMgr.getReserveBatchBytes() / 1024;
 }
Exemplo n.º 6
0
 public long getHeapCacheMemoryInUseKB() {
   return bufferMgr.getActiveBatchBytes() / 1024
       + workingMaxReserveKb
       - bufferMgr.getMaxReserveKB();
 }