|
Neo4j Community | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiagnosticsProvider
| Method Summary | |
|---|---|
void |
acceptDiagnosticsVisitor(Object visitor)
Accept a visitor that may or may not be capable of visiting this object. |
void |
dump(DiagnosticsPhase phase,
org.neo4j.kernel.impl.util.StringLogger log)
Dump the diagnostic information of this DiagnosticsProvider for
the specified phase to the provided
log. |
String |
getDiagnosticsIdentifier()
Return an identifier for this DiagnosticsProvider. |
| Method Detail |
|---|
String getDiagnosticsIdentifier()
DiagnosticsProvider. The result of
this method must be stable, i.e. invoking this method multiple times on
the same object should return equal
strings.
For DiagnosticsProviders where there is only one instance of that
DiagnosticsProvider, an implementation like this is would be a
sane default, given that the implementing class has a sensible name:
public String getDiagnosticsIdentifier()
{
return getClass().getName();
}
void acceptDiagnosticsVisitor(Object visitor)
class OperationalStatistics implements DiagnosticsProvider
{
public void acceptDiagnosticsVisitor( Object visitor )
{
if ( visitor instanceof OperationalStatisticsVisitor )
{
((OperationalStatisticsVisitor)visitor).visitOperationalStatistics( this );
}
}
}
interface OperationalStatisticsVisitor
{
void visitOperationalStatistics( OperationalStatistics statistics );
}
visitor - the visitor visiting this DiagnosticsProvider.
void dump(DiagnosticsPhase phase,
org.neo4j.kernel.impl.util.StringLogger log)
DiagnosticsProvider for
the specified phase to the provided
log.
phase - the phase to dump information for.log - the log to dump information to.
|
Neo4j Community | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||