Class SingleServiceServer
java.lang.Object
org.jboss.modcluster.container.tomcat.SingleServiceServer
- All Implemented Interfaces:
org.apache.catalina.Lifecycle
,org.apache.catalina.Server
A
Server
delegate which filters found services to return only one configured Service
.- Author:
- Radoslav Husar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle
org.apache.catalina.Lifecycle.SingleUse
-
Field Summary
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLifecycleListener
(org.apache.catalina.LifecycleListener listener) void
addService
(org.apache.catalina.Service service) void
await()
void
destroy()
boolean
org.apache.catalina.LifecycleListener[]
org.apache.catalina.Service
findService
(String name) org.apache.catalina.Service[]
org.apache.catalina.startup.Catalina
org.apache.catalina.deploy.NamingResourcesImpl
int
getPort()
int
int
org.apache.catalina.LifecycleState
getState()
int
int
hashCode()
void
init()
void
removeLifecycleListener
(org.apache.catalina.LifecycleListener listener) void
removeService
(org.apache.catalina.Service service) void
setAddress
(String address) void
setCatalina
(org.apache.catalina.startup.Catalina catalina) void
setCatalinaBase
(File catalinaBase) void
setCatalinaHome
(File catalinaHome) void
setGlobalNamingResources
(org.apache.catalina.deploy.NamingResourcesImpl globalNamingResources) void
setParentClassLoader
(ClassLoader parent) void
setPort
(int port) void
setPortOffset
(int portOffset) void
setShutdown
(String shutdown) void
setUtilityThreads
(int utilityThreads) void
start()
void
stop()
-
Constructor Details
-
SingleServiceServer
public SingleServiceServer(org.apache.catalina.Service service)
-
-
Method Details
-
findService
- Specified by:
findService
in interfaceorg.apache.catalina.Server
-
findServices
public org.apache.catalina.Service[] findServices()- Specified by:
findServices
in interfaceorg.apache.catalina.Server
-
getGlobalNamingResources
public org.apache.catalina.deploy.NamingResourcesImpl getGlobalNamingResources()- Specified by:
getGlobalNamingResources
in interfaceorg.apache.catalina.Server
-
setGlobalNamingResources
public void setGlobalNamingResources(org.apache.catalina.deploy.NamingResourcesImpl globalNamingResources) - Specified by:
setGlobalNamingResources
in interfaceorg.apache.catalina.Server
-
getGlobalNamingContext
- Specified by:
getGlobalNamingContext
in interfaceorg.apache.catalina.Server
-
getPort
public int getPort()- Specified by:
getPort
in interfaceorg.apache.catalina.Server
-
setPort
public void setPort(int port) - Specified by:
setPort
in interfaceorg.apache.catalina.Server
-
getPortOffset
public int getPortOffset()- Specified by:
getPortOffset
in interfaceorg.apache.catalina.Server
-
setPortOffset
public void setPortOffset(int portOffset) - Specified by:
setPortOffset
in interfaceorg.apache.catalina.Server
-
getPortWithOffset
public int getPortWithOffset()- Specified by:
getPortWithOffset
in interfaceorg.apache.catalina.Server
-
getAddress
- Specified by:
getAddress
in interfaceorg.apache.catalina.Server
-
setAddress
- Specified by:
setAddress
in interfaceorg.apache.catalina.Server
-
getShutdown
- Specified by:
getShutdown
in interfaceorg.apache.catalina.Server
-
setShutdown
- Specified by:
setShutdown
in interfaceorg.apache.catalina.Server
-
getParentClassLoader
- Specified by:
getParentClassLoader
in interfaceorg.apache.catalina.Server
-
setParentClassLoader
- Specified by:
setParentClassLoader
in interfaceorg.apache.catalina.Server
-
getCatalina
public org.apache.catalina.startup.Catalina getCatalina()- Specified by:
getCatalina
in interfaceorg.apache.catalina.Server
-
setCatalina
public void setCatalina(org.apache.catalina.startup.Catalina catalina) - Specified by:
setCatalina
in interfaceorg.apache.catalina.Server
-
getCatalinaBase
- Specified by:
getCatalinaBase
in interfaceorg.apache.catalina.Server
-
setCatalinaBase
- Specified by:
setCatalinaBase
in interfaceorg.apache.catalina.Server
-
getCatalinaHome
- Specified by:
getCatalinaHome
in interfaceorg.apache.catalina.Server
-
setCatalinaHome
- Specified by:
setCatalinaHome
in interfaceorg.apache.catalina.Server
-
getUtilityThreads
public int getUtilityThreads()- Specified by:
getUtilityThreads
in interfaceorg.apache.catalina.Server
-
setUtilityThreads
public void setUtilityThreads(int utilityThreads) - Specified by:
setUtilityThreads
in interfaceorg.apache.catalina.Server
-
addService
public void addService(org.apache.catalina.Service service) - Specified by:
addService
in interfaceorg.apache.catalina.Server
-
await
public void await()- Specified by:
await
in interfaceorg.apache.catalina.Server
-
removeService
public void removeService(org.apache.catalina.Service service) - Specified by:
removeService
in interfaceorg.apache.catalina.Server
-
getNamingToken
- Specified by:
getNamingToken
in interfaceorg.apache.catalina.Server
-
getUtilityExecutor
- Specified by:
getUtilityExecutor
in interfaceorg.apache.catalina.Server
-
addLifecycleListener
public void addLifecycleListener(org.apache.catalina.LifecycleListener listener) - Specified by:
addLifecycleListener
in interfaceorg.apache.catalina.Lifecycle
-
findLifecycleListeners
public org.apache.catalina.LifecycleListener[] findLifecycleListeners()- Specified by:
findLifecycleListeners
in interfaceorg.apache.catalina.Lifecycle
-
removeLifecycleListener
public void removeLifecycleListener(org.apache.catalina.LifecycleListener listener) - Specified by:
removeLifecycleListener
in interfaceorg.apache.catalina.Lifecycle
-
init
public void init() throws org.apache.catalina.LifecycleException- Specified by:
init
in interfaceorg.apache.catalina.Lifecycle
- Throws:
org.apache.catalina.LifecycleException
-
start
public void start() throws org.apache.catalina.LifecycleException- Specified by:
start
in interfaceorg.apache.catalina.Lifecycle
- Throws:
org.apache.catalina.LifecycleException
-
stop
public void stop() throws org.apache.catalina.LifecycleException- Specified by:
stop
in interfaceorg.apache.catalina.Lifecycle
- Throws:
org.apache.catalina.LifecycleException
-
destroy
public void destroy() throws org.apache.catalina.LifecycleException- Specified by:
destroy
in interfaceorg.apache.catalina.Lifecycle
- Throws:
org.apache.catalina.LifecycleException
-
getState
public org.apache.catalina.LifecycleState getState()- Specified by:
getState
in interfaceorg.apache.catalina.Lifecycle
-
getStateName
- Specified by:
getStateName
in interfaceorg.apache.catalina.Lifecycle
-
equals
-
hashCode
public int hashCode()
-