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.
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 5 years ago.
Improve this question
I have pretty standard java project with standard gradle layout, all sources are stored in git. I want to write documentation in markdown (or similar markup language) and keep all files in project directory (e.g. docs/ folder in the root). Then I want to generate static site or push my sources somewhere to have access to full documentation in html (should be self-hosted solution).
It will be good if I'm able to add simple link to other articles (like I do it in any wiki engine by using [[article]]). And It would be perfect if I've been able to add quick links to javadoc by the same technique as link to articles. And also it would be perfect if it has had built-in search engine.
I've gone through couple of static site generators but I didn't find anything which can satisfy my requirements at least half. Is there something like that? Or I need to code it by myself (I know it won't take to much time)? Maybe there's more common use case for documentation?
You have to use the concept of Doclets. There are some out there. Maybe just try this one:
https://github.com/Abnaxos/pegdown-doclet
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
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 4 years ago.
Improve this question
I recently found this which is great as its the API but it doesn't seem to allow me to search
http://docs.oracle.com/javase/7/docs/api/
I am coming from a .NET background so need to be able to search the API.
I guess you are looking for something like this:KiwiDoc - A fresh way to browse and search javadoc
Auto-completion rocks!
For searching in the class/package names and within classes I can highly recommend the javadoc-search-frame. It's available for Google Chrome as an Extension and for all browsers that can run userscripts.
It provides a pretty useful quick-search functionality.
For a full-text search, I'd use Google as well.
Just use google
http://www.google.ee/search?q=RuntimeException+site%3Ahttp%3A%2F%2Fdownload.oracle.com%2Fjavase%2F6%2Fdocs%2Fapi
Use DMelt search
http://jwork.org/dmelt/search/
It searches words in the complete Java JDK 9, plus in 40,000 classes of external community Java packages
Just use CTRL+F in your browser.
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
My requirement is to access moodle as a backend engine and front end will be mint in Java[jsf]
now I want to know that is there any interface available to access Moodle from Java , using WebServices or any APIs or anything.
Initially I tried using Sakai which is in Java, but the problem is there is no clear API written for it.
So let me know the option for using Moodle from JAVA.
Also if it is possible than what will be the feature available through the WebServices or API. ?
Or any other LMS that is in Java and provide API or WebService to make this working.
I reviewed many LMS (dokeos, docebo, ATutor) last year and to be frank all of them sucked. Moodle was the most stable, had more plugins and a huge community.
I came across Project Sakai, I havn't tried it, but sounds promising. Something very interesting from Google is cloudcourse (in python I guess, but looks awesome demo). But not a complete LMS (compared to moodle).
You forgot to add Chamilo they have a list of available web services (SOAP) that you can use to create courses, users, add users to courses, etc
https://www.olat.org/ and https://www.openolat.com seem a good alternative to moodle.
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 need an open source GIS that allows one to view/zoom/click the maps using a web browser and should be java compliant (deployable on a java app server).
Well, I have tried to structure the requirement in 'what-i-have' and 'what-i-need' lists:
Inputs:
Location: lat/long
Data : Text to display
zoom level: (assume there are about 5)
Output
Data displayed on a Map
Would appreciate all the help I can get.
Thanks.
UPDATE: GeoServer + OpenLayers seems to be the best fit for this requirement
GeoServer: http://geoserver.org/display/GEOS/Welcome
...is what I use. You have work ahead of you no matter what you pick, though. Setting up data sources and making them look nice is a decent amount of effort.
For the client side, OpenLayers is an excellent Javascript library.
I agree with the geoserver response and all the rest of the responses ignore your statement that is has to work with Java. The only other bad option would be to write something yourself using geotools.
Go to the OpenGeo site and see the stack they support. That is the stack you are probably most interested in deploying.
I guess you'll need:
GDAL/OGR to translate the data into a kml file example
Take that KML file and pump it into either:
a. Google maps api or openlayers
b. I've had lots of luck using featuresever which I personally recommend