|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 LogEnabledenableLogging in class AbstractLogEnabledlogger - the logger
public void contextualize(Context context)
throws ContextException
Contextualizable
contextualize in interface Contextualizablecontext - the context. Must not be null.
ContextException - if context is invalid
public void service(ServiceManager serviceManager)
throws ServiceException
ServiceableServiceManager to the Serviceable.
The Serviceable implementation should use the specified
ServiceManager to acquire the components it needs for
execution.
service in interface ServiceableserviceManager - The ServiceManager which this
Serviceable uses. Must not be null.
ServiceException - if an error occurs
public void configure(Configuration configuration)
throws ConfigurationException
ConfigurableConfiguration to the Configurable
class.
configure in interface Configurableconfiguration - the class configurations. Must not be null.
ConfigurationException - if an error occurs
public void initialize()
throws java.lang.Exception
Initializable
initialize in interface Initializablejava.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 | ||||||||||