org.apache.avro.ipc
Class NettyServer

java.lang.Object
  extended by org.apache.avro.ipc.NettyServer
All Implemented Interfaces:
Server

public class NettyServer
extends Object
implements Server

A Netty-based RPC Server implementation.


Constructor Summary
NettyServer(Responder responder, InetSocketAddress addr)
           
 
Method Summary
 void close()
          Stop this server.
 int getPort()
          The port this server runs on.
 void join()
          Wait for this server to exit.
 void start()
          Start this server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyServer

public NettyServer(Responder responder,
                   InetSocketAddress addr)
Method Detail

start

public void start()
Description copied from interface: Server
Start this server.

Specified by:
start in interface Server

close

public void close()
Description copied from interface: Server
Stop this server.

Specified by:
close in interface Server

getPort

public int getPort()
Description copied from interface: Server
The port this server runs on.

Specified by:
getPort in interface Server

join

public void join()
          throws InterruptedException
Description copied from interface: Server
Wait for this server to exit.

Specified by:
join in interface Server
Throws:
InterruptedException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.