public class MavenServerConnector extends ContainerLifeCycle implements Connector
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.ListenerGraceful.Shutdown| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_IDLE_TIME |
static int |
DEFAULT_PORT |
static java.lang.String |
DEFAULT_PORT_STR |
static java.lang.String |
PORT_SYSPROPERTY |
| Constructor and Description |
|---|
MavenServerConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Starts the managed lifecycle beans in the order they were added.
|
protected void |
doStop()
Stops the managed lifecycle beans in the reverse order they were added.
|
ByteBufferPool |
getByteBufferPool() |
java.util.Collection<EndPoint> |
getConnectedEndPoints() |
java.util.Collection<ConnectionFactory> |
getConnectionFactories() |
<T> T |
getConnectionFactory(java.lang.Class<T> factoryType) |
ConnectionFactory |
getConnectionFactory(java.lang.String nextProtocol) |
ConnectionFactory |
getDefaultConnectionFactory() |
java.util.concurrent.Executor |
getExecutor() |
java.lang.String |
getHost() |
long |
getIdleTimeout() |
int |
getLocalPort() |
java.lang.String |
getName()
Get the connector name if set.
|
int |
getPort() |
java.util.List<java.lang.String> |
getProtocols() |
Scheduler |
getScheduler() |
Server |
getServer() |
java.lang.Object |
getTransport() |
boolean |
isShutdown() |
void |
setHost(java.lang.String host) |
void |
setIdleTimeout(long idleTimeout) |
void |
setName(java.lang.String name) |
void |
setPort(int port) |
void |
setServer(Server server) |
void |
setSoLingerTime(int lingerTime)
Deprecated.
don't use as socket close linger time has undefined behavior for non-blocking sockets
|
java.util.concurrent.Future<java.lang.Void> |
shutdown() |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopaddBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanagedumpObjects, dumpSelfpublic static java.lang.String PORT_SYSPROPERTY
public static final int DEFAULT_PORT
public static final java.lang.String DEFAULT_PORT_STR
public static final int DEFAULT_MAX_IDLE_TIME
public void setServer(Server server)
public void setHost(java.lang.String host)
public java.lang.String getHost()
public void setPort(int port)
public int getPort()
public void setName(java.lang.String name)
public void setIdleTimeout(long idleTimeout)
@Deprecated public void setSoLingerTime(int lingerTime)
lingerTime - the socket close linger timeprotected void doStart()
throws java.lang.Exception
ContainerLifeCycledoStart in class ContainerLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
ContainerLifeCycledoStop in class ContainerLifeCyclejava.lang.Exceptionpublic java.util.concurrent.Future<java.lang.Void> shutdown()
public boolean isShutdown()
isShutdown in interface Gracefulpublic Server getServer()
public java.util.concurrent.Executor getExecutor()
getExecutor in interface ConnectorExecutor used to submit taskspublic Scheduler getScheduler()
getScheduler in interface ConnectorScheduler used to schedule tasksConnector.getScheduler()public ByteBufferPool getByteBufferPool()
getByteBufferPool in interface ConnectorByteBufferPool to acquire buffers from and release buffers toConnector.getByteBufferPool()public ConnectionFactory getConnectionFactory(java.lang.String nextProtocol)
getConnectionFactory in interface ConnectornextProtocol - the next protocolConnectionFactory associated with the protocol nameConnector.getConnectionFactory(java.lang.String)public <T> T getConnectionFactory(java.lang.Class<T> factoryType)
getConnectionFactory in interface ConnectorConnector.getConnectionFactory(java.lang.Class)public ConnectionFactory getDefaultConnectionFactory()
getDefaultConnectionFactory in interface ConnectorConnectionFactory associated with the default protocol nameConnector.getDefaultConnectionFactory()public java.util.Collection<ConnectionFactory> getConnectionFactories()
getConnectionFactories in interface ConnectorConnector.getConnectionFactories()public java.util.List<java.lang.String> getProtocols()
getProtocols in interface ConnectorConnector.getProtocols()@ManagedAttribute(value="maximum time a connection can be idle before being closed (in ms)") public long getIdleTimeout()
getIdleTimeout in interface ConnectorConnector.getIdleTimeout()public java.lang.Object getTransport()
getTransport in interface ConnectorConnector.getTransport()public java.util.Collection<EndPoint> getConnectedEndPoints()
getConnectedEndPoints in interface ConnectorConnector.getConnectedEndPoints()public java.lang.String getName()
ConnectorA ContextHandler may be configured with
virtual hosts in the form "@connectorName" and will only serve
requests from the named connector.
getName in interface ConnectorConnector.getName()public int getLocalPort()
Copyright © 1995–2023 Webtide. All rights reserved.