public class Server
extends com.datatorrent.netlet.AbstractServer
Server class.
| Modifier and Type | Class and Description |
|---|---|
class |
Server.Client |
static class |
Server.Command |
static class |
Server.Request |
| Modifier and Type | Field and Description |
|---|---|
ArrayList<Server.Request> |
requests |
| Constructor and Description |
|---|
Server(String id,
Discovery<byte[]> discovery,
long acceptedTolerance) |
| Modifier and Type | Method and Description |
|---|---|
com.datatorrent.netlet.Listener.ClientListener |
getClientConnection(SocketChannel sc,
ServerSocketChannel ssc) |
void |
handleException(Exception cce,
com.datatorrent.netlet.EventLoop el) |
static int |
readInt(byte[] buffer,
int offset) |
static long |
readLong(byte[] buffer,
int offset) |
void |
registered(SelectionKey key) |
void |
unregistered(SelectionKey key) |
static void |
writeInt(byte[] buffer,
int offset,
int i) |
static void |
writeLong(byte[] buffer,
int offset,
long l) |
public final ArrayList<Server.Request> requests
public void handleException(Exception cce, com.datatorrent.netlet.EventLoop el)
handleException in interface com.datatorrent.netlet.ListenerhandleException in class com.datatorrent.netlet.AbstractServerpublic void unregistered(SelectionKey key)
unregistered in interface com.datatorrent.netlet.Listenerunregistered in class com.datatorrent.netlet.AbstractServerpublic void registered(SelectionKey key)
registered in interface com.datatorrent.netlet.Listenerregistered in class com.datatorrent.netlet.AbstractServerpublic com.datatorrent.netlet.Listener.ClientListener getClientConnection(SocketChannel sc, ServerSocketChannel ssc)
public static int readInt(byte[] buffer,
int offset)
public static void writeInt(byte[] buffer,
int offset,
int i)
public static long readLong(byte[] buffer,
int offset)
public static void writeLong(byte[] buffer,
int offset,
long l)
Copyright © 2015-2017 Apache Software Foundation. All Rights Reserved.