Hi Dave.
I tried to get titan to work in pacer just yesterday. It occured to me that you need to execute "mvn package" somewhere in the gem creation/instalaltion process. But the adapter seems to be outdated anyways.
I did a liitle bit of research and at obviously the effort needed for pacer-adapters has decreased with this commit:
https://github.com/pangloss/pacer/commit/2d7a224f0423b04a58ec4c2838164da9ffcb80fc (also one of the sources of adapter incompatibility to pacer-titan)
So here is a (somehow?) working example I created for titan integration (by modifying existing adapter's code) - maybe it is helpful for you, too:
require "pacer"
Dir["titan-0.1.0/lib/\*.jar"].each { |jar| require jar }
module Pacer
class << self
def titan path
path = File.expand_path path
open = proc do
graph = Pacer.open_graphs[path]
unless graph
graph = Java::ComThinkaureliusTitanCore::TitanFactory.open path
Pacer.open_graphs[path] = graph
end
graph
end
shutdown = proc do |g|
g.blueprints_graph.shutdown
Pacer.open_graphs.delete path
end
PacerGraph.new(Pacer::SimpleEncoder, open, shutdown)
end
end
end
g = Pacer.titan "/disk/tmp/titanpacer1"