graph_cluster_utils.supervisor
Class Supervisor

java.lang.Object
  extended by graph_cluster_utils.supervisor.Supervisor
Direct Known Subclasses:
SupervisorBase, SupervisorPart

public abstract class Supervisor
extends java.lang.Object

Base class of all supervisors. Supervisors are passed to AlgDisk and AlgMem implementations. They're used to delegate logging and dynamism (CRUD) operations to.

Since:
2010-04-01
Author:
Alex Averbuch

Constructor Summary
Supervisor()
           
 
Method Summary
abstract  void doDynamism(java.lang.String databaseDir)
          Performed dynamism on given database.
abstract  void doFinalSnapshot(int clusterCount, java.lang.String databaseDir)
          Perform logging/snapshot of the state of the current Neo4j instance.
abstract  void doInitialSnapshot(int clusterCount, java.lang.String databaseDir)
          Perform logging/snapshot of the state of the current Neo4j instance.
abstract  void doPeriodicSnapshot(long timeStep, int clusterCount, java.lang.String databaseDir)
          Perform logging/snapshot of the state of the current Neo4j instance.
abstract  boolean isDynamism(int timeStep)
          Checks if dynamism should performed at this timeStep.
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

Supervisor

public Supervisor()
Method Detail

isDynamism

public abstract boolean isDynamism(int timeStep)
Checks if dynamism should performed at this timeStep.

Parameters:
timeStep - represents the algorithms current iteration

doDynamism

public abstract void doDynamism(java.lang.String databaseDir)
Performed dynamism on given database.

Parameters:
databaseDir - path to a Neo4j instance

isInitialSnapshot

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


doInitialSnapshot

public abstract void doInitialSnapshot(int clusterCount,
                                       java.lang.String databaseDir)
Perform logging/snapshot of the state of the current Neo4j instance. This may include, but is not limited to, graph and clustering metrics.

Parameters:
clusterCount - number of clusters the algorithm is either trying to find, or has found so far (depending on use)
databaseDir - path to a Neo4j instance

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(long timeStep,
                                        int clusterCount,
                                        java.lang.String databaseDir)
Perform logging/snapshot of the state of the current Neo4j instance. This may include, but is not limited to, graph and clustering metrics.

Parameters:
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)
databaseDir - path to a Neo4j instance

isFinalSnapshot

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


doFinalSnapshot

public abstract void doFinalSnapshot(int clusterCount,
                                     java.lang.String databaseDir)
Perform logging/snapshot of the state of the current Neo4j instance. This may include, but is not limited to, graph and clustering metrics.

Parameters:
clusterCount - number of clusters the algorithm is either trying to find, or has found so far (depending on use)
databaseDir - path to a Neo4j instance