pacer-titan

82 views
Skip to first unread message

Dave

unread,
Dec 10, 2012, 1:05:39 AM12/10/12
to pacer...@googlegroups.com
Hi,

I just stumbled across Pacer-Titan but I'm having trouble installing it. I understand it's very "Alpha" . I have this in my gemfile:-

gem 'pacer'
gem 'pacer-titan', :git => 'git://github.com/bloudermilk/pacer-titan.git'

Here are the errors I'm getting when running bundle install:- 

Using pacer-titan (0.1.0) from git://github.com/bloudermilk/pacer-titan.git (at master) 
pacer-titan at C:/jruby-1.7.1/lib/ruby/gems/shared/bundler/gems/pacer-titan-9245d0925cf2 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
  ["lib/pacer-titan-0.1.0-standalone.jar"] are not files


I'm a relative newbie to Rails so the fix for the errors may be obvious to some but certainly not me. A gemspec file does exist but I don't know what is missing or an alternative way to install it. Any help will be greatly appreciated. 

Thanks,
Dave

Thomas Efer

unread,
Dec 11, 2012, 6:06:08 AM12/11/12
to pacer...@googlegroups.com
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"


Greetings


Thomas

David Colebatch

unread,
Dec 11, 2012, 7:47:08 AM12/11/12
to pacer...@googlegroups.com
Hi Thomas,

This is great - and yep, adapters did get a whole lot simpler once Darrick added the very-thin PacerGraph wrapper.

We haven't gotten around to creating a pacer-titan gem as we haven't used it ourselves yet, maybe we can put this in a gist for now and add it to the wiki...

Regards,
David


--
David Colebatch
Co-Founder

t: @dcolebatch
e: d...@xnlogic.com
p: +1 647-478-9696 
m: +61 413 455 551  (Australia)
m: +1 416 822 2252  (Canada)
w: www.xnlogic.com

Without Prejudice and Under Reserve -
This electronic mail message, including any and all attachments are intended only for the person(s) or entity(ies) named in the addressee field. This message contains information that is privileged and confidential.This notice serves as marking as CONFIDENTIAL information of the sender.Any dissemination or copying of this message by anyone other than the addressee is strictly prohibited. If you are not the addressee thereof or the person responsible for its delivery, please notify the sender immediately by reply email and permanently delete all copies of this message.

Reply all
Reply to author
Forward
0 new messages