private void printPoolDetails2(HFCPool pool, StringBuffer sb) {

    sb.append(pool._poolName);

    sb.append("\n").append(pool.toString()).append(" ");

    if (pool.cellInfo == null) {
      return;
    }

    PoolCellInfo cellInfo = pool.cellInfo;
    PoolCostInfo costInfo = cellInfo.getPoolCostInfo();
    PoolCostInfo.PoolSpaceInfo spaceInfo = costInfo.getSpaceInfo();
    PoolCostInfo.PoolQueueInfo queueInfo = costInfo.getStoreQueue();

    long total = spaceInfo.getTotalSpace();
    long precious = spaceInfo.getPreciousSpace();

    sb.append("   ")
        .append("Mode=")
        .append(pool.getPoolModeString())
        .append(";Total=")
        .append(total)
        .append(";Precious=")
        .append(precious)
        .append(";Frac=")
        .append((float) precious / (float) total)
        .append(";Queue={")
        .append(queueInfo.toString())
        .append("}\n");

    for (Object o : pool.flushInfos.values()) {

      HFCFlushInfo info = (HFCFlushInfo) o;
      StorageClassFlushInfo flush = info.getStorageClassFlushInfo();

      String storeName = flush.getStorageClass() + "@" + flush.getHsm();

      long size = flush.getTotalPendingFileSize();
      int count = flush.getRequestCount();
      int active = flush.getActiveCount();

      sb.append("   ")
          .append(storeName)
          .append("  ")
          .append(info._flushingRequested ? "R" : "-")
          .append(info._flushingPending ? "P" : "-")
          .append(info._flushingError != 0 ? "E" : "-")
          .append("(")
          .append(info._flushingId)
          .append(")")
          .append(";Size=")
          .append(size)
          .append(";Count=")
          .append(count)
          .append(";Active=")
          .append(active)
          .append("\n");
    }
  }
Esempio n. 2
0
 public void addValues(PoolCostInfo costInfo) {
   PoolQueueInfo queueInfo = costInfo.getMoverQueue();
   activeMovers += queueInfo.getActive();
   queuedMovers += queueInfo.getQueued();
   queueInfo = costInfo.getStoreQueue();
   activeStores += queueInfo.getActive();
   queuedStores += queueInfo.getQueued();
   queueInfo = costInfo.getRestoreQueue();
   activeRestores += queueInfo.getActive();
   queuedRestores += queueInfo.getQueued();
 }
Esempio n. 3
0
 public PoolQueuePlotData(PoolCostInfo costInfo) {
   this(costInfo.getPoolName());
   addValues(costInfo);
 }