org.apache.geronimo.jetty.connector
Class JettyConnector
java.lang.Object
org.apache.geronimo.jetty.connector.JettyConnector
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, JettyWebConnector, org.apache.geronimo.management.geronimo.NetworkConnector, org.apache.geronimo.management.geronimo.WebConnector
- Direct Known Subclasses:
- AJP13Connector, HTTPConnector, HTTPSConnector
public abstract class JettyConnector
- extends Object
- implements org.apache.geronimo.gbean.GBeanLifecycle, JettyWebConnector
Base class for GBeans for Jetty network connectors (HTTP, HTTPS, AJP, etc.).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTOR_CONTAINER_REFERENCE
public static final String CONNECTOR_CONTAINER_REFERENCE
- See Also:
- Constant Field Values
listener
protected final org.mortbay.http.HttpListener listener
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
JettyConnector
public JettyConnector()
- Only used to allow declaration as a reference.
JettyConnector
public JettyConnector(JettyContainer container)
JettyConnector
public JettyConnector(JettyContainer container,
org.mortbay.http.HttpListener listener)
getDefaultScheme
public String getDefaultScheme()
- Specified by:
getDefaultScheme
in interface JettyWebConnector
getHost
public String getHost()
- Specified by:
getHost
in interface org.apache.geronimo.management.geronimo.NetworkConnector
setHost
public void setHost(String host)
throws UnknownHostException
- Specified by:
setHost
in interface org.apache.geronimo.management.geronimo.NetworkConnector
- Throws:
UnknownHostException
getPort
public int getPort()
- Specified by:
getPort
in interface org.apache.geronimo.management.geronimo.NetworkConnector
setPort
public void setPort(int port)
- Specified by:
setPort
in interface org.apache.geronimo.management.geronimo.NetworkConnector
getDefaultPort
public abstract int getDefaultPort()
getConnectUrl
public String getConnectUrl()
- Specified by:
getConnectUrl
in interface org.apache.geronimo.management.geronimo.WebConnector
setMinThreads
public void setMinThreads(int minThreads)
- Description copied from interface:
JettyWebConnector
- Sets the minimum number of threads used to service connections from
this connector.
- Specified by:
setMinThreads
in interface JettyWebConnector
getMinThreads
public int getMinThreads()
- Description copied from interface:
JettyWebConnector
- Gets the minimum number of threads used to service connections from
this connector.
- Specified by:
getMinThreads
in interface JettyWebConnector
setMaxThreads
public void setMaxThreads(int maxThreads)
- Specified by:
setMaxThreads
in interface org.apache.geronimo.management.geronimo.WebConnector
getMaxThreads
public int getMaxThreads()
- Specified by:
getMaxThreads
in interface org.apache.geronimo.management.geronimo.WebConnector
setMaxIdleTimeMs
public void setMaxIdleTimeMs(int max)
- Specified by:
setMaxIdleTimeMs
in interface JettyWebConnector
getMaxIdleTimeMs
public int getMaxIdleTimeMs()
- Specified by:
getMaxIdleTimeMs
in interface JettyWebConnector
setLowThreadsMaxIdleTimeMs
public void setLowThreadsMaxIdleTimeMs(int max)
- Specified by:
setLowThreadsMaxIdleTimeMs
in interface JettyWebConnector
getLowThreadsMaxIdleTimeMs
public int getLowThreadsMaxIdleTimeMs()
- Specified by:
getLowThreadsMaxIdleTimeMs
in interface JettyWebConnector
setLowThreads
public void setLowThreads(int lowThreads)
- Specified by:
setLowThreads
in interface JettyWebConnector
getLowThreads
public int getLowThreads()
- Specified by:
getLowThreads
in interface JettyWebConnector
getThreads
public int getThreads()
- Specified by:
getThreads
in interface JettyWebConnector
getIdlethreads
public int getIdlethreads()
- Specified by:
getIdlethreads
in interface JettyWebConnector
getListenAddress
public InetSocketAddress getListenAddress()
- Specified by:
getListenAddress
in interface org.apache.geronimo.management.geronimo.NetworkConnector
getBufferSizeBytes
public int getBufferSizeBytes()
- Specified by:
getBufferSizeBytes
in interface org.apache.geronimo.management.geronimo.WebConnector
setBufferSizeBytes
public void setBufferSizeBytes(int bytes)
- Specified by:
setBufferSizeBytes
in interface org.apache.geronimo.management.geronimo.WebConnector
getAcceptQueueSize
public int getAcceptQueueSize()
- Specified by:
getAcceptQueueSize
in interface org.apache.geronimo.management.geronimo.WebConnector
setAcceptQueueSize
public void setAcceptQueueSize(int size)
- Specified by:
setAcceptQueueSize
in interface org.apache.geronimo.management.geronimo.WebConnector
getLingerMillis
public int getLingerMillis()
- Specified by:
getLingerMillis
in interface org.apache.geronimo.management.geronimo.WebConnector
setLingerMillis
public void setLingerMillis(int millis)
- Specified by:
setLingerMillis
in interface org.apache.geronimo.management.geronimo.WebConnector
isTcpNoDelay
public boolean isTcpNoDelay()
- Specified by:
isTcpNoDelay
in interface org.apache.geronimo.management.geronimo.WebConnector
setTcpNoDelay
public void setTcpNoDelay(boolean enable)
- Specified by:
setTcpNoDelay
in interface org.apache.geronimo.management.geronimo.WebConnector
getRedirectPort
public int getRedirectPort()
- Specified by:
getRedirectPort
in interface org.apache.geronimo.management.geronimo.WebConnector
setRedirectPort
public void setRedirectPort(int port)
- Specified by:
setRedirectPort
in interface org.apache.geronimo.management.geronimo.WebConnector
getProtocol
public abstract String getProtocol()
- Specified by:
getProtocol
in interface org.apache.geronimo.management.geronimo.NetworkConnector
doStart
public void doStart()
throws Exception
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
Copyright © 2006 Apache Software Foundation. All Rights Reserved.