Search in sources :

Example 1 with DisconnectHandler

use of org.bboxdb.network.server.handler.request.DisconnectHandler in project bboxdb by jnidzwetzki.

the class ClientConnectionHandler method initRequestHandlerMap.

/**
 * Init the map with the package handlers
 * @return
 */
protected void initRequestHandlerMap() {
    requestHandlers = new HashMap<>();
    requestHandlers.put(NetworkConst.REQUEST_TYPE_HELLO, new HandshakeHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_COMPRESSION, new CompressionHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_DISCONNECT, new DisconnectHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_CREATE_TABLE, new CreateTableHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_DELETE_TABLE, new DeleteTableHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_INSERT_TUPLE, new InsertTupleHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_CREATE_DISTRIBUTION_GROUP, new CreateDistributionGroupHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_DELETE_DISTRIBUTION_GROUP, new DeleteDistributionGroupHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_KEEP_ALIVE, new KeepAliveHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_NEXT_PAGE, new NextPageHandler());
    requestHandlers.put(NetworkConst.REQUEST_TYPE_CANCEL_QUERY, new CancelQueryHandler());
}
Also used : HandshakeHandler(org.bboxdb.network.server.handler.request.HandshakeHandler) DisconnectHandler(org.bboxdb.network.server.handler.request.DisconnectHandler) DeleteDistributionGroupHandler(org.bboxdb.network.server.handler.request.DeleteDistributionGroupHandler) CreateTableHandler(org.bboxdb.network.server.handler.request.CreateTableHandler) CreateDistributionGroupHandler(org.bboxdb.network.server.handler.request.CreateDistributionGroupHandler) CancelQueryHandler(org.bboxdb.network.server.handler.request.CancelQueryHandler) InsertTupleHandler(org.bboxdb.network.server.handler.request.InsertTupleHandler) KeepAliveHandler(org.bboxdb.network.server.handler.request.KeepAliveHandler) CompressionHandler(org.bboxdb.network.server.handler.request.CompressionHandler) NextPageHandler(org.bboxdb.network.server.handler.request.NextPageHandler) DeleteTableHandler(org.bboxdb.network.server.handler.request.DeleteTableHandler)

Aggregations

CancelQueryHandler (org.bboxdb.network.server.handler.request.CancelQueryHandler)1 CompressionHandler (org.bboxdb.network.server.handler.request.CompressionHandler)1 CreateDistributionGroupHandler (org.bboxdb.network.server.handler.request.CreateDistributionGroupHandler)1 CreateTableHandler (org.bboxdb.network.server.handler.request.CreateTableHandler)1 DeleteDistributionGroupHandler (org.bboxdb.network.server.handler.request.DeleteDistributionGroupHandler)1 DeleteTableHandler (org.bboxdb.network.server.handler.request.DeleteTableHandler)1 DisconnectHandler (org.bboxdb.network.server.handler.request.DisconnectHandler)1 HandshakeHandler (org.bboxdb.network.server.handler.request.HandshakeHandler)1 InsertTupleHandler (org.bboxdb.network.server.handler.request.InsertTupleHandler)1 KeepAliveHandler (org.bboxdb.network.server.handler.request.KeepAliveHandler)1 NextPageHandler (org.bboxdb.network.server.handler.request.NextPageHandler)1