Class PollerConfigServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class PollerConfigServlet
    extends javax.servlet.http.HttpServlet
    A servlet that handles managing or unmanaging interfaces and services on a node
    Author:
    Jacinta Remedios , OpenNMS
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String redirectSuccess  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void adjustNonChecked​(java.util.List<java.lang.String> checkedList)
      adjustNonChecked
      void deleteThese​(java.util.List<java.lang.String> deleteServices)
      deleteThese
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      void init()
      init
      void initPollerServices()
      initPollerServices
      void modifyPollerInfo​(java.lang.String bPolled, java.lang.String protocol)
      modifyPollerInfo
      void reloadFiles()
      reloadFiles
      void removeMonitor​(java.lang.String service)
      removeMonitor
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • redirectSuccess

        protected java.lang.String redirectSuccess
    • Constructor Detail

      • PollerConfigServlet

        public PollerConfigServlet()
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException

        init

        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException - if any.
      • reloadFiles

        public void reloadFiles()
                         throws javax.servlet.ServletException

        reloadFiles

        Throws:
        javax.servlet.ServletException - if any.
      • initPollerServices

        public void initPollerServices()

        initPollerServices

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • adjustNonChecked

        public void adjustNonChecked​(java.util.List<java.lang.String> checkedList)

        adjustNonChecked

        Parameters:
        checkedList - a List object.
      • deleteThese

        public void deleteThese​(java.util.List<java.lang.String> deleteServices)
                         throws java.io.IOException

        deleteThese

        Parameters:
        deleteServices - a List object.
        Throws:
        java.io.IOException - if any.
      • removeMonitor

        public void removeMonitor​(java.lang.String service)

        removeMonitor

        FIXME: I think that this should be using Iterator.remove()
        Parameters:
        service - a String object.
      • modifyPollerInfo

        public void modifyPollerInfo​(java.lang.String bPolled,
                                     java.lang.String protocol)

        modifyPollerInfo

        Parameters:
        bPolled - a String object.
        protocol - a String object.