Beispiel #1
0
 @Override
 public void logAllWindowPoolStats(StringLogger.LineLogger logger) {
   super.logAllWindowPoolStats(logger);
   propertyKeyTokenStore.logAllWindowPoolStats(logger);
   logger.logLine(stringPropertyStore.getWindowPoolStats().toString());
   logger.logLine(arrayPropertyStore.getWindowPoolStats().toString());
 }
Beispiel #2
0
 public void logIdUsage(StringLogger.LineLogger msgLog) {
   msgLog.logLine("Id usage:");
   nodeStore.logIdUsage(msgLog);
   relStore.logIdUsage(msgLog);
   relTypeStore.logIdUsage(msgLog);
   propStore.logIdUsage(msgLog);
   stringLogger.flush();
 }
Beispiel #3
0
  @Override
  public void logVersions(StringLogger.LineLogger msgLog) {
    msgLog.logLine("Store versions:");

    super.logVersions(msgLog);
    nodeStore.logVersions(msgLog);
    relStore.logVersions(msgLog);
    relTypeStore.logVersions(msgLog);
    propStore.logVersions(msgLog);

    stringLogger.flush();
  }
 private static long logStoreFiles(StringLogger.LineLogger logger, String prefix, File dir) {
   if (!dir.isDirectory()) return 0;
   File[] files = dir.listFiles();
   if (files == null) {
     logger.logLine(prefix + "<INACCESSIBLE>");
     return 0;
   }
   long total = 0;
   for (File file : files) {
     long size;
     String filename = file.getName();
     if (file.isDirectory()) {
       logger.logLine(prefix + filename + ":");
       size = logStoreFiles(logger, prefix + "  ", file);
       filename = "- Total";
     } else {
       size = file.length();
     }
     logger.logLine(prefix + filename + ": " + Format.bytes(size));
     total += size;
   }
   return total;
 }
Beispiel #5
0
 public void logIdUsage(StringLogger.LineLogger lineLogger) {
   lineLogger.logLine(
       String.format(
           "  %s: used=%s high=%s",
           getTypeDescriptor(), getNumberOfIdsInUse(), getHighestPossibleIdInUse()));
 }
Beispiel #6
0
 public void logVersions(StringLogger.LineLogger logger) {
   logger.logLine("  " + getTypeAndVersionDescriptor());
 }