예제 #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);
    }
  }
예제 #2
0
 @Override
 boolean applicable(DiagnosticsPhase phase) {
   return phase.isExplicitlyRequested();
 }
예제 #3
0
 boolean applicable(DiagnosticsPhase phase) {
   return phase.isInitialization() || phase.isExplicitlyRequested();
 }
예제 #4
0
 @Override
 public void dump(DiagnosticsPhase phase, StringLogger log) {
   if (phase.isInitialization() || phase.isExplicitlyRequested()) {
     dump(log);
   }
 }