Пример #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);
   }
 }