public class MavenServerConnector extends AbstractLifeCycle implements Connector
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.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, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public 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 AbstractLifeCycle
Exception
protected void doStop() throws Exception
doStop
in class AbstractLifeCycle
Exception
public Future<Void> shutdown()
shutdown
in interface Graceful
Graceful.shutdown()
public Server getServer()
getServer
in interface Connector
Server
instance associated with this Connector
Connector.getServer()
public Executor getExecutor()
getExecutor
in interface Connector
Executor
used to submit tasksConnector.getExecutor()
public Scheduler getScheduler()
getScheduler
in interface Connector
Scheduler
used to schedule tasksConnector.getScheduler()
public ByteBufferPool getByteBufferPool()
getByteBufferPool
in interface Connector
ByteBufferPool
to acquire buffers from and release buffers toConnector.getByteBufferPool()
public ConnectionFactory getConnectionFactory(String nextProtocol)
getConnectionFactory
in interface Connector
ConnectionFactory
associated with the protocol nameConnector.getConnectionFactory(java.lang.String)
public <T> T getConnectionFactory(Class<T> factoryType)
getConnectionFactory
in interface Connector
Connector.getConnectionFactory(java.lang.Class)
public ConnectionFactory getDefaultConnectionFactory()
getDefaultConnectionFactory
in interface Connector
ConnectionFactory
associated with the default protocol nameConnector.getDefaultConnectionFactory()
public Collection<ConnectionFactory> getConnectionFactories()
getConnectionFactories
in interface Connector
Connector.getConnectionFactories()
public List<String> getProtocols()
getProtocols
in interface Connector
Connector.getProtocols()
@ManagedAttribute(value="maximum time a connection can be idle before being closed (in ms)") public long getIdleTimeout()
getIdleTimeout
in interface Connector
Connector.getIdleTimeout()
public Object getTransport()
getTransport
in interface Connector
Connector.getTransport()
public Collection<EndPoint> getConnectedEndPoints()
getConnectedEndPoints
in interface Connector
Connector.getConnectedEndPoints()
public String getName()
Connector
A ContextHandler
may be configured with
virtual hosts in the form "@connectorName" and will only serve
requests from the named connector.
getName
in interface Connector
Connector.getName()
Copyright © 1995-2015 Webtide. All Rights Reserved.