|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--uk.co.westhawk.servlet.Interfaces
The Interfaces servlet collects information about all the interfaces on a SNMP server.
It will collect continuously information (depending on the update interval) unregarded it being accessed. It will start when the servlet is initialized (that is when the web server is started and loading all its servlets) until it is destroyed.
When accessing this servlet (with a GET action) it will print its last updated information to your webpage. The servlet will respond quickly, since it already has the information. This information can easily be parsed so you can to combine it with an application.
In order to use a servlet you need to have a Java based webserver where you can add and removed servlets.
InterfaceGetNextPdu,
getAllInterfaces,
Serialized Form| Constructor Summary | |
Interfaces()
|
|
| Method Summary | |
void |
destroy()
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
java.lang.String |
getHost()
|
java.lang.String |
getInterval()
|
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req)
|
java.lang.String |
getPort()
|
java.lang.String |
getServletInfo()
|
void |
init(javax.servlet.ServletConfig config)
|
protected void |
letItBegin(javax.servlet.ServletConfig config)
|
void |
run()
|
void |
setHost(java.lang.String h)
|
void |
setInterval(java.lang.String s)
Set the update interval time in sec. |
void |
setPort(java.lang.String p)
|
protected void |
showAllInterface(javax.servlet.http.HttpServletResponse res)
|
protected void |
showAllInterface(javax.servlet.http.HttpServletResponse res,
int index)
|
void |
update(java.util.Observable obs,
java.lang.Object ov)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPost, doPut, doTrace, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Interfaces()
| Method Detail |
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionpublic void setHost(java.lang.String h)
public void setPort(java.lang.String p)
public void setInterval(java.lang.String s)
public java.lang.String getHost()
public java.lang.String getPort()
public java.lang.String getInterval()
protected void letItBegin(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in class javax.servlet.http.HttpServletpublic void run()
run in interface java.lang.Runnable
public void update(java.util.Observable obs,
java.lang.Object ov)
update in interface java.util.Observerprotected void showAllInterface(javax.servlet.http.HttpServletResponse res)
protected void showAllInterface(javax.servlet.http.HttpServletResponse res,
int index)
public java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet
|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||