public class HttpServer extends Object implements org.apache.avro.ipc.Server
Server.| Constructor and Description |
|---|
HttpServer(org.apache.avro.ipc.Responder responder,
org.eclipse.jetty.server.ConnectionFactory connectionFactory,
String bindAddress,
int port)
Constructs a server to run with the given ConnectionFactory on the given
address/port.
|
HttpServer(org.apache.avro.ipc.Responder responder,
org.eclipse.jetty.server.Connector connector)
Deprecated.
- use the Constructors that take a ConnectionFactory
|
HttpServer(org.apache.avro.ipc.Responder responder,
InetSocketAddress addr)
Constructs a server to run on the named port on the specified address.
|
HttpServer(org.apache.avro.ipc.Responder responder,
int port)
Constructs a server to run on the named port.
|
HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
org.eclipse.jetty.server.ConnectionFactory connectionFactory,
String bindAddress,
int port)
Constructs a server to run with the given ConnectionFactory on the given
address/port.
|
HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
org.eclipse.jetty.server.Connector connector)
Deprecated.
- use the Constructors that take a ConnectionFactory
|
HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
int port)
Constructs a server to run on the named port.
|
HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
String bindAddress,
int port)
Constructs a server to run on the named port on the specified address.
|
HttpServer(org.apache.avro.ipc.Responder responder,
String bindAddress,
int port)
Constructs a server to run on the named port on the specified address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(org.eclipse.jetty.server.Connector connector) |
void |
close() |
int |
getPort() |
void |
join() |
void |
start()
Start the server.
|
public HttpServer(org.apache.avro.ipc.Responder responder,
int port)
throws IOException
IOExceptionpublic HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
int port)
throws IOException
IOExceptionpublic HttpServer(org.apache.avro.ipc.Responder responder,
InetSocketAddress addr)
throws IOException
IOExceptionpublic HttpServer(org.apache.avro.ipc.Responder responder,
String bindAddress,
int port)
throws IOException
IOExceptionpublic HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
String bindAddress,
int port)
throws IOException
IOExceptionpublic HttpServer(org.apache.avro.ipc.Responder responder,
org.eclipse.jetty.server.ConnectionFactory connectionFactory,
String bindAddress,
int port)
throws IOException
IOExceptionpublic HttpServer(org.apache.avro.ipc.ResponderServlet servlet,
org.eclipse.jetty.server.ConnectionFactory connectionFactory,
String bindAddress,
int port)
throws IOException
IOException@Deprecated public HttpServer(org.apache.avro.ipc.ResponderServlet servlet, org.eclipse.jetty.server.Connector connector) throws IOException
IOException@Deprecated public HttpServer(org.apache.avro.ipc.Responder responder, org.eclipse.jetty.server.Connector connector) throws IOException
IOExceptionpublic void addConnector(org.eclipse.jetty.server.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 © 2009–2023 The Apache Software Foundation. All rights reserved.