|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.ipc.HttpServer
public class HttpServer
An HTTP-based RPC Server
.
Constructor Summary | |
---|---|
HttpServer(Responder responder,
org.mortbay.jetty.Connector connector)
Constructs a server to run with the given connector. |
|
HttpServer(Responder responder,
int port)
Constructs a server to run on the named port. |
|
HttpServer(ResponderServlet servlet,
org.mortbay.jetty.Connector connector)
Constructs a server to run with the given connector. |
|
HttpServer(ResponderServlet servlet,
int port)
Constructs a server to run on the named port. |
|
HttpServer(ResponderServlet servlet,
String bindAddress,
int port)
Constructs a server to run on the named port on the specified address. |
|
HttpServer(Responder responder,
String bindAddress,
int port)
Constructs a server to run on the named port on the specified address. |
Method Summary | |
---|---|
void |
addConnector(org.mortbay.jetty.Connector connector)
|
void |
close()
Stop this server. |
int |
getPort()
The port this server runs on. |
void |
join()
Wait for this server to exit. |
void |
start()
Start the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpServer(Responder responder, int port) throws IOException
IOException
public HttpServer(ResponderServlet servlet, int port) throws IOException
IOException
public HttpServer(Responder responder, String bindAddress, int port) throws IOException
IOException
public HttpServer(ResponderServlet servlet, String bindAddress, int port) throws IOException
IOException
public HttpServer(Responder responder, org.mortbay.jetty.Connector connector) throws IOException
IOException
public HttpServer(ResponderServlet servlet, org.mortbay.jetty.Connector connector) throws IOException
IOException
Method Detail |
---|
public void addConnector(org.mortbay.jetty.Connector connector)
public int getPort()
Server
getPort
in interface Server
public void close()
Server
close
in interface Server
public void start()
start
in interface Server
AvroRuntimeException
- if the underlying Jetty server
throws any exception while starting.public void join() throws InterruptedException
Server
join
in interface Server
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |