예제 #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());
 }
예제 #2
0
파일: NeoStore.java 프로젝트: soluvas/neo4j
 public void logIdUsage(StringLogger.LineLogger msgLog) {
   msgLog.logLine("Id usage:");
   nodeStore.logIdUsage(msgLog);
   relStore.logIdUsage(msgLog);
   relTypeStore.logIdUsage(msgLog);
   propStore.logIdUsage(msgLog);
   stringLogger.flush();
 }
예제 #3
0
파일: NeoStore.java 프로젝트: soluvas/neo4j
  @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();
  }
예제 #4
0
 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;
 }
예제 #5
0
 public void logIdUsage(StringLogger.LineLogger lineLogger) {
   lineLogger.logLine(
       String.format(
           "  %s: used=%s high=%s",
           getTypeDescriptor(), getNumberOfIdsInUse(), getHighestPossibleIdInUse()));
 }
예제 #6
0
 public void logVersions(StringLogger.LineLogger logger) {
   logger.logLine("  " + getTypeAndVersionDescriptor());
 }