public class MavenServerConnector extends AbstractLifeCycle implements Connector
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_IDLE_TIME |
static int |
DEFAULT_PORT |
static String |
DEFAULT_PORT_STR |
| Constructor and Description |
|---|
MavenServerConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
ByteBufferPool |
getByteBufferPool() |
Collection<EndPoint> |
getConnectedEndPoints() |
Collection<ConnectionFactory> |
getConnectionFactories() |
<T> T |
getConnectionFactory(Class<T> factoryType) |
ConnectionFactory |
getConnectionFactory(String nextProtocol) |
ConnectionFactory |
getDefaultConnectionFactory() |
Executor |
getExecutor() |
String |
getHost() |
long |
getIdleTimeout() |
String |
getName()
Get the connector name if set.
|
int |
getPort() |
List<String> |
getProtocols() |
Scheduler |
getScheduler() |
Server |
getServer() |
Object |
getTransport() |
void |
setHost(String host) |
void |
setIdleTimeout(long idleTimeout) |
void |
setName(String name) |
void |
setPort(int port) |
void |
setServer(Server server) |
void |
setSoLingerTime(int lingerTime) |
Future<Void> |
shutdown() |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic static final int DEFAULT_PORT
public static final String DEFAULT_PORT_STR
public static final int DEFAULT_MAX_IDLE_TIME
public void setServer(Server server)
public void setHost(String host)
public String getHost()
public void setPort(int port)
public int getPort()
public void setName(String name)
public void setIdleTimeout(long idleTimeout)
public void setSoLingerTime(int lingerTime)
protected void doStart()
throws Exception
doStart in class AbstractLifeCycleExceptionprotected void doStop()
throws Exception
doStop in class AbstractLifeCycleExceptionpublic Future<Void> shutdown()
shutdown in interface GracefulGraceful.shutdown()public Server getServer()
getServer in interface ConnectorServer instance associated with this ConnectorConnector.getServer()public Executor getExecutor()
getExecutor in interface ConnectorExecutor used to submit tasksConnector.getExecutor()public 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(String nextProtocol)
getConnectionFactory in interface ConnectorConnectionFactory associated with the protocol nameConnector.getConnectionFactory(java.lang.String)public <T> T getConnectionFactory(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 Collection<ConnectionFactory> getConnectionFactories()
getConnectionFactories in interface ConnectorConnector.getConnectionFactories()public List<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 Object getTransport()
getTransport in interface ConnectorConnector.getTransport()public Collection<EndPoint> getConnectedEndPoints()
getConnectedEndPoints in interface ConnectorConnector.getConnectedEndPoints()public 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()Copyright © 1995-2015 Webtide. All Rights Reserved.