Esempio n. 1
0
  @Override
  public void dump(DiagnosticsPhase phase, StringLogger log) {
    if (phase.isInitialization() || phase.isExplicitlyRequested()) {
      log.logLongMessage(
          "Neo4j Kernel properties:",
          new PrefetchingIterator<String>() {
            final Iterator<Object> keys = params.keySet().iterator();

            @Override
            protected String fetchNextOrNull() {
              while (keys.hasNext()) {
                Object key = keys.next();
                if (key instanceof String) {
                  Object value = params.get(key);
                  return key + "=" + value;
                }
              }
              return null;
            }
          },
          true);
    }
  }
Esempio n. 2
0
 @Override
 boolean applicable(DiagnosticsPhase phase) {
   return phase.isExplicitlyRequested();
 }
Esempio n. 3
0
 boolean applicable(DiagnosticsPhase phase) {
   return phase.isInitialization() || phase.isExplicitlyRequested();
 }
 @Override
 public void dump(DiagnosticsPhase phase, StringLogger log) {
   if (phase.isInitialization() || phase.isExplicitlyRequested()) {
     dump(log);
   }
 }