|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraph_cluster_utils.logger.Logger
graph_cluster_utils.logger.LoggerBase
public class LoggerBase
Generic implementation of Logger
.
Logs .gml, .graph, .ptn, and .met files from given
GraphDatabaseService
Constructor Summary | |
---|---|
LoggerBase(int snapshotPeriod,
int longSnapshotPeriod,
java.lang.String graphName,
java.lang.String resultsDir)
|
Method Summary | |
---|---|
void |
doFinalSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo,
int clusterCount)
Perform logging/snapshot of the state of the current Neo4j instance. |
void |
doInitialSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo,
int clusterCount)
Perform logging/snapshot of the state of the current Neo4j instance. |
void |
doPeriodicSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo,
long timeStep,
int clusterCount)
Perform logging/snapshot of the state of the current Neo4j instance. |
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 LoggerBase(int snapshotPeriod, int longSnapshotPeriod, java.lang.String graphName, java.lang.String resultsDir)
Method Detail |
---|
public boolean isInitialSnapshot()
Logger
isInitialSnapshot
in class Logger
public void doInitialSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo, int clusterCount)
Logger
doInitialSnapshot
in class Logger
transNeo
- GraphDatabaseService
implementation to be read from
during loggingclusterCount
- number of clusters the algorithm is either trying to find, or
has found so far (depending on use)public boolean isPeriodicSnapshot(long timeStep)
Logger
isPeriodicSnapshot
in class Logger
timeStep
- represents the algorithms current iterationpublic void doPeriodicSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo, long timeStep, int clusterCount)
Logger
doPeriodicSnapshot
in class Logger
transNeo
- GraphDatabaseService
implementation to be read from
during loggingtimeStep
- represents the algorithms current iterationclusterCount
- number of clusters the algorithm is either trying to find, or
has found so far (depending on use)public boolean isFinalSnapshot()
Logger
isFinalSnapshot
in class Logger
public void doFinalSnapshot(org.neo4j.graphdb.GraphDatabaseService transNeo, int clusterCount)
Logger
doFinalSnapshot
in class Logger
transNeo
- GraphDatabaseService
implementation to be read from
during loggingclusterCount
- number of clusters the algorithm is either trying to find, or
has found so far (depending on use)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |