i want to developed one web application where
using SIGAR jar concept to fetch the information
about the network machine just like a monitoring on network application.
but i don't know more about SIGAR
plz any body help me to understand about SIGAR
and is really the SIGAR can fetch the information
about machine in the network.
I have used Sigar API in one of my applications to gather information about Java processes running on it. Its really useful and provides accurate and useful information. It is also well documented and easy to use.
Here's the documentation link : http://www.hyperic.com/support/docs/sigar/
Have a look at the classes in the documentation to see if they provide the information you're looking for.
Its ProcessTableQueryLanguage (PTQL) is extremely useful for gathering information, especially on the basis of PIDs. Here's the PTQL guide link : http://support.hyperic.com/display/SIGAR/PTQL
And the download link : http://sourceforge.net/projects/sigar/files/
Related
I am trying to make a monitoring system for JAVA web services. It would be a simple switch kind of system where based on the health of a service it would report 'RUNNING', 'CRITICAL' or 'UNSTABLE'. The challenge is integrating it with existing code. While calling an endpoint with the data would be the easiest, I am not too keen on going down that path because it would require too many changes to the source code. Instead I was looking at run-time injection. Your suggestions on coming up with an architecture would be very helpful. Thanks and let me know if you have questions.
EDIT: Tips on how to extend it to monitor stored procedures in an Oracle DB would be great too.
There is a common answer for such kind of question: just try JMX.
If you already use such frameworks like Spring - feel free to use Spring JMX there.
Aslo you can built your application into OSGi framework if it suits to you (here you can also use JMX layer for that).
I am planning to write a native java application that can get some blogs by searching with a few words. And I know we can get some results by searching on google blog search. So I want to know if I can write such an application by using google blog search. But I found that google seems just offer a javascript API for its blog search. So could anyone tell me how to use google's blog search service in java?
If it's not possible, do you guys know some other services that can do similar thing?
Thanks a lot
Google's blog platform is Blogger, and it provides an API for working with the blogs on that platform. In addition, there are a number of client libraries for this API, including Java.
Here's some resources to help you get started:
Here you can download the Java client library for the Blogger API
Here is the documentation for the Blogger API in general.
You can see information on the different types of API calls you can make here.
And here is a link to the APIs-explorer for the Blogger API, where you can play around with its capabilities
If you're new to using the Google Java Client Libraries for accessing Google APIs, you may also want to look at the documentation for the client libraries in general, here
It looks like by default, the API only supports searching for posts in a given blog, not across all blogs, so you may need to do something clever to achieve your end goal (but it wouldn't be fun if it was given all away for free, right?)
Is there any way to get information specifically about deployments on a glassfish domain? Ideally, heap usage, thread counts, etc. I think this is possible with jconsole and some other visual tools via jmx, but I've never had to attempt such a feat.
Any help would be appreciated.
Thanks in advance.
You can programatically get the server information using JMX. Follow the link below.
http://kalali.me/manage-administrate-and-monitor-glassfish-v3-from-java-code-using-amx-jmx/
I have never had to use this. But there exists a project in Glassfish that provides Java interface to management tools. There is a good article on this here http://kalali.me/manage-administrate-and-monitor-glassfish-v3-from-java-code-using-amx-jmx/
For GlassfishV3 -- the docs are here. http://glassfish.java.net/nonav/v3/admin/planning/V3Changes/V3_AMX_SPI.html
There is some doc available for V2 as well.. I donot find right now.
I've just started using Google App Engine and I have a few questions about it. I hope you can help me:
Once my Java web application is running on Google App Engine. What if one day I decide to run it on my own server. Which programs/services would I need? Is it difficult to configure?
I have a Javascript code that I would like to store on Google Application Engine, so that external webpages can run it directly. Is it possible? Otherwise could I deploy a Java application on Google App which returns this Javascript code? How could an external site ask on "execution time" for this code and run it?
THANKS!!
AppScale supports Java and allows users to deploy and host their own Google App Engine applications
Of course you can, although GAE is not meant to be used as a CDN.
Have a look to Static Files and Resource Files documentation.
It depends on what services you actually use. Take a look at AppScale, it will facilitate running your application on your own servers. I would also suggest looking at TyphoonAE (Python only), to see another software 'stack' providing similar services.
See the section on static files and resources in the docs.
I'd like to find out a way to enumerate all available wifi networks using Java 6.0 and any third-party API.
Unfortunately, I'm not able to find a solution to this problem, all I got is a library that I can't use because I don't have any example.
I'll be very pleased if someone could help me.
The target platform is Win XP/7.
Edit: the library I found is named jwlanscan
Rob
I am not sure that jwlanscan is intended as a library. I downloaded it and it seems that it contains a gui application that scans for wireless networks and displays information about them. There is also a utility class that scans for information and writes the information to the console. I guess you could use that and parse the information, but I don't think there is a public API intended for the purpose you are looking for.