org.apache.blur.server
Class ShardServerEventHandler

java.lang.Object
  extended by org.apache.blur.server.ShardServerEventHandler
All Implemented Interfaces:
TServerEventHandler

public class ShardServerEventHandler
extends Object
implements TServerEventHandler

ShardServerContext is the session manager for the shard servers. It allows for reader reuse across method calls.


Constructor Summary
ShardServerEventHandler()
           
 
Method Summary
 ServerContext createContext(TProtocol input, TProtocol output, Object selectionKeyObject)
          Called when a new client has connected and is about to being processing.
 void deleteContext(ServerContext serverContext, TProtocol input, TProtocol output)
          Called when a client has finished request-handling to delete server context.
 void preServe()
          Called before the server begins.
 void processContext(ServerContext serverContext, TTransport inputTransport, TTransport outputTransport)
          Called when a client is about to call the processor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardServerEventHandler

public ShardServerEventHandler()
Method Detail

preServe

public void preServe()
Description copied from interface: TServerEventHandler
Called before the server begins.

Specified by:
preServe in interface TServerEventHandler

createContext

public ServerContext createContext(TProtocol input,
                                   TProtocol output,
                                   Object selectionKeyObject)
Description copied from interface: TServerEventHandler
Called when a new client has connected and is about to being processing.

Specified by:
createContext in interface TServerEventHandler

deleteContext

public void deleteContext(ServerContext serverContext,
                          TProtocol input,
                          TProtocol output)
Description copied from interface: TServerEventHandler
Called when a client has finished request-handling to delete server context.

Specified by:
deleteContext in interface TServerEventHandler

processContext

public void processContext(ServerContext serverContext,
                           TTransport inputTransport,
                           TTransport outputTransport)
Description copied from interface: TServerEventHandler
Called when a client is about to call the processor.

Specified by:
processContext in interface TServerEventHandler


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.