Class SingleServiceServer

java.lang.Object
org.jboss.modcluster.container.tomcat.SingleServiceServer
All Implemented Interfaces:
org.apache.catalina.Lifecycle, org.apache.catalina.Server

public class SingleServiceServer extends Object implements org.apache.catalina.Server
A Server delegate which filters found services to return only one configured Service.
Author:
Radoslav Husar
  • Constructor Details

    • SingleServiceServer

      public SingleServiceServer(org.apache.catalina.Service service)
  • Method Details

    • findService

      public org.apache.catalina.Service findService(String name)
      Specified by:
      findService in interface org.apache.catalina.Server
    • findServices

      public org.apache.catalina.Service[] findServices()
      Specified by:
      findServices in interface org.apache.catalina.Server
    • getGlobalNamingResources

      public org.apache.catalina.deploy.NamingResourcesImpl getGlobalNamingResources()
      Specified by:
      getGlobalNamingResources in interface org.apache.catalina.Server
    • setGlobalNamingResources

      public void setGlobalNamingResources(org.apache.catalina.deploy.NamingResourcesImpl globalNamingResources)
      Specified by:
      setGlobalNamingResources in interface org.apache.catalina.Server
    • getGlobalNamingContext

      public Context getGlobalNamingContext()
      Specified by:
      getGlobalNamingContext in interface org.apache.catalina.Server
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.apache.catalina.Server
    • setPort

      public void setPort(int port)
      Specified by:
      setPort in interface org.apache.catalina.Server
    • getPortOffset

      public int getPortOffset()
      Specified by:
      getPortOffset in interface org.apache.catalina.Server
    • setPortOffset

      public void setPortOffset(int portOffset)
      Specified by:
      setPortOffset in interface org.apache.catalina.Server
    • getPortWithOffset

      public int getPortWithOffset()
      Specified by:
      getPortWithOffset in interface org.apache.catalina.Server
    • getAddress

      public String getAddress()
      Specified by:
      getAddress in interface org.apache.catalina.Server
    • setAddress

      public void setAddress(String address)
      Specified by:
      setAddress in interface org.apache.catalina.Server
    • getShutdown

      public String getShutdown()
      Specified by:
      getShutdown in interface org.apache.catalina.Server
    • setShutdown

      public void setShutdown(String shutdown)
      Specified by:
      setShutdown in interface org.apache.catalina.Server
    • getParentClassLoader

      public ClassLoader getParentClassLoader()
      Specified by:
      getParentClassLoader in interface org.apache.catalina.Server
    • setParentClassLoader

      public void setParentClassLoader(ClassLoader parent)
      Specified by:
      setParentClassLoader in interface org.apache.catalina.Server
    • getCatalina

      public org.apache.catalina.startup.Catalina getCatalina()
      Specified by:
      getCatalina in interface org.apache.catalina.Server
    • setCatalina

      public void setCatalina(org.apache.catalina.startup.Catalina catalina)
      Specified by:
      setCatalina in interface org.apache.catalina.Server
    • getCatalinaBase

      public File getCatalinaBase()
      Specified by:
      getCatalinaBase in interface org.apache.catalina.Server
    • setCatalinaBase

      public void setCatalinaBase(File catalinaBase)
      Specified by:
      setCatalinaBase in interface org.apache.catalina.Server
    • getCatalinaHome

      public File getCatalinaHome()
      Specified by:
      getCatalinaHome in interface org.apache.catalina.Server
    • setCatalinaHome

      public void setCatalinaHome(File catalinaHome)
      Specified by:
      setCatalinaHome in interface org.apache.catalina.Server
    • getUtilityThreads

      public int getUtilityThreads()
      Specified by:
      getUtilityThreads in interface org.apache.catalina.Server
    • setUtilityThreads

      public void setUtilityThreads(int utilityThreads)
      Specified by:
      setUtilityThreads in interface org.apache.catalina.Server
    • addService

      public void addService(org.apache.catalina.Service service)
      Specified by:
      addService in interface org.apache.catalina.Server
    • await

      public void await()
      Specified by:
      await in interface org.apache.catalina.Server
    • removeService

      public void removeService(org.apache.catalina.Service service)
      Specified by:
      removeService in interface org.apache.catalina.Server
    • getNamingToken

      public Object getNamingToken()
      Specified by:
      getNamingToken in interface org.apache.catalina.Server
    • getUtilityExecutor

      public ScheduledExecutorService getUtilityExecutor()
      Specified by:
      getUtilityExecutor in interface org.apache.catalina.Server
    • addLifecycleListener

      public void addLifecycleListener(org.apache.catalina.LifecycleListener listener)
      Specified by:
      addLifecycleListener in interface org.apache.catalina.Lifecycle
    • findLifecycleListeners

      public org.apache.catalina.LifecycleListener[] findLifecycleListeners()
      Specified by:
      findLifecycleListeners in interface org.apache.catalina.Lifecycle
    • removeLifecycleListener

      public void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
      Specified by:
      removeLifecycleListener in interface org.apache.catalina.Lifecycle
    • init

      public void init() throws org.apache.catalina.LifecycleException
      Specified by:
      init in interface org.apache.catalina.Lifecycle
      Throws:
      org.apache.catalina.LifecycleException
    • start

      public void start() throws org.apache.catalina.LifecycleException
      Specified by:
      start in interface org.apache.catalina.Lifecycle
      Throws:
      org.apache.catalina.LifecycleException
    • stop

      public void stop() throws org.apache.catalina.LifecycleException
      Specified by:
      stop in interface org.apache.catalina.Lifecycle
      Throws:
      org.apache.catalina.LifecycleException
    • destroy

      public void destroy() throws org.apache.catalina.LifecycleException
      Specified by:
      destroy in interface org.apache.catalina.Lifecycle
      Throws:
      org.apache.catalina.LifecycleException
    • getState

      public org.apache.catalina.LifecycleState getState()
      Specified by:
      getState in interface org.apache.catalina.Lifecycle
    • getStateName

      public String getStateName()
      Specified by:
      getStateName in interface org.apache.catalina.Lifecycle
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object