|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.cornerstone.services.connection.AbstractService
Helper class to create protocol services.
Field Summary | |
protected java.net.InetAddress |
m_bindTo
|
protected ConnectionManager |
m_connectionManager
|
protected java.lang.String |
m_connectionName
|
protected ConnectionHandlerFactory |
m_factory
|
protected int |
m_port
|
protected java.net.ServerSocket |
m_serverSocket
|
protected java.lang.String |
m_serverSocketType
|
protected SocketManager |
m_socketManager
|
protected ThreadManager |
m_threadManager
|
protected ThreadPool |
m_threadPool
|
Constructor Summary | |
AbstractService()
|
Method Summary | |
void |
configure(Configuration configuration)
Pass the Configuration to the Configurable
class. |
void |
contextualize(Context context)
Pass the Context to the component. |
protected abstract ConnectionHandlerFactory |
createFactory()
|
void |
dispose()
The dispose operation is called at the end of a components lifecycle. |
void |
enableLogging(Logger logger)
Set the components logger. |
protected java.lang.String |
getThreadPoolName()
|
void |
initialize()
Initialize the component. |
void |
service(ServiceManager serviceManager)
Pass the ServiceManager to the Serviceable . |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConnectionManager m_connectionManager
protected SocketManager m_socketManager
protected ConnectionHandlerFactory m_factory
protected ThreadManager m_threadManager
protected ThreadPool m_threadPool
protected java.lang.String m_serverSocketType
protected int m_port
protected java.net.InetAddress m_bindTo
protected java.net.ServerSocket m_serverSocket
protected java.lang.String m_connectionName
Constructor Detail |
public AbstractService()
Method Detail |
protected java.lang.String getThreadPoolName()
protected abstract ConnectionHandlerFactory createFactory()
public void enableLogging(Logger logger)
AbstractLogEnabled
enableLogging
in interface LogEnabled
enableLogging
in class AbstractLogEnabled
logger
- the loggerpublic void contextualize(Context context) throws ContextException
Contextualizable
contextualize
in interface Contextualizable
context
- the context. Must not be null
.
ContextException
- if context is invalidpublic void service(ServiceManager serviceManager) throws ServiceException
Serviceable
ServiceManager
to the Serviceable
.
The Serviceable
implementation should use the specified
ServiceManager
to acquire the components it needs for
execution.
service
in interface Serviceable
serviceManager
- The ServiceManager
which this
Serviceable
uses. Must not be null
.
ServiceException
- if an error occurspublic void configure(Configuration configuration) throws ConfigurationException
Configurable
Configuration
to the Configurable
class.
configure
in interface Configurable
configuration
- the class configurations. Must not be null
.
ConfigurationException
- if an error occurspublic void initialize() throws java.lang.Exception
Initializable
initialize
in interface Initializable
java.lang.Exception
- if an error occurspublic void dispose()
Disposable
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |