|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nhncorp.neptune.common.NStatusHttpServer
public class NStatusHttpServer
Neptune의 Web 인터페이스를 위한 Http 서버
| Constructor Summary | |
|---|---|
NStatusHttpServer(java.lang.String name,
java.lang.String bindAddress,
int port)
Create a status server on the given port. |
|
| Method Summary | ||
|---|---|---|
|
addServlet(java.lang.String name,
java.lang.String pathSpec,
java.lang.Class<T> servletClass)
Add a servlet in the server. |
|
java.lang.Object |
getAttribute(java.lang.String name)
Get the value in the webapp context. |
|
int |
getPort()
Get the port that the server is on |
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set a value in the webapp context. |
|
void |
setThreads(int min,
int max)
|
|
void |
start()
Start the server. |
|
void |
stop()
stop the server |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NStatusHttpServer(java.lang.String name,
java.lang.String bindAddress,
int port)
throws java.io.IOException
name - The name of the serverport - The port to use on the serverfindPort - whether the server should start at the given port and
increment by 1 until it finds a free port.
java.io.IOException| Method Detail |
|---|
public void setAttribute(java.lang.String name,
java.lang.Object value)
name - The name of the attributevalue - The value of the attribute
public <T extends javax.servlet.http.HttpServlet> void addServlet(java.lang.String name,
java.lang.String pathSpec,
java.lang.Class<T> servletClass)
name - The name of the servlet (can be passed as null)pathSpec - The path spec for the servletservletClass - The servlet classpublic java.lang.Object getAttribute(java.lang.String name)
name - The name of the attribute
public int getPort()
public void setThreads(int min,
int max)
public void start()
throws java.io.IOException
java.io.IOException
public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||