Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Hawk » Making queries programatically(Using hawk from standalone java)
Making queries programatically [message #1814734] Tue, 17 September 2019 08:56 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 210
Registered: October 2009
Location: UK
Senior Member

Hi,

Is there a way to run Hawk programmatically? Mainly interested in queries, but having access to index status, adding metamodels, and other hawk features could be advantageous too.


Horacio Hoyos Rodriguez
Epsilon Committer
Research Assistant
University Of York
Re: Making queries programatically [message #1815104 is a reply to message #1814734] Wed, 25 September 2019 13:13 Go to previous messageGo to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 210
Registered: October 2009
Location: UK
Senior Member

Figured it out; following the tests in the project I found that I have to instantiate a new IModelIndexer, initializate it with the correct resource factories, query engines, model updaters and such.

Horacio Hoyos Rodriguez
Epsilon Committer
Research Assistant
University Of York
Re: Making queries programatically [message #1815176 is a reply to message #1815104] Thu, 26 September 2019 19:19 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 525
Registered: January 2010
Location: Birmingham, UK
Senior Member

Yes, the tests in the project are a good reference on how to use Hawk programmatically. You could also run a Hawk server, and use it through its Thrift API. More info for that is here:

https://github.com/mondo-project/mondo-hawk/wiki/Thrift-API
Previous Topic:Indexing custom EMF Resources
Next Topic:Multiple synchroniseEnd events while indexing git repository
Goto Forum:
  


Current Time: Fri Jun 05 07:27:31 GMT 2020

Powered by FUDForum. Page generated in 0.01380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top