public class Mon
extends javax.servlet.http.HttpServlet
Note if the calls was unsuccessful (to add/start/stop/get) then the error message is returned which starts with the keyword: Error. OK will be returned by add/start/stop if they are successful, but not get. get simply returns the value or error if there was a problem. script calls to jgetdata.sh don't call this servlet and so they don't return error if they fail, however you can check to see if they contain data.
Happy monitoring!
put this in web.xml file
<servlet>
<servlet-name>Mon</servlet-name>
<servlet-class>com.jamonapi.Mon</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Mon</servlet-name>
<url-pattern>/Mon</url-pattern>
</servlet-mapping>
Constructor and Description |
---|
Mon() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2015. All rights reserved.