|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraph_cluster_utils.supervisor.Supervisor
graph_cluster_utils.supervisor.SupervisorBase
public class SupervisorBase
Implementation of Supervisor
. Assumes a normal Neo4j instance (
GraphDatabaseService
) is being used.
Constructor Summary | |
---|---|
SupervisorBase(int snapshotPeriod,
int longSnapshotPeriod,
java.lang.String graphName,
java.lang.String resultsDir)
|
Method Summary | |
---|---|
void |
doDynamism(java.lang.String databaseDir)
Performed dynamism on given database. |
void |
doFinalSnapshot(int clusterCount,
java.lang.String databaseDir)
Perform logging/snapshot of the state of the current Neo4j instance. |
void |
doInitialSnapshot(int clusterCount,
java.lang.String databaseDir)
Perform logging/snapshot of the state of the current Neo4j instance. |
void |
doPeriodicSnapshot(long timeStep,
int clusterCount,
java.lang.String databaseDir)
Perform logging/snapshot of the state of the current Neo4j instance. |
boolean |
isDynamism(int timeStep)
Checks if dynamism should performed at this timeStep. |
boolean |
isFinalSnapshot()
Checks if final logging/snapshot should be performed. |
boolean |
isInitialSnapshot()
Checks if initial logging/snapshot should be performed. |
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 |
---|
public SupervisorBase(int snapshotPeriod, int longSnapshotPeriod, java.lang.String graphName, java.lang.String resultsDir)
Method Detail |
---|
public boolean isDynamism(int timeStep)
Supervisor
isDynamism
in class Supervisor
timeStep
- represents the algorithms current iterationpublic void doDynamism(java.lang.String databaseDir)
Supervisor
doDynamism
in class Supervisor
databaseDir
- path to a Neo4j instancepublic boolean isInitialSnapshot()
Supervisor
isInitialSnapshot
in class Supervisor
public void doInitialSnapshot(int clusterCount, java.lang.String databaseDir)
Supervisor
doInitialSnapshot
in class Supervisor
clusterCount
- number of clusters the algorithm is either trying to find, or
has found so far (depending on use)databaseDir
- path to a Neo4j instancepublic boolean isPeriodicSnapshot(long timeStep)
Supervisor
isPeriodicSnapshot
in class Supervisor
timeStep
- represents the algorithms current iterationpublic void doPeriodicSnapshot(long timeStep, int clusterCount, java.lang.String databaseDir)
Supervisor
doPeriodicSnapshot
in class Supervisor
timeStep
- represents the algorithms current iterationclusterCount
- number of clusters the algorithm is either trying to find, or
has found so far (depending on use)databaseDir
- path to a Neo4j instancepublic boolean isFinalSnapshot()
Supervisor
isFinalSnapshot
in class Supervisor
public void doFinalSnapshot(int clusterCount, java.lang.String databaseDir)
Supervisor
doFinalSnapshot
in class Supervisor
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |