Uses of Interface
com.sun.grizzly.Context

Packages that use Context
com.sun.grizzly   
com.sun.grizzly.filter   
com.sun.grizzly.suspendable   
 

Uses of Context in com.sun.grizzly
 

Classes in com.sun.grizzly that implement Context
 class NIOContext
          This Object is used to share information between the Grizzly Framework classes and ProtocolFilter implementation.
 

Fields in com.sun.grizzly declared as Context
protected  Context ContextTask.context
           
 

Methods in com.sun.grizzly that return Context
 Context ContextTask.getContext()
           
protected  Context TCPSelectorHandler.pollContext(Context serverContext, SelectionKey key, Context.OpType opType)
          Polls Context from pool and initializes it.
 Context Controller.pollContext(SelectionKey key)
          Get an instance of a Context
 

Methods in com.sun.grizzly with parameters of type Context
 void Controller.configureContext(Context context, SelectorHandler selectorHandler)
          Configure the Context
 boolean ProtocolFilter.execute(Context ctx)
          Execute a unit of processing work to be performed.
 void ProtocolChain.execute(Context context)
          Execute using the Context instance.
 void DefaultProtocolChain.execute(Context ctx)
          Execute this ProtocolChain.
 void DefaultProtocolChain.execute(Context ctx, int firstFilter)
          Execute this ProtocolChain.
protected  int DefaultProtocolChain.executeProtocolFilter(Context ctx)
          Execute the ProtocolFilter.execute method.
protected  int DefaultProtocolChain.executeProtocolFilter(Context ctx, int firstFilter)
          Execute the ProtocolFilter.execute method.
protected  void TCPSelectorHandler.invokeAsyncQueueReader(Context context)
          Invoke a AsyncQueueReader
protected  void TCPSelectorHandler.invokeAsyncQueueWriter(Context context)
          Invoke a AsyncQueueWriter
protected  void TCPSelectorHandler.invokeCallbackHandler(CallbackHandler callbackHandler, Context context)
          Invoke a CallbackHandler via a Context instance.
 boolean UDPSelectorHandler.onAcceptInterest(SelectionKey key, Context ctx)
          Handle OP_ACCEPT.
 boolean TCPSelectorHandler.onAcceptInterest(SelectionKey key, Context ctx)
          Handle OP_ACCEPT.
 boolean SelectorHandler.onAcceptInterest(SelectionKey key, Context controllerCtx)
          Handle OP_ACCEPT.
 boolean RoundRobinSelectorHandler.onAcceptInterest(SelectionKey key, Context context)
           
 boolean TCPSelectorHandler.onConnectInterest(SelectionKey key, Context ctx)
          Handle OP_CONNECT.
 boolean SelectorHandler.onConnectInterest(SelectionKey key, Context controllerCtx)
          Handle OP_CONNECT.
protected  void UDPSelectorHandler.onConnectOp(Context ctx, SelectionKeyOP.ConnectSelectionKeyOP selectionKeyOp)
          Handle new OP_CONNECT ops.
protected  void TCPSelectorHandler.onConnectOp(Context ctx, SelectionKeyOP.ConnectSelectionKeyOP selectionKeyOp)
          Handle new OP_CONNECT ops.
 boolean TCPSelectorHandler.onReadInterest(SelectionKey key, Context ctx)
          Handle OP_READ.
 boolean SelectorHandler.onReadInterest(SelectionKey key, Context controllerCtx)
          Handle OP_READ.
 boolean TCPSelectorHandler.onWriteInterest(SelectionKey key, Context ctx)
          Handle OP_WRITE.
 boolean SelectorHandler.onWriteInterest(SelectionKey key, Context controllerCtx)
          Handle OP_WRITE.
protected  Context TCPSelectorHandler.pollContext(Context serverContext, SelectionKey key, Context.OpType opType)
          Polls Context from pool and initializes it.
 boolean ProtocolFilter.postExecute(Context ctx)
          Execute any cleanup activities, such as releasing resources that were acquired during the execute() method of this ProtocolFilter instance.
protected  boolean DefaultProtocolChain.postExecuteProtocolFilter(int currentPosition, Context ctx)
          Execute the ProtocolFilter.postExcute.
 void TCPSelectorHandler.postSelect(Context ctx)
          Invoked after Selector.select().
 void SelectorHandler.postSelect(Context controllerCtx)
          This method is garantee to always be called after operation Selector.select().
 void UDPSelectorHandler.preSelect(Context ctx)
          Before invoking Selector.select(), make sure the ServerScoketChannel has been created.
 void TCPSelectorHandler.preSelect(Context ctx)
          Before invoking Selector.select(long), make sure the ServerSocketChannel has been created.
 void SelectorHandler.preSelect(Context controllerCtx)
          This method is garantee to always be called before operation Selector.select().
protected  void TCPSelectorHandler.processPendingOperations(Context ctx)
           
 void Controller.returnContext(Context ctx)
          Return a Context to its pool if it is not shared.
 Set<SelectionKey> TCPSelectorHandler.select(Context ctx)
          Execute the Selector.select(...) operations.
 Set<SelectionKey> SelectorHandler.select(Context controllerCtx)
          Invoke the Selector.select() method.
 void ContextTask.setContext(Context context)
           
 

Method parameters in com.sun.grizzly with type arguments of type Context
 void DefaultCallbackHandler.onConnect(IOEvent<Context> ioEvent)
          Execute the non blocking connect operation.
 void DefaultCallbackHandler.onHandshake(IOEvent<Context> ioEvent)
          By default, do nothing.
 void DefaultCallbackHandler.onRead(IOEvent<Context> ioEvent)
          Delegate the processing of the read operation to the IOEvent{ associated {@link ProtocolChain}
 void DefaultCallbackHandler.onWrite(IOEvent<Context> ioEvent)
          Delegate the processing of the write operation to the IOEvent{ associated {@link ProtocolChain}
 void NIOContext.setIOEvent(IOEvent<Context> ioEvent)
          Set an optional CallbackHandler.
 void Context.setIOEvent(IOEvent<Context> ioEvent)
          Set an optional CallbackHandler.
 

Uses of Context in com.sun.grizzly.filter
 

Methods in com.sun.grizzly.filter with parameters of type Context
 boolean UDPWriteFilter.execute(Context ctx)
          Write available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.
 boolean UDPReadFilter.execute(Context ctx)
          Deprecated. Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.
 boolean SSLReadFilter.execute(Context ctx)
           
 boolean SSLEchoFilter.execute(Context ctx)
           
 boolean SSLEchoAsyncWriteQueueFilter.execute(Context ctx)
           
 boolean ReadFilter.execute(Context ctx)
          Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.
 boolean ParserProtocolFilter.execute(Context ctx)
          Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.
 boolean LogFilter.execute(Context ctx)
           
 boolean EchoFilter.execute(Context ctx)
           
 boolean EchoAsyncWriteQueueFilter.execute(Context ctx)
           
protected  boolean ReadFilter.execute(Context ctx, ByteBuffer byteBuffer)
          Read available bytes to the specific ByteBuffer and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.
protected  boolean ParserProtocolFilter.invokeProtocolParser(Context ctx, ProtocolParser parser)
          Invoke the ProtocolParser.
 boolean UDPWriteFilter.postExecute(Context ctx)
          Re-enable the SelectionKey and make sure the ByteBuffer has been cleared.
 boolean SSLReadFilter.postExecute(Context ctx)
          If no bytes were available, close the connection by cancelling the SelectionKey.
 boolean SSLEchoFilter.postExecute(Context ctx)
           
 boolean SSLEchoAsyncWriteQueueFilter.postExecute(Context ctx)
           
 boolean ReadFilter.postExecute(Context ctx)
          If no bytes were available, close the connection by cancelling the SelectionKey.
 boolean ParserProtocolFilter.postExecute(Context context)
           
 boolean LogFilter.postExecute(Context ctx)
           
 boolean EchoFilter.postExecute(Context ctx)
           
 boolean EchoAsyncWriteQueueFilter.postExecute(Context ctx)
           
 

Uses of Context in com.sun.grizzly.suspendable
 

Methods in com.sun.grizzly.suspendable with parameters of type Context
 boolean SuspendableFilter.execute(Context ctx)
          Excute the pattern matching algorithm to determine if a the current connection must be suspended or not, and when.
 boolean SuspendableFilter.postExecute(Context ctx)
          Excute the pattern matching algorithm to determine if a the current connection must be suspended or not, and when.
 



Copyright © 2008 SUN Microsystems. All Rights Reserved.