graph_cluster_utils.logger
Class Logger

java.lang.Object
  extended by graph_cluster_utils.logger.Logger
Direct Known Subclasses:
LoggerBase

public abstract class Logger
extends java.lang.Object

Base class of all supervisors. Loggers are passed to Alg implementations. They're used to delegate logging operations to.

Since:
2010-04-01
Author:
Alex Averbuch

Constructor Summary
Logger()
           
 
Method Summary
abstract  void doFinalSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo, int clusterCount)
          Perform logging/snapshot of the state of the current Neo4j instance.
abstract  void doInitialSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo, int clusterCount)
          Perform logging/snapshot of the state of the current Neo4j instance.
abstract  void doPeriodicSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo, long timeStep, int clusterCount)
          Perform logging/snapshot of the state of the current Neo4j instance.
abstract  boolean isFinalSnapshot()
          Checks if final logging/snapshot should be performed.
abstract  boolean isInitialSnapshot()
          Checks if initial logging/snapshot should be performed.
abstract  boolean isPeriodicSnapshot(long timeStep)
          Checks if logging/snapshot should be performed at this time step.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

isInitialSnapshot

public abstract boolean isInitialSnapshot()
Checks if initial logging/snapshot should be performed.


doInitialSnapshot

public abstract void doInitialSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo,
                                       int clusterCount)
Perform logging/snapshot of the state of the current Neo4j instance. This may include, but is not limited to, graph and clustering metrics.

Parameters:
transNeo - GraphDatabaseService implementation to be read from during logging
clusterCount - number of clusters the algorithm is either trying to find, or has found so far (depending on use)

isPeriodicSnapshot

public abstract boolean isPeriodicSnapshot(long timeStep)
Checks if logging/snapshot should be performed at this time step.

Parameters:
timeStep - represents the algorithms current iteration

doPeriodicSnapshot

public abstract void doPeriodicSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo,
                                        long timeStep,
                                        int clusterCount)
Perform logging/snapshot of the state of the current Neo4j instance. This may include, but is not limited to, graph and clustering metrics.

Parameters:
transNeo - GraphDatabaseService implementation to be read from during logging
timeStep - represents the algorithms current iteration
clusterCount - number of clusters the algorithm is either trying to find, or has found so far (depending on use)

isFinalSnapshot

public abstract boolean isFinalSnapshot()
Checks if final logging/snapshot should be performed.


doFinalSnapshot

public abstract void doFinalSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo,
                                     int clusterCount)
Perform logging/snapshot of the state of the current Neo4j instance. This may include, but is not limited to, graph and clustering metrics.

Parameters:
transNeo - GraphDatabaseService implementation to be read from during logging
clusterCount - number of clusters the algorithm is either trying to find, or has found so far (depending on use)