neo4j/community — pull request #365 by tbaum (2012-03-26 09:30:24+00:00)
Title: fix guard-implementaion to limit operations count or runtime

* set "insert_guard=true" in neo4j.properties to enable it!
* for each node or relationship access (in NodeManager) it will call guard.check()

the guard can be started using

db.getGuard().startTimeout( runtimeInMs )
db.getGuard().startOperationsCount( maxOperationsToPerform )
db.getGuard().stop()

if the Timeout / OpsCount is reached a GuardException will be thrown.