public class InternalHttpServer extends Object implements org.apache.avro.ipc.Server
Server.| Constructor and Description |
|---|
InternalHttpServer(org.apache.avro.ipc.Responder responder,
org.mortbay.jetty.Connector connector)
Constructs a server to run with the given connector.
|
InternalHttpServer(org.apache.avro.ipc.Responder responder,
int port,
int httpConnections)
Constructs a server to run on the named port.
|
InternalHttpServer(org.apache.avro.ipc.ResponderServlet servlet,
org.mortbay.jetty.Connector connector)
Constructs a server to run with the given connector.
|
InternalHttpServer(org.apache.avro.ipc.ResponderServlet servlet,
int port,
int httpConnections)
Constructs a server to run on the named port.
|
InternalHttpServer(org.apache.avro.ipc.ResponderServlet servlet,
String bindAddress,
int port,
int httpConnections)
Constructs a server to run on the named port on the specified address.
|
InternalHttpServer(org.apache.avro.ipc.Responder responder,
String bindAddress,
int port,
int httpConnections)
Constructs a server to run on the named port on the specified address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(org.mortbay.jetty.Connector connector) |
void |
close() |
int |
getPort() |
void |
join() |
void |
start()
Start the server.
|
public InternalHttpServer(org.apache.avro.ipc.Responder responder,
int port,
int httpConnections)
throws IOException
IOExceptionpublic InternalHttpServer(org.apache.avro.ipc.ResponderServlet servlet,
int port,
int httpConnections)
throws IOException
IOExceptionpublic InternalHttpServer(org.apache.avro.ipc.Responder responder,
String bindAddress,
int port,
int httpConnections)
throws IOException
IOExceptionpublic InternalHttpServer(org.apache.avro.ipc.ResponderServlet servlet,
String bindAddress,
int port,
int httpConnections)
throws IOException
IOExceptionpublic InternalHttpServer(org.apache.avro.ipc.Responder responder,
org.mortbay.jetty.Connector connector)
throws IOException
IOExceptionpublic InternalHttpServer(org.apache.avro.ipc.ResponderServlet servlet,
org.mortbay.jetty.Connector connector)
throws IOException
IOExceptionpublic void addConnector(org.mortbay.jetty.Connector connector)
public int getPort()
getPort in interface org.apache.avro.ipc.Serverpublic void close()
close in interface org.apache.avro.ipc.Serverpublic void start()
start in interface org.apache.avro.ipc.Serverorg.apache.avro.AvroRuntimeException - if the underlying Jetty server throws any exception while
starting.public void join()
throws InterruptedException
join in interface org.apache.avro.ipc.ServerInterruptedExceptionCopyright © 2016 CodeGerm. All rights reserved.