Skip to content

Commit

Permalink
On snapshot of my branch to enable read only graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darrick Wiebe committed Nov 20, 2012
1 parent c5272e1 commit c108087
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions lib/pacer/graph/pacer_graph.rb
Expand Up @@ -47,6 +47,15 @@ def shutdown
self
end

def restart!
shutdown
reopen
end

def read_only
use_wrapper com.tinkerpop.blueprints.util.wrappers.readonly.ReadOnlyKeyIndexableGraph
end

def use_wrapper(klass)
reopen = proc do
klass.new unwrap_graph(@reopen.call)
Expand Down
2 changes: 1 addition & 1 deletion lib/pacer/version.rb
Expand Up @@ -7,7 +7,7 @@ module Pacer

START_TIME = Time.now

BLUEPRINTS_VERSION = "2.1.0"
BLUEPRINTS_VERSION = "2.2.0-SNAPSHOT"
PIPES_VERSION = "2.1.0"
GREMLIN_VERSION = "2.1.0"
end
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -7,8 +7,8 @@
<artifactId>pacer</artifactId>
<!-- NOTE: the following properties are automatically updated based on the values in lib/pacer-neo4j/version.rb -->
<properties>
<blueprints.version>2.1.0</blueprints.version>
<gem.version>1.1.2</gem.version>
<blueprints.version>2.2.0-SNAPSHOT</blueprints.version>
<pipes.version>2.1.0</pipes.version>
<gremlin.version>2.1.0</gremlin.version>
</properties>
Expand Down

0 comments on commit c108087

Please sign in to comment.