Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there an API for OpenGrok?
I'm interested in mining the results in either Perl or Java.
At the moment, I could perform HTML scrapping against the results, but seems less-than-ideal.
As per its website, it leverages Lucene, but no real info on how to connect to it other than via HTML.
Starting in OpenGrok 0.13, there is a simple REST API.
With OpenGrok 1.0 there is a JSON API.
Opengrok supports a command line interface that may be able to provide what you're looking for.
Example:
$ java -cp ./opengrok.jar org.opensolaris.opengrok.search.Search -R /var/opengrok/etc/configuration.xml -f "My Search"
This fork has a JSON API: https://github.com/Goyaka/OpenGrok/blob/f70d78e743a0a389b46ea36c4785182ee8f03e13/src/com/goyaka/opengrok/web/SearchServlet.java
This issue discusses it: https://github.com/OpenGrok/OpenGrok/issues/422
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'd like to run a SPARQL query using the MarkLogic Java API documented at http://docs.marklogic.com/guide/java . I've seen examples for running such queries from the console, via the REST API, or via XQuery. But I don't see how to do this using the Java API - is this possible to do?
Choose a toolkit (e.g. http://jena.apache.org/).
Being a W3C standard, any client library should be able to work with any server. The level of compliance to the standards is rally quite high.
Documentation:
http://jena.apache.org/documentation/query/app_api.html
(Disclosure: I contribute to Apache Jena).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
my question is that......
I want to host my content management system without java dedicated server,Because of high Cost of java server.And what framework is beneficial for me to make content management system in java......
Help please,Thank you from my side.
You can always try amazon web services for hosting:
AWS
Grails is built on groovy and provides you with features like scaffolding. Groovy is an extension of java and relatively easy and fun to use. See these official sites for groovy and grails and this SO post for more info:
Stackoverflow
Groovy
Grails
Ultimately not a definite answer, but rather just some suggestions
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Does python have something like php java bridge? I've found only py4j, but I couldn't find implementation of python + tomcat.
Could you recomend something?
Have a look at Jython. It lets you run Python on the JVM.
From the php-java-bridge site:
The PHP/Java Bridge is an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine.
Example:
http://php-java-bridge.sourceforge.net/doc/examples/source.php?source=getProperties.py
Also take a look at JPype. But it seems there is no active development on that project, of late.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Has anybody used the HQAPI to fetch the metrics of a resource programmatically? I want a sample code which uses the HQAPI to fetch the metrics of a resource.
There is a treasure trove of examples here
http://svn.hyperic.org/projects/hqapi/trunk/src/org/hyperic/hq/hqapi1/test/
and I am trying to put together some explanation here
http://www.javamonamour.org/2012/05/creating-alert-recovery-with-hyperic.html
They seem to have plenty of examples on Github e.g.
https://github.com/hyperic/hqapi/blob/7b19d6b0ebfb8cfb2903d4a495ab0368ba3e6aeb/src/org/hyperic/hq/hqapi1/test/Metric_test.java
Also there is an example in their docs:
http://support.hyperic.com/display/DOC/HQApi+Java+API
The are actually a lot of ways you could do this:
Run the plain old hqapi.sh resource list (or like) commands, which could be very slow.
Paste directly in your browser window a restful URL:
http://__host__:7080/hqu/hqapi1/alert/find.hqu?begin=1344004728555&end=1444004728999&count=100&severity=1¬Fixed
Use curl to achieve that:
curl -u hqadmin "http://__host__:7080/hqu/hqapi1/alertdefinition/listDefinitions.hqu?resourceId=10201"
I personally like using a scripting language like Python to do this.
Then there is Groovy script, which you can run in a Groovy console under the administration tab. Check the hqapi1 hqu plugin.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Is there a Java RTP/RTCP library based on Java NIO or some Java NIO framework (Netty, MINA, ...)?
In Red5, we are adapting an RTP/RTSP library written using Mina. If you would like to check it out, go here: http://red5.googlecode.com/svn/java/plugins/trunk/rtspplugin/
The original library was written by Matteo Merli (matteo.merli#gmail.com) and yes, we have his permission to modify it.
You would have to write a wrapper yourself, I'm afraid. Netty has a pretty flexible architecture that would allow that.