Skip to content

shunanya/Monitis-Java-Plugins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Some additions to the existing Monitis Java API are made that allow 
to simply build almost any type of custom monitor.

The source code of additions are added and described. 
The corresponding examples has been added as well.

Basically, only two additional classes were added to the existing Monitis API
-	GenericCustomMonitorRunner.java
This class is responsible for adding of a new custom monitor to the existing Monitis monitors scope (if it doesn't yet exist), configure and run it. The necessary parameters and values should be provided by user class that extends the IGenericCustomMonitor abstract class.
-	IGenericCustomMonitor.java
Abstract class that provide all definitions for Generic Custom Monitor. User should extends it for implementing own custom monitor. (see attachments)

Note that user should provide only one simple Java class and the desired custom monitor will be created instantly.
Look through the added examples for memcached server custom monitor that could give some more details (package - org/sourcio/monitis/test).

Notice you have to have all required libraries to be able to use this code
- Monitis existing Java API (http://www.monitis.com/api/monitisapi.jar)
	- All required by Monitis Java API libraries (some of Apache Commons libraries (Lang, Codec, etc.), JSON, Log4J, etc.)
- memcached client (http://code.google.com/p/xmemcached)
	- Simple Logging Facade for Java libraries(required by memcached client): slf4j-api and slf4j-simple (http://www.slf4j.org/)

About

Monitis Java extetionsions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%