A B C D E F G H I L M N O P R S T U W

A

activeContexts - Variable in class com.sun.grizzly.comet.CometEngine
The current active CometContext keyed by context path.
addActiveHandler(CometTask) - Method in class com.sun.grizzly.comet.CometContext
adds a CometTask to the active set
addAttribute(Object, Object) - Method in class com.sun.grizzly.comet.CometContext
Add an attibute.
addCometHandler(CometHandler, boolean) - Method in class com.sun.grizzly.comet.CometContext
Add a CometHandler.
addCometHandler(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Add a CometHandler which will starts the process of suspending the underlying response.
AFTER_RESPONSE_PROCESSING - Static variable in class com.sun.grizzly.comet.CometEngine
The token used to support BEFORE_RESPONSE_PROCESSING polling.
AFTER_SERVLET_PROCESSING - Static variable in class com.sun.grizzly.comet.CometEngine
The token used to support AFTER_SERVLET_PROCESSING polling.
ALREADY_REMOVED - Static variable in class com.sun.grizzly.comet.CometContext
 
asyncProcessorTask - Variable in class com.sun.grizzly.comet.CometTask
The AsyncProcessorTask
attach(E) - Method in class com.sun.grizzly.comet.CometEvent
Attach an
attach(E) - Method in interface com.sun.grizzly.comet.CometHandler
Attach an intance of E to this class.
attach(E) - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
attach(PrintWriter) - Method in class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Attach a PrintWriter that will be used to write the returned value of CometEvent.attachment
attachment - Variable in class com.sun.grizzly.comet.CometEvent
Share an E amongst CometHandler
attachment() - Method in class com.sun.grizzly.comet.CometEvent
Return the attachment
attachment - Variable in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
attachment() - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
returns the attachment

B

BEFORE_REQUEST_PROCESSING - Static variable in class com.sun.grizzly.comet.CometEngine
The token used to support BEFORE_REQUEST_PROCESSING polling.
blockingNotification - Variable in class com.sun.grizzly.comet.CometContext
true if the caller of CometContext.notify(java.lang.Object) should block when notifying other CometHandler.
blockingNotification - Variable in class com.sun.grizzly.comet.DefaultNotificationHandler
true if the caller of CometContext.notify should block when notifying other CometHandler.

C

callInterrupt - Variable in class com.sun.grizzly.comet.CometTask
true if run() should call cometcontext.interrupt0
chunkLength - Variable in class com.sun.grizzly.comet.CometWriter
Buffer used for chunk length conversion.
com.sun.grizzly.comet - package com.sun.grizzly.comet
 
com.sun.grizzly.comet.concurrent - package com.sun.grizzly.comet.concurrent
 
com.sun.grizzly.comet.handlers - package com.sun.grizzly.comet.handlers
 
CometAsyncFilter - Class in com.sun.grizzly.comet
AJAX/Comet support using the Grizzly Asynchronous Request Processing default mechanism.
CometAsyncFilter() - Constructor for class com.sun.grizzly.comet.CometAsyncFilter
Comet Async Filter.
CometContext<E> - Class in com.sun.grizzly.comet
The main object used by CometHandler and Servlet to push information amongs suspended request/response.
CometContext(String, int) - Constructor for class com.sun.grizzly.comet.CometContext
Create a new instance
cometContext - Variable in class com.sun.grizzly.comet.CometTask
The CometContext associated with this instance.
cometContextCache - Variable in class com.sun.grizzly.comet.CometEngine
cached CometContexts
CometEngine - Class in com.sun.grizzly.comet
Main class allowing Comet support on top of Grizzly Asynchronous Request Processing mechanism.
CometEngine() - Constructor for class com.sun.grizzly.comet.CometEngine
Creat a singleton and initialize all lists required.
cometEngine - Static variable in class com.sun.grizzly.comet.CometEngine
The single instance of this class.
CometEvent<E> - Class in com.sun.grizzly.comet
Simple event class used to pass information between CometHandler and the Comet implementation.
CometEvent() - Constructor for class com.sun.grizzly.comet.CometEvent
Create a new CometEvent
CometEvent(int) - Constructor for class com.sun.grizzly.comet.CometEvent
 
CometEvent(int, CometContext) - Constructor for class com.sun.grizzly.comet.CometEvent
 
CometEvent(int, CometContext, E) - Constructor for class com.sun.grizzly.comet.CometEvent
 
CometHandler<E> - Interface in com.sun.grizzly.comet
This interface represents a suspended connection (or response).
cometHandler - Variable in class com.sun.grizzly.comet.CometTask
The CometHandler associated with this task.
cometHandlerIsAsyncRegistered - Variable in class com.sun.grizzly.comet.CometTask
true if comethandler is registered for async IO in cometcontext.
CometInputStream - Class in com.sun.grizzly.comet
Simple InputStream implementation that is backed by a ByteBuffer
CometInputStream() - Constructor for class com.sun.grizzly.comet.CometInputStream
Creates a new CometInputStream
CometReader - Class in com.sun.grizzly.comet
Non blocking IO reader.
CometReader() - Constructor for class com.sun.grizzly.comet.CometReader
 
CometTask - Class in com.sun.grizzly.comet
A Task implementation that allow Grizzly ARP to invokeCometHandler CometHandler when new data (bytes) are available from the CometSelector.
CometTask() - Constructor for class com.sun.grizzly.comet.CometTask
 
CometTask(CometContext, CometHandler) - Constructor for class com.sun.grizzly.comet.CometTask
New CometTask.
CometWriter - Class in com.sun.grizzly.comet
Non blocking Writer.
CometWriter() - Constructor for class com.sun.grizzly.comet.CometWriter
 
continuationType - Variable in class com.sun.grizzly.comet.CometContext
The CometContext continuationType.

D

DefaultConcurrentCometHandler<E> - Class in com.sun.grizzly.comet.concurrent
We queue events in each CometHandler to lower the probability that slow or massive IO for one CometHandler severely delays events to others.

only streaming mode can benefit from buffering messages like this.
DefaultConcurrentCometHandler() - Constructor for class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
DefaultConcurrentCometHandler(int) - Constructor for class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
DefaultNotificationHandler - Class in com.sun.grizzly.comet
Default Notificationhandler that uses a thread pool dedicated to the CometEngine to execute the notification process.
DefaultNotificationHandler() - Constructor for class com.sun.grizzly.comet.DefaultNotificationHandler
 
DISABLE_CLIENT_DISCONNECTION_DETECTION - Static variable in class com.sun.grizzly.comet.CometEngine
 
DISABLE_SUSPEND_TIMEOUT - Static variable in class com.sun.grizzly.comet.CometEngine
 
doFilter(AsyncExecutor) - Method in class com.sun.grizzly.comet.CometAsyncFilter
Execute the Comet AsyncFilter by delegating the work to the CometEngine.
doTask() - Method in class com.sun.grizzly.comet.CometTask
Notify the CometHandler that bytes are available for read.

E

enqueueEvent(CometEvent) - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
Queues event if another thread is currently working on this handler.
eventInterrupt - Variable in class com.sun.grizzly.comet.CometContext
 
eventTerminate - Variable in class com.sun.grizzly.comet.CometContext
 

F

flushPostExecute(CometTask, boolean) - Method in class com.sun.grizzly.comet.CometEngine
Ensures ProcessorTask is recycled and that SelectionKey is canceled when needed.

G

getAsyncProcessorTask() - Method in class com.sun.grizzly.comet.CometTask
returns the AsyncProcessorTask
getAttribute(Object) - Method in class com.sun.grizzly.comet.CometContext
Retrieve an attribute.
getCometContext(String) - Method in class com.sun.grizzly.comet.CometEngine
Return the CometContext associated with the topic.
getCometContext() - Method in class com.sun.grizzly.comet.CometEvent
Return the CometContext that fired this event.
getCometContext() - Method in class com.sun.grizzly.comet.CometTask
Return the CometContext associated with this instance.
getCometHandler(int) - Method in class com.sun.grizzly.comet.CometContext
Deprecated. 
getCometHandler() - Method in class com.sun.grizzly.comet.CometTask
returns the CometHandler
getCometHandlers() - Method in class com.sun.grizzly.comet.CometContext
Return the current list of active CometHandler
getContextPath() - Method in class com.sun.grizzly.comet.CometContext
Deprecated. - use getTopic.
getEngine() - Static method in class com.sun.grizzly.comet.CometEngine
Return a singleton of this Class.
getExpirationDelay() - Method in class com.sun.grizzly.comet.CometContext
Return the long delay, in millisecond, before a request is resumed.
getIdleTimeoutDelay() - Method in class com.sun.grizzly.comet.CometTask
getNotificationHandler() - Method in class com.sun.grizzly.comet.CometContext
Return the associated NotificationHandler
getSelectionKey() - Method in class com.sun.grizzly.comet.CometTask
returns selectionkey
getThreadPool() - Method in class com.sun.grizzly.comet.CometEngine
returns the threadpool comet is using
getTopic() - Method in class com.sun.grizzly.comet.CometContext
Get the topic representing this instance with this instance.
getType() - Method in class com.sun.grizzly.comet.CometEvent
Return the type of this object.

H

handle(AsyncProcessorTask) - Method in class com.sun.grizzly.comet.CometEngine
Handle an interrupted(or polled) request by matching the current context path with the registered one.
handlers - Variable in class com.sun.grizzly.comet.CometContext
The list of registered CometHandler
handlers() - Method in class com.sun.grizzly.comet.CometContext
Return the internal list of active CometHandler
handleSelectedKey(SelectionKey) - Method in class com.sun.grizzly.comet.CometTask

I

initialize(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Initialize the newly added CometHandler.
INITIALIZE - Static variable in class com.sun.grizzly.comet.CometEvent
Initialize the CometHandler.
interrupt(CometTask, boolean) - Method in class com.sun.grizzly.comet.CometEngine
Interrupt a CometHandler by invoking CometHandler.onInterrupt(com.sun.grizzly.comet.CometEvent)
INTERRUPT - Static variable in class com.sun.grizzly.comet.CometEvent
Interrupt the CometHandler.
interrupt0(CometTask, boolean) - Method in class com.sun.grizzly.comet.CometEngine
Interrupt logic in its own method, so it can be executed either async or sync.
cometHandler.onInterrupt is performed async due to its functionality is unknown, hence not safe to run in the performance critical selector thread.
INVALID_COMET_HANDLER - Static variable in class com.sun.grizzly.comet.CometContext
Generic error message
invokeCometHandler(CometEvent, CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Invoke a CometHandler using the CometEvent
isActive(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Return true if this CometHandler is still active, e.g.
isBlockingNotification() - Method in class com.sun.grizzly.comet.CometContext
Return true if the invoker of CometContext.notify(java.lang.Object) should block when notifying Comet Handlers.
isBlockingNotification() - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
Return true if the invoker of notify() should block when notifying Comet Handlers.
isBlockingNotification() - Method in interface com.sun.grizzly.comet.NotificationHandler
Return true if the invoker of notify() should block when notifying Comet Handlers.
isCometEnabled() - Method in class com.sun.grizzly.comet.CometEngine
Return true is Comet is enabled, e.g.
isComethandlerAsyncRegistered() - Method in class com.sun.grizzly.comet.CometTask
returns true if the comethandler is registered for async io
isComplete() - Method in class com.sun.grizzly.comet.CometWriter
 
isReady() - Method in class com.sun.grizzly.comet.CometReader
Return true if this instance is ready to read.
isReady() - Method in class com.sun.grizzly.comet.CometWriter
Return true if this instance is ready to read.

L

logger - Static variable in class com.sun.grizzly.comet.CometContext
Main logger
logger - Static variable in class com.sun.grizzly.comet.CometEngine
Main logger
logger() - Static method in class com.sun.grizzly.comet.CometEngine
Return the current logger.
logger - Static variable in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 

M

messageQueue - Variable in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
todo replace with non array copying list for non resizing add situations, using internal index to keep track of state , not a linked list, it has too much overhead and eats memory.

N

notificationHandler - Variable in class com.sun.grizzly.comet.CometContext
The default NotificationHandler.
NotificationHandler - Interface in com.sun.grizzly.comet
This class is invoked when the CometContext.notify is invoked.
notify(Object) - Method in class com.sun.grizzly.comet.CometContext
Notify all CometHandler.
notify(Object, int, int) - Method in class com.sun.grizzly.comet.CometContext
Deprecated. - use notify(attachment,eventType,CometHandler;
notify(Object, CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Notify a single CometHandler#onEvent(CometEvent.
notify(Object, int, CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Notify a single CometHandler.
notify(Object, int) - Method in class com.sun.grizzly.comet.CometContext
Notify all CometHandler.
NOTIFY - Static variable in class com.sun.grizzly.comet.CometEvent
Notify the CometHandler.
notify(CometEvent, Iterator<CometHandler>) - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
Notify all CometHandler.
notify(CometEvent, CometHandler) - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
Notify the CometHandler.
notify(CometEvent, Iterator<CometHandler>) - Method in interface com.sun.grizzly.comet.NotificationHandler
Notify all CometHandler.
notify(CometEvent, CometHandler) - Method in interface com.sun.grizzly.comet.NotificationHandler
Notify a single CometHandler.
notify0(CometEvent, CometHandler) - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
Notify a CometHandler.

O

onEvent(CometEvent) - Method in interface com.sun.grizzly.comet.CometHandler
Receive CometEvent notification.
onEvent(CometEvent) - Method in class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Write CometEvent.attachment and resume the connection if useStreaming is false
onInitialize(CometEvent) - Method in interface com.sun.grizzly.comet.CometHandler
Receive CometEvent notification when Grizzly is about to suspend the connection.
onInitialize(CometEvent) - Method in class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Send the startingMessage before the connection get suspended.
onInterrupt(CometEvent) - Method in interface com.sun.grizzly.comet.CometHandler
Receive CometEvent notification when the underlying tcp communication is resumed by Grizzly.
onInterrupt(CometEvent) - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
Receive CometEvent notification when the underlying tcp communication is resumed by Grizzly.
default impl calls terminate()
onInterrupt(CometEvent) - Method in class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Send the endingMessage before the connection get interupted.
onQueueFull(CometEvent) - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
called in synchronized context.
onTerminate(CometEvent) - Method in interface com.sun.grizzly.comet.CometHandler
Receive CometEvent notification when the response is resumed by a CometHandler or by the CometContext
onTerminate(CometEvent) - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
Receive CometEvent notification when the response is resumed by a CometHandler or by the CometContext
default impl calls terminate()
onTerminate(CometEvent) - Method in class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Send the endingMessage before the connection get terminated.

P

printWriter - Variable in class com.sun.grizzly.comet.handlers.ReflectorCometHandler
 

R

READ - Static variable in class com.sun.grizzly.comet.CometEvent
Notify the CometHandler of available bytes.
read(byte[]) - Method in class com.sun.grizzly.comet.CometReader
Read bytes without blocking.
read(byte[], int, int) - Method in class com.sun.grizzly.comet.CometReader
Read bytes without blocking.
recycle() - Method in class com.sun.grizzly.comet.CometContext
Recycle this object.
recycle() - Method in class com.sun.grizzly.comet.CometInputStream
Recycle the stream.
recycle() - Method in class com.sun.grizzly.comet.CometReader
Recycle this object.
recycle() - Method in class com.sun.grizzly.comet.CometWriter
 
ReflectorCometHandler - Class in com.sun.grizzly.comet.handlers
Simple CometHandler that write (using a PrintWriter) all messages (CometEvent.attachment it receive.
ReflectorCometHandler() - Constructor for class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Create a reflector.
ReflectorCometHandler(boolean) - Constructor for class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Create a reflector.
ReflectorCometHandler(boolean, String, String) - Constructor for class com.sun.grizzly.comet.handlers.ReflectorCometHandler
Create a reflector.
register(String) - Method in class com.sun.grizzly.comet.CometEngine
Register a context path with this CometEngine.
register(String, int) - Method in class com.sun.grizzly.comet.CometEngine
Register a context path with this CometEngine.
register(String, int, Class<? extends NotificationHandler>) - Method in class com.sun.grizzly.comet.CometEngine
Instanciate a new CometContext.
registerAsyncRead(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Register for asynchronous read event (CometEvent#READ}.
registerAsyncWrite(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Register for asynchronous write event (CometEvent#WRITE} .As soon as Grizzly detects there is some OS buffer available for write operations, your CometHandler.onEvent(CometEvent) will be invoked.
release(SelectionKey) - Method in class com.sun.grizzly.comet.CometTask
This should never be called for for comet, due to we are nulling the attachment and completely overriding the selector.select logic.
called by grizzly when the selectionkey is canceled and its socket closed.
removeAttribute(Object) - Method in class com.sun.grizzly.comet.CometContext
Remove an attribute.
removeCometHandler(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Remove a CometHandler.
removeCometHandler(CometHandler, boolean) - Method in class com.sun.grizzly.comet.CometContext
Remove a CometHandler.
removeCometHandler(int) - Method in class com.sun.grizzly.comet.CometContext
Deprecated. 
resetSuspendIdleTimeout() - Method in class com.sun.grizzly.comet.CometContext
Reset the current timestamp on a suspended connection.
resumeCometHandler(CometHandler) - Method in class com.sun.grizzly.comet.CometContext
Resume the Comet request and remove it from the active CometHandler list.
run() - Method in class com.sun.grizzly.comet.CometTask
Performs doTask() or cometContext.interrupt0

S

setAsyncProcessorTask(AsyncProcessorTask) - Method in class com.sun.grizzly.comet.CometTask
sets the AsyncProcessorTask
setBlockingNotification(boolean) - Method in class com.sun.grizzly.comet.CometContext
Set to true if the invoker of CometContext.notify(java.lang.Object) should block when notifying Comet Handlers.
setBlockingNotification(boolean) - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
Set to true if the invoker of notify() should block when notifying Comet Handlers.
setBlockingNotification(boolean) - Method in interface com.sun.grizzly.comet.NotificationHandler
Set to true if the invoker of notify() should block when notifying Comet Handlers.
setChannel(SocketChannel) - Method in class com.sun.grizzly.comet.CometReader
Set the underlying SocketChannel.
setChannel(SocketChannel) - Method in class com.sun.grizzly.comet.CometWriter
 
setCometContext(CometContext) - Method in class com.sun.grizzly.comet.CometEvent
Set the CometContext that fired this event.
setComethandlerIsAsyncRegistered(boolean) - Method in class com.sun.grizzly.comet.CometTask
sets the comettask async interest flag in the comettask
setExpirationDelay(long) - Method in class com.sun.grizzly.comet.CometContext
Set the long delay before a request is resumed.
setNotificationHandler(NotificationHandler) - Method in class com.sun.grizzly.comet.CometContext
Set the current NotificationHandler
setReady(boolean) - Method in class com.sun.grizzly.comet.CometWriter
false if this instance is no longer ready to read.
setSpreadNotifyToManyToThreads(boolean) - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
if true a notify to Iterator will be spread into one runnable task for each comethandler.
setThreadPool(ExtendedThreadPool) - Method in class com.sun.grizzly.comet.CometEngine
sets the default ThreadPool that DefaultNotificationHandler use.
setThreadPool(ExecutorService) - Method in class com.sun.grizzly.comet.DefaultNotificationHandler
Set the ExecutorService used for notifying the CometHandler.
setType(int) - Method in class com.sun.grizzly.comet.CometEvent
Set the type of this object.

T

TERMINATE - Static variable in class com.sun.grizzly.comet.CometEvent
Terminate the CometHandler.
terminate() - Method in class com.sun.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
threadPool - Variable in class com.sun.grizzly.comet.CometEngine
The ExecutorService used to execute CometTask
threadPool - Variable in class com.sun.grizzly.comet.DefaultNotificationHandler
The ExecutorService used to execute threaded notification.
timedOut(SelectionKey) - Method in class com.sun.grizzly.comet.CometTask
topic - Variable in class com.sun.grizzly.comet.CometContext
The context path associated with this instance.
toString() - Method in class com.sun.grizzly.comet.CometContext
Helper.
type - Variable in class com.sun.grizzly.comet.CometEvent
This type of event.

U

unregister(String) - Method in class com.sun.grizzly.comet.CometEngine
Unregister the CometHandler to the list of the CometContext.
upcoming_op_isread - Variable in class com.sun.grizzly.comet.CometTask
The current non blocking operation.
updatedContexts - Static variable in class com.sun.grizzly.comet.CometEngine
Store updatedCometContext.

W

WRITE - Static variable in class com.sun.grizzly.comet.CometEvent
Notify the CometHandler when the channel is writable.
write(byte[]) - Method in class com.sun.grizzly.comet.CometWriter
 
write(byte[], int, int) - Method in class com.sun.grizzly.comet.CometWriter
 

A B C D E F G H I L M N O P R S T U W

Copyright © 2010 Oracle. All Rights Reserved.