|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.jetty6.connector.JettyConnector
public abstract class JettyConnector
Base class for GBeans for Jetty network connectors (HTTP, HTTPS, AJP, etc.).
Field Summary | |
---|---|
static String |
CONNECTOR_CONTAINER_REFERENCE
|
static GBeanInfo |
GBEAN_INFO
|
protected org.mortbay.jetty.AbstractConnector |
listener
|
Constructor Summary | |
---|---|
JettyConnector()
Only used to allow declaration as a reference. |
|
JettyConnector(JettyContainer container,
org.mortbay.jetty.AbstractConnector listener,
ThreadPool threadPool,
String name)
|
|
JettyConnector(JettyContainer container,
ThreadPool threadPool)
|
Method Summary | |
---|---|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
int |
getAcceptQueueSize()
Gets the maximum number of connections that may be queued while all threads are busy. |
int |
getBufferSizeBytes()
Gets the size of the buffer used to handle network data for this connector. |
String |
getConnectUrl()
Gets a URL used to connect to the web server via this connector. |
abstract int |
getDefaultPort()
|
String |
getDefaultScheme()
|
String |
getHost()
Gets the hostname/IP that this connector listens on. |
int |
getLingerMillis()
Gets the amount of time the socket used by this connector will linger after being closed |
InetSocketAddress |
getListenAddress()
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. |
int |
getMaxIdleTimeMs()
|
int |
getMaxThreads()
Gets the maximum number of threads used to service connections from this connector. |
int |
getPort()
Gets the network port that this connector listens on. |
abstract String |
getProtocol()
Gets the network protocol that this connector handles. |
int |
getRedirectPort()
Gets the network port to which traffic will be redirected if this connector handles insecure traffic and the request requires a secure connection. |
boolean |
isTcpNoDelay()
Gets whether the TCP_NODELAY flag is set for the sockets used by this connector. |
void |
setAcceptQueueSize(int size)
Sets the maximum number of connections that may be queued while all threads are busy. |
void |
setBufferSizeBytes(int bytes)
Gets the size of the buffer used to handle network data for this connector. |
void |
setHost(String host)
Sets the hostname/IP that this connector listens on. |
void |
setLingerMillis(int millis)
Sets the amount of time the socket used by this connector will linger after being closed. |
void |
setMaxIdleTimeMs(int idleTime)
|
void |
setMaxThreads(int maxThreads)
Sets the maximum number of threads used to service connections from this connector. |
void |
setPort(int port)
Sets the network port that this connector listens on. |
void |
setRedirectPort(int port)
Gets the network port to which traffic will be redirected if this connector handles insecure traffic and the request requires a secure connection. |
void |
setTcpNoDelay(boolean enable)
Sets whether the TCP_NODELAY flag is set for the sockets used by this connector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONNECTOR_CONTAINER_REFERENCE
protected final org.mortbay.jetty.AbstractConnector listener
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public JettyConnector()
public JettyConnector(JettyContainer container, ThreadPool threadPool)
public JettyConnector(JettyContainer container, org.mortbay.jetty.AbstractConnector listener, ThreadPool threadPool, String name)
Method Detail |
---|
public String getHost()
NetworkConnector
getHost
in interface NetworkConnector
public void setHost(String host) throws UnknownHostException
NetworkConnector
setHost
in interface NetworkConnector
UnknownHostException
public int getPort()
NetworkConnector
getPort
in interface NetworkConnector
public void setPort(int port)
NetworkConnector
setPort
in interface NetworkConnector
public abstract int getDefaultPort()
public String getDefaultScheme()
public String getConnectUrl()
WebConnector
getConnectUrl
in interface WebConnector
public int getMaxIdleTimeMs()
public void setMaxIdleTimeMs(int idleTime)
public int getBufferSizeBytes()
WebConnector
getBufferSizeBytes
in interface WebConnector
public void setBufferSizeBytes(int bytes)
WebConnector
setBufferSizeBytes
in interface WebConnector
public int getAcceptQueueSize()
WebConnector
getAcceptQueueSize
in interface WebConnector
public void setAcceptQueueSize(int size)
WebConnector
setAcceptQueueSize
in interface WebConnector
public int getLingerMillis()
WebConnector
getLingerMillis
in interface WebConnector
public void setLingerMillis(int millis)
WebConnector
setLingerMillis
in interface WebConnector
public boolean isTcpNoDelay()
WebConnector
isTcpNoDelay
in interface WebConnector
public void setTcpNoDelay(boolean enable)
WebConnector
setTcpNoDelay
in interface WebConnector
public void setMaxThreads(int maxThreads)
WebConnector
setMaxThreads
in interface WebConnector
public int getMaxThreads()
WebConnector
getMaxThreads
in interface WebConnector
public int getRedirectPort()
WebConnector
getRedirectPort
in interface WebConnector
public InetSocketAddress getListenAddress()
NetworkConnector
getListenAddress
in interface NetworkConnector
public void setRedirectPort(int port)
WebConnector
setRedirectPort
in interface WebConnector
public abstract String getProtocol()
NetworkConnector
getProtocol
in interface NetworkConnector
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop()
GBeanLifecycle
doStop
in interface GBeanLifecycle
public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |