SessionListenerto receive incoming events.SessionListenerto receive incoming events from the
new session.SessionListener.ExceptionMonitor which logs uncaught exceptions.connectionClosed' event to registered
SessionListeners.connectionEstablished' event to registered
SessionListeners.sessionIdle' event to registered
SessionListeners.messageReceived' event to registered
SessionListeners.messageSent' event to registered
SessionListeners.sessionIdle' event to registered
SessionListeners.SessionConfiginstead.SessionConfiginstead.EventDispatcherwho dispatches the events of this
session.EventDispatcherthat will be passed to newly created
sessions' constructor.ExceptionMonitor.ExceptionMonitor.ExceptionMonitor.SessionConfiginstead.SessionConfiginstead.IoProcessorthat will be passed to newly created
sessions' constructor.SessionConfiginstead.Session.write(Message).MessageRecognizerwho recognizes the incoming data
from this session.MessageRecognizerthat will be passed to newly
created sessions' constructor.Session.write(Message).Messagethat is being read now.SessionListeners.0 because this thread is not multi-threaded.SessionConfiginstead.SessionConfiginstead.Messagethat is being written now.EventDispatcher.IoProcessor.true if the connection is closed.true if once Session.close()is called and close
operation is pending.true if the connection is open.true if the connection attempt is being made.true if and only if this session is idle.true only if this I/O processor is started.true
- isStarted() - Method in class net.gleamynode.netty2.SessionServer
-
Returns
true if this server is started.
- isStarted() - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcher
-
Returns
true if this event dispatcher is started.
- isStarted() - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcherMBean
-
- isTraceEnabled() - Method in class net.gleamynode.netty2.SessionLog
-
- isWarnEnabled() - Method in class net.gleamynode.netty2.SessionLog
-
L
- localEventQueue - Variable in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher.AbstractWorker
-
- logError(String, Throwable) - Static method in class net.gleamynode.netty2.ExceptionLoggingMonitor
-
- LowLatencyEventDispatcher - Class in net.gleamynode.netty2
-
An
EventDispatcherthat provides low latency.
- LowLatencyEventDispatcher() - Constructor for class net.gleamynode.netty2.LowLatencyEventDispatcher
-
Creates a new low latency event dispatcher.
- LowLatencyEventDispatcherMBean - Interface in net.gleamynode.netty2
-
JMX (Java Management
eXtenstions) support interface for
LowLatencyEventDispatcher.
M
- Message - Interface in net.gleamynode.netty2
-
An interface that represents a message read from/written into channels.
- MessageParseException - Exception in net.gleamynode.netty2
-
An exception that is thrown when
MessageRecognizeror Message
cannot understand or validate incoming data.
- MessageParseException() - Constructor for exception net.gleamynode.netty2.MessageParseException
-
Constructs a new instance.
- MessageParseException(String) - Constructor for exception net.gleamynode.netty2.MessageParseException
-
Constructs a new instance with the specified message.
- MessageParseException(Throwable) - Constructor for exception net.gleamynode.netty2.MessageParseException
-
Constructs a new instance with the specified cause.
- MessageParseException(String, Throwable) - Constructor for exception net.gleamynode.netty2.MessageParseException
-
Constructs a new instance with the specified message and the specified
cause.
- messageReceived(Session, Message) - Method in interface net.gleamynode.netty2.SessionListener
-
Invoked when a message has arrived.
- MessageRecognizer - Interface in net.gleamynode.netty2
-
Converts
ByteBufferinto Message.
- messageSent(Session, Message) - Method in interface net.gleamynode.netty2.SessionListener
-
Invoked when a message has been sent.
N
- net.gleamynode.netty2 - package net.gleamynode.netty2
-
Netty2 main package.
- newWorker() - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- newWorker() - Method in class net.gleamynode.netty2.OrderedEventDispatcher
-
- newWorker() - Method in class net.gleamynode.netty2.SimpleEventDispatcher
-
O
- onDisconnection(Session) - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher.AbstractWorker
-
- onEnd() - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher.AbstractWorker
-
- OrderedEventDispatcher - Class in net.gleamynode.netty2
-
A thread-pooled
EventDispatcherthat the events for the same session
occurs in the same order it was generated actually.
- OrderedEventDispatcher() - Constructor for class net.gleamynode.netty2.OrderedEventDispatcher
-
Creates a new instance.
- OrderedEventDispatcherMBean - Interface in net.gleamynode.netty2
-
JMX (Java Management
eXtenstions) support interface for
OrderedEventDispatcher.
R
- read(ByteBuffer) - Method in interface net.gleamynode.netty2.Message
-
Reads the message from the specified buffer.
- READY_TO_READ - Static variable in class net.gleamynode.netty2.EventType
-
- READY_TO_WRITE - Static variable in class net.gleamynode.netty2.EventType
-
- RECEIVED - Static variable in class net.gleamynode.netty2.EventType
-
- recognize(ByteBuffer) - Method in interface net.gleamynode.netty2.MessageRecognizer
-
Converts
ByteBufferinto Message.
- removeSessionListener(SessionListener) - Method in class net.gleamynode.netty2.Session
-
Unsubscribe a
SessionListenerto stop receiving incoming events.
- removeSessionListener(SessionListener) - Method in class net.gleamynode.netty2.SessionServer
-
Unsubscribe a
SessionListenerto stop receiving incoming events
from the new session.
- removeWorker() - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- removeWorker() - Method in class net.gleamynode.netty2.OrderedEventDispatcher
-
- removeWorker() - Method in class net.gleamynode.netty2.SimpleEventDispatcher
-
- run() - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher.AbstractWorker
-
S
- SENT - Static variable in class net.gleamynode.netty2.EventType
-
- Session - Class in net.gleamynode.netty2
-
Represents a TCP/IP socket connection and provides methods to read/write
events from/to
IoProcessorvia EventDispatcher.
- Session() - Constructor for class net.gleamynode.netty2.Session
-
Constructs a non-initialized session.
- Session(IoProcessor, SocketChannel, MessageRecognizer, EventDispatcher) - Constructor for class net.gleamynode.netty2.Session
-
Constructs a new session with the specified channel and with the default
settings.
- Session(IoProcessor, SocketAddress, MessageRecognizer, EventDispatcher) - Constructor for class net.gleamynode.netty2.Session
-
Constructs a new session that connects to the specified socket address
with the default settings.
- Session(IoProcessor, SocketChannel, MessageRecognizer, EventDispatcher, SessionConfig) - Constructor for class net.gleamynode.netty2.Session
-
Constructs a new session with the specified channel and with the
specified settings.
- Session(IoProcessor, SocketAddress, MessageRecognizer, EventDispatcher, SessionConfig) - Constructor for class net.gleamynode.netty2.Session
-
Constructs a new session that connects to the specified socket address
with the specified settings.
- SessionConfig - Class in net.gleamynode.netty2
-
Contains properties for
Sessions.
- SessionConfig() - Constructor for class net.gleamynode.netty2.SessionConfig
-
Creates a new instance with default settings.
- SessionConfigMBean - Interface in net.gleamynode.netty2
-
JMX (Java Management
eXtenstions) support interface for
SessionConfig.
- sessionIdle(Session) - Method in interface net.gleamynode.netty2.SessionListener
-
Invoked when the session is idle for predefined amount of time.
- SessionListener - Interface in net.gleamynode.netty2
-
An event listener that handles session events dispatched from
EventDispatcher.
- SessionLog - Class in net.gleamynode.netty2
-
Apache Jakarta Commons Logging helper.
- SessionLog(Session, Log) - Constructor for class net.gleamynode.netty2.SessionLog
-
- SessionServer - Class in net.gleamynode.netty2
-
Listens to the TCP/IP port, accepts the incoming connections, and starts the
corresponding
Sessions.
- SessionServer() - Constructor for class net.gleamynode.netty2.SessionServer
-
Creates a new instance.
- setAttachment(Object) - Method in class net.gleamynode.netty2.Session
-
Sets the attachment of this session.
- setBacklog(int) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the backlog value of the server socket.
- setBindAddress(SocketAddress) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the socket address this server listens on.
- setByteOrder(ByteOrder) - Method in class net.gleamynode.netty2.SessionConfig
-
- setChannel(SocketChannel) - Method in class net.gleamynode.netty2.Session
-
Sets the underlying socket channel of this session.
- setConfig(SessionConfig) - Method in class net.gleamynode.netty2.Session
-
Sets the current settings of this session.
- setConnectTimeout(int) - Method in class net.gleamynode.netty2.Session
-
Deprecated.
Use
SessionConfiginstead.
- setConnectTimeout(int) - Method in class net.gleamynode.netty2.SessionConfig
-
Sets connect timeout in seconds.
- setConnectTimeout(int) - Method in interface net.gleamynode.netty2.SessionConfigMBean
-
- setControllerThreadPriority(int) - Method in class net.gleamynode.netty2.IoProcessor
-
Sets the priority of controller threads.
- setControllerThreadPriority(int) - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- setDefaultConfig(SessionConfig) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the default configuration of newly created sessions.
- setEventDispatcher(EventDispatcher) - Method in class net.gleamynode.netty2.Session
-
Sets the
EventDispatcherwho dispatches the events of this
session.
- setEventDispatcher(EventDispatcher) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the
EventDispatcherthat will be passed to newly created
sessions' constructor.
- setExceptionMonitor(ExceptionMonitor) - Method in class net.gleamynode.netty2.IoProcessor
-
Sets the
ExceptionMonitor.
- setExceptionMonitor(ExceptionMonitor) - Method in class net.gleamynode.netty2.Session
-
Sets the
ExceptionMonitor.
- setExceptionMonitor(ExceptionMonitor) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the
ExceptionMonitor.
- setIdleTime(int) - Method in class net.gleamynode.netty2.Session
-
Deprecated.
Use
SessionConfiginstead.
- setIdleTime(int) - Method in class net.gleamynode.netty2.SessionConfig
-
Sets the idle time of this session in seconds.
- setIdleTime(int) - Method in interface net.gleamynode.netty2.SessionConfigMBean
-
- setIoProcessor(IoProcessor) - Method in class net.gleamynode.netty2.Session
-
Sets the I/O processor this session reads and writes the message via.
- setIoProcessor(IoProcessor) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the
IoProcessorthat will be passed to newly created
sessions' constructor.
- setMaxQueuedWriteCount(int) - Method in class net.gleamynode.netty2.Session
-
Deprecated.
Use
SessionConfiginstead.
- setMaxQueuedWriteCount(int) - Method in class net.gleamynode.netty2.SessionConfig
-
Sets the maximum number of remaining write requests which were queued by
Session.write(Message).
- setMaxQueuedWriteCount(int) - Method in interface net.gleamynode.netty2.SessionConfigMBean
-
- setMessageRecognizer(MessageRecognizer) - Method in class net.gleamynode.netty2.Session
-
Sets the
MessageRecognizerwho recognizes the incoming data from
this session.
- setMessageRecognizer(MessageRecognizer) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the
MessageRecognizerthat will be passed to newly created
sessions' constructor.
- setReadTries(int) - Method in class net.gleamynode.netty2.IoProcessor
-
Deprecated.
Netty2 now automatically retries a read operation until it
returns 0.
- setReadTries(int) - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- setSocketAddress(SocketAddress) - Method in class net.gleamynode.netty2.Session
-
Sets the socket address this session will connect to.
- setThreadName(String) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the name of the server thread.
- setThreadNamePrefix(String) - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- setThreadNamePrefix(String) - Method in class net.gleamynode.netty2.IoProcessor
-
Sets the prefix of the I/O thread name.
- setThreadNamePrefix(String) - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- setThreadNamePrefix(String) - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcher
-
Sets the prefix of dispatcher thread name.
- setThreadNamePrefix(String) - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcherMBean
-
- setThreadPoolSize(int) - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- setThreadPoolSize(int) - Method in class net.gleamynode.netty2.IoProcessor
-
Sets the number of worker threads.
- setThreadPoolSize(int) - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- setThreadPoolSize(int) - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcher
-
Sets the number of dispatcher threads.
- setThreadPoolSize(int) - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcherMBean
-
- setThreadPriority(int) - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- setThreadPriority(int) - Method in class net.gleamynode.netty2.IoProcessor
-
Sets the priority of worker threads.
- setThreadPriority(int) - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- setThreadPriority(int) - Method in class net.gleamynode.netty2.SessionServer
-
Sets the priority of the server thread.
- setThreadPriority(int) - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcher
-
Sets the priority of dispatcher threads.
- setThreadPriority(int) - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcherMBean
-
- setWriteTimeout(int) - Method in class net.gleamynode.netty2.Session
-
Deprecated.
Use
SessionConfiginstead.
- setWriteTimeout(int) - Method in class net.gleamynode.netty2.SessionConfig
-
Sets write timeout in seconds.
- setWriteTimeout(int) - Method in interface net.gleamynode.netty2.SessionConfigMBean
-
- SimpleEventDispatcher - Class in net.gleamynode.netty2
-
A thread-pooled
EventDispatcherthat the events for the same session
does NOT occur in the same order it was generated actually.
- SimpleEventDispatcher() - Constructor for class net.gleamynode.netty2.SimpleEventDispatcher
-
Creates a new instance.
- SimpleEventDispatcherMBean - Interface in net.gleamynode.netty2
-
JMX (Java Management
eXtenstions) support interface for
SimpleEventDispatcher.
- start() - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- start() - Method in class net.gleamynode.netty2.IoProcessor
-
Starts all controllers and worker threads.
- start() - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- start() - Method in class net.gleamynode.netty2.Session
-
Starts communication.
- start() - Method in class net.gleamynode.netty2.SessionServer
-
Starts accepting the incoming connections.
- start() - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcher
-
Starts this event dispatcher.
- start() - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcherMBean
-
- stop() - Method in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- stop() - Method in class net.gleamynode.netty2.IoProcessor
-
Stops all controllers and worker threads.
- stop() - Method in interface net.gleamynode.netty2.IoProcessorMBean
-
- stop() - Method in class net.gleamynode.netty2.SessionServer
-
Stops accepting the incoming connections.
- stop() - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcher
-
Stops this event dispatcher.
- stop() - Method in interface net.gleamynode.netty2.ThreadPooledEventDispatcherMBean
-
T
- ThreadPooledEventDispatcher - Interface in net.gleamynode.netty2
-
An interface for thread-pooled event dispatchers.
- ThreadPooledEventDispatcherMBean - Interface in net.gleamynode.netty2
-
JMX (Java Management
eXtenstions) support interface for thread-pooled event dispatchers.
- toString() - Method in class net.gleamynode.netty2.EventType
-
- trace(Log, Session, Object) - Static method in class net.gleamynode.netty2.SessionLog
-
- trace(Log, Session, Object, Throwable) - Static method in class net.gleamynode.netty2.SessionLog
-
- trace(Object) - Method in class net.gleamynode.netty2.SessionLog
-
- trace(Object, Throwable) - Method in class net.gleamynode.netty2.SessionLog
-
W
- warn(Log, Session, Object) - Static method in class net.gleamynode.netty2.SessionLog
-
- warn(Log, Session, Object, Throwable) - Static method in class net.gleamynode.netty2.SessionLog
-
- warn(Object) - Method in class net.gleamynode.netty2.SessionLog
-
- warn(Object, Throwable) - Method in class net.gleamynode.netty2.SessionLog
-
- workers - Variable in class net.gleamynode.netty2.AbstractThreadPooledEventDispatcher
-
- write(ByteBuffer) - Method in interface net.gleamynode.netty2.Message
-
Writes this message into the specified buffer.
- write(Message) - Method in class net.gleamynode.netty2.Session
-
Writes the specified message to the socket channel.
- write(Message, long) - Method in class net.gleamynode.netty2.Session
-
Writes the specified message to the socket channel.
A C D E F G I L M N O R S T W Copyright © 2004-2012 Trustin Lee. All Rights Reserved.