Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
G
H
I
M
N
O
P
R
S
T
W
A
AbstractConnectionManager
- class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
.
Abstract implementation of
ConnectionManager
.
AbstractConnectionManager()
- Constructor for class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
AbstractRequestHandler
- class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
.
AbstractRequestHandler()
- Constructor for class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
AcceptorMonitor
- interface org.jcomponent.netserve.sockets.impl.
AcceptorMonitor
.
Monitor used to monitor events in the AcceptorManager.
AvalonConnectionManager
- class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
.
An implementation of ConnectionManager which honours the Avalon framework interfaces.
AvalonConnectionManager()
- Constructor for class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
acceptorClosing(String, ServerSocket)
- Method in interface org.jcomponent.netserve.sockets.impl.
AcceptorMonitor
About to close down acceptor and stop listening for connections.
acceptorClosing(String, ServerSocket)
- Method in class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
acceptorCreated(String, ServerSocket)
- Method in interface org.jcomponent.netserve.sockets.impl.
AcceptorMonitor
Aceptor create with name for specified socket.
acceptorCreated(String, ServerSocket)
- Method in class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
acceptorDisconnecting(String, boolean)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
aquireHandler()
- Method in interface org.jcomponent.netserve.connection.
ConnectionHandlerManager
Aquire a ConnectionHandler.
aquireHandler(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
ManagedRequestHandler
Retrieve the underlying handler.
C
ConnectionHandler
- interface org.jcomponent.netserve.connection.
ConnectionHandler
.
Implement this interface to process incoming socket connections.
ConnectionHandlerManager
- interface org.jcomponent.netserve.connection.
ConnectionHandlerManager
.
This manages creation and destruction of ConnectionHandler objects.
ConnectionManager
- interface org.jcomponent.netserve.connection.
ConnectionManager
.
This service is used to manage serverside network acceptors.
ConnectionMonitor
- interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
.
Monitor interface for Connection.
compose(ResourceLocator)
- Method in class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
configure(Configuration)
- Method in class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
Configure the ConnectionManager.
configure(Configuration)
- Method in class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
Configure the ConnectionManager.
connect(String, ServerSocket, ConnectionHandlerManager, ThreadPool)
- Method in interface org.jcomponent.netserve.connection.
ConnectionManager
Start managing a connection.
connect(String, ServerSocket, ConnectionHandlerManager)
- Method in interface org.jcomponent.netserve.connection.
ConnectionManager
Start managing a connection.
connect(String, ServerSocket, ConnectionHandlerManager, ThreadPool)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
Start managing a connection.
connect(String, ServerSocket, ConnectionHandlerManager)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
Start managing a connection.
connect(String, ServerSocket, ConnectionHandler)
- Method in interface org.jcomponent.netserve.sockets.
SocketAcceptorManager
Start accepting connections from a socket and passing connections to specified handler.
connect(String, ServerSocket, ConnectionHandler)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
Start accepting connections from a socket and passing connections to specified handler.
connectionEnding(String, Socket)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
connectionStarting(String, Socket)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
createRunnable(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Create Runnable to perform the request.
createServerSocket(int)
- Method in interface org.jcomponent.netserve.sockets.
ServerSocketFactory
Creates a socket on specified port.
createServerSocket(int, int)
- Method in interface org.jcomponent.netserve.sockets.
ServerSocketFactory
Creates a socket on specified port with a specified backlog.
createServerSocket(int, int, InetAddress)
- Method in interface org.jcomponent.netserve.sockets.
ServerSocketFactory
Creates a socket on a particular network interface on specified port with a specified backlog.
createServerSocket(int)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultServerSocketFactory
Creates a socket on specified port.
createServerSocket(int, int)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultServerSocketFactory
Creates a socket on specified port with a specified backlog.
createServerSocket(int, int, InetAddress)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultServerSocketFactory
Creates a socket on a particular network interface on specified port with a specified backlog.
createSocket(InetAddress, int)
- Method in interface org.jcomponent.netserve.sockets.
SocketFactory
Create a socket that connects to specified remote address.
createSocket(InetAddress, int, InetAddress, int)
- Method in interface org.jcomponent.netserve.sockets.
SocketFactory
Create a socket that connects to specified remote address and originates from specified local address.
createSocket(InetAddress, int)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultSocketFactory
Create a socket that connects to specified remote address.
createSocket(InetAddress, int, InetAddress, int)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultSocketFactory
Create a socket that connects to specified remote address and originates from specified local address.
D
DNAConnectionManager
- class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
.
An implementation of ConnectionManager which honours the DNA framework interfaces.
DNAConnectionManager()
- Constructor for class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
DefaultAcceptorManager
- class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
.
Default implementation of
SocketAcceptorManager
that uses a thread per acceptor approach.
DefaultAcceptorManager()
- Constructor for class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
DefaultSelectorManager
- class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
.
The SelectorManager makes it easy to start a selector in a thread and receive events on selection.
DefaultSelectorManager()
- Constructor for class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
DefaultServerSocketFactory
- class org.jcomponent.netserve.sockets.impl.
DefaultServerSocketFactory
.
Factory implementation for vanilla TCP sockets.
DefaultServerSocketFactory()
- Constructor for class org.jcomponent.netserve.sockets.impl.
DefaultServerSocketFactory
DefaultSocketFactory
- class org.jcomponent.netserve.sockets.impl.
DefaultSocketFactory
.
A SocketFactory that creates vanilla sockets.
DefaultSocketFactory()
- Constructor for class org.jcomponent.netserve.sockets.impl.
DefaultSocketFactory
disconnect(String, boolean)
- Method in interface org.jcomponent.netserve.connection.
ConnectionManager
This shuts down all handlers and the associated ServerSocket.
disconnect(String, boolean)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
This shuts down all handlers and the associated ServerSocket.
disconnect(String)
- Method in interface org.jcomponent.netserve.sockets.
SocketAcceptorManager
This shuts down the named acceptor.
disconnect(String)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
This shuts down the acceptor and the associated ServerSocket.
dispose()
- Method in class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
Dispose the ConnectionManager which involves shutting down all the connected acceptors.
dispose()
- Method in class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
Dispose the ConnectionManager which involves shutting down all the connected acceptors.
dispose()
- Method in class org.jcomponent.netserve.connection.impl.
PicoConnectionManager
Dispose the ConnectionManager which involves shutting down all the connected acceptors.
disposingHandler(String, Socket)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
doPerformRequest(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
doPerformRequest(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
ManagedRequestHandler
Actually handle the request.
doPerformRequest(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
ThreadPerRequestHandler
Delegate request to supplied handler.
E
enableLogging(Logger)
- Method in class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
Enable logging
enableLogging(Logger)
- Method in class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
Enable logging
endConnection(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
End connection for socket.
enteringSelect()
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
enteringSelect()
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
Entering select call.
enteringSelectorLoop()
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
enteringSelectorLoop()
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
Entering the main loop that accepts connections.
errorAcceptingConnection(String, IOException)
- Method in interface org.jcomponent.netserve.sockets.impl.
AcceptorMonitor
There was an error accepting client connections.
errorAcceptingConnection(String, IOException)
- Method in class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
errorAquiringHandler(String, Exception)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
errorClosingConnection(Socket, Throwable)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Notify handler of an error closing socket.
errorClosingSelector(IOException)
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
errorClosingSelector(IOException)
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
There was an error closing selector.
errorClosingServerSocket(String, IOException)
- Method in interface org.jcomponent.netserve.sockets.impl.
AcceptorMonitor
There was an error closing server socket.
errorClosingServerSocket(String, IOException)
- Method in class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
errorClosingSocket(String, Socket, Exception)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
errorHandlerAlreadyDisposed(String, Socket)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
errorHandlingConnection(Socket, Throwable)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Notify handler of an error handling socket.
errorHandlingConnection(String, Socket, Exception)
- Method in interface org.jcomponent.netserve.connection.impl.
ConnectionMonitor
exitingSelectorLoop()
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
exitingSelectorLoop()
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
Exiting the main loop that accepts connections.
G
getMonitor()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Return the monitor associated with manager.
getSelector()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Return the selector associated with reactor.
getSelectorLock()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Return the lock used to synchronize access to selector.
getThreadName(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Return the name should be set for current thread.
getThreadName()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Return the name of thread that Selector will run in.
H
HANDLER
- Static variable in class org.jcomponent.netserve.selector.impl.
NullSelectorEventHandler
Constant containing instance of NullSelectorEventHandler.
handleConnection(Socket)
- Method in interface org.jcomponent.netserve.connection.
ConnectionHandler
Processes connections as they occur.
handleConnection(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Handle a connection.
handleConnection(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
ThreadPerRequestHandler
Execute each request in a separate thread.
handleSelectorEvent(SelectionKey, Object)
- Method in interface org.jcomponent.netserve.selector.
SelectorEventHandler
Method that receives events from selector.
handleSelectorEvent(SelectionKey, Object)
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorEventHandler
handlingSelectEvent(SelectionKey)
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
handlingSelectEvent(SelectionKey)
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
About to handle a selection event.
I
initialize()
- Method in class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
Initialize Connection Manager.
initialize()
- Method in class org.jcomponent.netserve.connection.impl.
DNAConnectionManager
Initialize Connection Manager.
invalidAttachment(SelectionKey)
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
invalidAttachment(SelectionKey)
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
The specified key has an invalid attachment.
isConnected(String)
- Method in interface org.jcomponent.netserve.sockets.
SocketAcceptorManager
Return true if acceptor with specified name exists.
isConnected(String)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
Return true if acceptor with specified name exists.
isRunning()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Return true if the selector is manager is running.
M
MONITOR
- Static variable in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
Constant containing instance of NullSelectorMonitor.
MONITOR
- Static variable in class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
Add constant for instance of Null Monitor.
ManagedRequestHandler
- class org.jcomponent.netserve.connection.handlers.
ManagedRequestHandler
.
A handler that allows user to handle ConnectionHandlers.
ManagedRequestHandler()
- Constructor for class org.jcomponent.netserve.connection.handlers.
ManagedRequestHandler
N
NullAcceptorMonitor
- class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
.
A noop monitor.
NullAcceptorMonitor()
- Constructor for class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
NullSelectorEventHandler
- class org.jcomponent.netserve.selector.impl.
NullSelectorEventHandler
.
Basic implementation of SelectorEventHandler that does nothing.
NullSelectorEventHandler()
- Constructor for class org.jcomponent.netserve.selector.impl.
NullSelectorEventHandler
NullSelectorMonitor
- class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
.
A Null SelectorMonitor.
NullSelectorMonitor()
- Constructor for class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
O
org.jcomponent.netserve.connection
- package org.jcomponent.netserve.connection
org.jcomponent.netserve.connection.handlers
- package org.jcomponent.netserve.connection.handlers
org.jcomponent.netserve.connection.impl
- package org.jcomponent.netserve.connection.impl
org.jcomponent.netserve.selector
- package org.jcomponent.netserve.selector
org.jcomponent.netserve.selector.impl
- package org.jcomponent.netserve.selector.impl
org.jcomponent.netserve.sockets
- package org.jcomponent.netserve.sockets
org.jcomponent.netserve.sockets.impl
- package org.jcomponent.netserve.sockets.impl
P
PicoConnectionManager
- class org.jcomponent.netserve.connection.impl.
PicoConnectionManager
.
An implementation of
ConnectionManager
which is PicoContainer compatible.
PicoConnectionManager(ThreadPool)
- Constructor for class org.jcomponent.netserve.connection.impl.
PicoConnectionManager
Create component but only specify the default thread pool.
PicoConnectionManager(ConnectionMonitor, ThreadPool)
- Constructor for class org.jcomponent.netserve.connection.impl.
PicoConnectionManager
Create ConnectionManager specifying monitor and thread pool.
PicoConnectionManager(ConnectionMonitor, ThreadPool, SocketAcceptorManager, boolean, int)
- Constructor for class org.jcomponent.netserve.connection.impl.
PicoConnectionManager
Constructor.
performRequest(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Perform the request for socket by delegating to underlying handler.
R
registerChannel(SelectableChannel, int, SelectorEventHandler, Object)
- Method in interface org.jcomponent.netserve.selector.
SelectorManager
Register a channel with selector.
registerChannel(SelectableChannel, int, SelectorEventHandler, Object)
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
releaseHandler(ConnectionHandler)
- Method in interface org.jcomponent.netserve.connection.
ConnectionHandlerManager
Release the ConnectionHandler to the manager.
releaseHandler(ConnectionHandler)
- Method in class org.jcomponent.netserve.connection.handlers.
ManagedRequestHandler
Release the underlying handler.
run()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
This is the main connection accepting loop.
S
SelectorEventHandler
- interface org.jcomponent.netserve.selector.
SelectorEventHandler
.
Interface implemente to receive events from a Selector.
SelectorManager
- interface org.jcomponent.netserve.selector.
SelectorManager
.
Service enabling management of Non-blocking IO Channels.
SelectorMonitor
- interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
.
Monitor used to monitor events in the AcceptorManager.
ServerSocketFactory
- interface org.jcomponent.netserve.sockets.
ServerSocketFactory
.
Service used to create server sockets.
SocketAcceptorManager
- interface org.jcomponent.netserve.sockets.
SocketAcceptorManager
.
This service is used to manage network acceptors.
SocketFactory
- interface org.jcomponent.netserve.sockets.
SocketFactory
.
Service used to create client sockets.
selectCompleted(int)
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
selectCompleted(int)
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
Aselect has completed.
selectorShutdown()
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
selectorShutdown()
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
Selector being shutdown.
selectorStartup()
- Method in class org.jcomponent.netserve.selector.impl.
NullSelectorMonitor
selectorStartup()
- Method in interface org.jcomponent.netserve.selector.impl.
SelectorMonitor
Selector being started up.
serverSocketListening(String, ServerSocket)
- Method in interface org.jcomponent.netserve.sockets.impl.
AcceptorMonitor
Listening for connection attempts in acceptor.
serverSocketListening(String, ServerSocket)
- Method in class org.jcomponent.netserve.sockets.impl.
NullAcceptorMonitor
service(ServiceManager)
- Method in class org.jcomponent.netserve.connection.impl.
AvalonConnectionManager
Get ThreadPool service if present.
setAcceptorManager(SocketAcceptorManager)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
setDefaultThreadPool(ThreadPool)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
setForceShutdown(boolean)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
setInactive()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Set a flag to indicate reactor is inactive.
setMonitor(ConnectionMonitor)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
Set the ConnectionMonitor that receives events when changes occur.
setMonitor(SelectorMonitor)
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Set the SelectorMonitor that receives events when changes occur.
setMonitor(AcceptorMonitor)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
Set the AcceptorMonitor that receives events when changes occur.
setRunning(boolean)
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Set the flag to specify whether th Reactor is running.
setSelector(Selector)
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Set the selector associated with reactor.
setShutdownTimeout(int)
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
setShutdownTimeout(int)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
Set timeout for shutting down handlers.
setSoTimeout(int)
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
Set the value that we are to set SO_TIMEOUT to if the user has not already set the timeout.
setTimeout(int)
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Set the timeout on the selector.
setupThreadName(Socket)
- Method in class org.jcomponent.netserve.connection.handlers.
AbstractRequestHandler
Setup the name of the thread.
shutdown()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Method to shutdown the SelectorManager.
shutdownAcceptors()
- Method in class org.jcomponent.netserve.connection.impl.
AbstractConnectionManager
Dispose the ConnectionManager which involves shutting down all the connected acceptors.
shutdownAcceptors()
- Method in class org.jcomponent.netserve.sockets.impl.
DefaultAcceptorManager
Dispose the ConnectionManager which involves shutting down all the connected acceptors.
shutdownSelector()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Shutdown the selector and any associated acceptors.
startThread()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Start the thread to accept connections.
startup()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Initialize the selector to monitor accept attempts.
T
ThreadPerRequestHandler
- class org.jcomponent.netserve.connection.handlers.
ThreadPerRequestHandler
.
A Handler that uses a thread from a pool for each different request.
ThreadPerRequestHandler(ConnectionHandler, ThreadPool)
- Constructor for class org.jcomponent.netserve.connection.handlers.
ThreadPerRequestHandler
Create handler.
W
waitForThreadToComplete()
- Method in class org.jcomponent.netserve.selector.impl.
DefaultSelectorManager
Wait for selector thread to complete.
A
C
D
E
G
H
I
M
N
O
P
R
S
T
W
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 1999-2003 The Spice Group. All Rights Reserved.