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