Package org.glassfish.grizzly.config.dom
Interface Transport
-
- All Superinterfaces:
ConfigBeanProxy,PropertyBag
public interface Transport extends ConfigBeanProxy, PropertyBag
Defines one specific transport and its properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransport.Duck
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTOR_THREADSstatic intBUFFER_SIZEstatic StringBYTE_BUFFER_TYPEstatic StringCLASSNAMEstatic booleanDEDICATED_ACCEPTOR_ENABLEDstatic booleanDISPLAY_CONFIGURATIONstatic intIDLE_KEY_TIMEOUTstatic intLINGERstatic intMAX_CONNECTIONS_COUNTstatic intREAD_TIMEOUTstatic intSELECTOR_POLL_TIMEOUTstatic intSOCKET_RCV_BUFFER_SIZEstatic intSOCKET_SND_BUFFER_SIZEstatic booleanTCP_NO_DELAYstatic intWRITE_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<NetworkListener>findNetworkListeners()StringgetAcceptorThreads()The number of acceptor threads listening for the transport's eventsStringgetBufferSizeBytes()Deprecated.This attribute is now ignored.@Pattern(regexp="heap|direct",flags=CASE_INSENSITIVE) StringgetByteBufferType()Type of ByteBuffer, which will be used with transport.StringgetClassname()Name of class, which implements transport logicStringgetDedicatedAcceptorEnabled()StringgetDisplayConfiguration()Flush Grizzly's internal configuration to the server logs (like number of threads created, how many polled objects, etc.)StringgetIdleKeyTimeoutSeconds()Timeout, after which idle key will be cancelled and channel closedStringgetIoStrategy()IOStrategyto be used byTransport.StringgetLinger()StringgetMaxConnectionsCount()The max number of connections the transport should handle at the same timeStringgetName()Transport's name, which could be used as referenceTransportsgetParent()Returns the parent element of this configuration element.StringgetReadTimeoutMillis()Read operation timeout in msStringgetSelectionKeyHandler()Deprecated.This attribute as well as the named selection-key-handler element this attribute refers to has been deprecated and is effectively ignored by the runtime.StringgetSelectorPollTimeoutMillis()The time, in milliseconds, a NIO Selector will block waiting for events (users requests).StringgetSocketReadBufferSize()The size, in bytes, of the socket send buffer size.StringgetSocketWriteBufferSize()The size, in bytes, of the socket send buffer size.StringgetTcpNoDelay()StringgetWriteTimeoutMillis()Write operation timeout in msvoidsetAcceptorThreads(String value)voidsetBufferSizeBytes(String size)voidsetByteBufferType(String value)voidsetClassname(String value)voidsetDedicatedAcceptorEnabled(String isEnabled)voidsetDisplayConfiguration(String bool)voidsetIdleKeyTimeoutSeconds(String value)voidsetIoStrategy(String ioStrategy)voidsetLinger(String linger)voidsetMaxConnectionsCount(String value)voidsetName(String value)voidsetReadTimeoutMillis(String value)voidsetSelectionKeyHandler(String value)voidsetSelectorPollTimeoutMillis(String timeout)voidsetSocketReadBufferSize()voidsetSocketWriteBufferSize()voidsetTcpNoDelay(String noDelay)voidsetWriteTimeoutMillis(String value)-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent
-
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
-
-
-
Field Detail
-
DISPLAY_CONFIGURATION
static final boolean DISPLAY_CONFIGURATION
- See Also:
- Constant Field Values
-
TCP_NO_DELAY
static final boolean TCP_NO_DELAY
- See Also:
- Constant Field Values
-
ACCEPTOR_THREADS
static final int ACCEPTOR_THREADS
- See Also:
- Constant Field Values
-
BUFFER_SIZE
static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
IDLE_KEY_TIMEOUT
static final int IDLE_KEY_TIMEOUT
- See Also:
- Constant Field Values
-
LINGER
static final int LINGER
- See Also:
- Constant Field Values
-
MAX_CONNECTIONS_COUNT
static final int MAX_CONNECTIONS_COUNT
- See Also:
- Constant Field Values
-
READ_TIMEOUT
static final int READ_TIMEOUT
- See Also:
- Constant Field Values
-
WRITE_TIMEOUT
static final int WRITE_TIMEOUT
- See Also:
- Constant Field Values
-
SELECTOR_POLL_TIMEOUT
static final int SELECTOR_POLL_TIMEOUT
- See Also:
- Constant Field Values
-
SOCKET_RCV_BUFFER_SIZE
static final int SOCKET_RCV_BUFFER_SIZE
- See Also:
- Constant Field Values
-
SOCKET_SND_BUFFER_SIZE
static final int SOCKET_SND_BUFFER_SIZE
- See Also:
- Constant Field Values
-
BYTE_BUFFER_TYPE
static final String BYTE_BUFFER_TYPE
- See Also:
- Constant Field Values
-
CLASSNAME
static final String CLASSNAME
- See Also:
- Constant Field Values
-
DEDICATED_ACCEPTOR_ENABLED
static final boolean DEDICATED_ACCEPTOR_ENABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAcceptorThreads
String getAcceptorThreads()
The number of acceptor threads listening for the transport's events
-
setAcceptorThreads
void setAcceptorThreads(String value)
-
getSocketWriteBufferSize
String getSocketWriteBufferSize()
The size, in bytes, of the socket send buffer size. If the value is 0 or less, it defaults to the VM's default value.
-
setSocketWriteBufferSize
void setSocketWriteBufferSize()
-
getSocketReadBufferSize
String getSocketReadBufferSize()
The size, in bytes, of the socket send buffer size. If the value is 0 or less, it defaults to the VM's default value.
-
setSocketReadBufferSize
void setSocketReadBufferSize()
-
getBufferSizeBytes
@Deprecated String getBufferSizeBytes()
Deprecated.This attribute is now ignored. Use socket-send-Buffer-size and/or socket-write-buffer-size instead.
-
setBufferSizeBytes
void setBufferSizeBytes(String size)
-
getByteBufferType
@Pattern(regexp="heap|direct", flags=CASE_INSENSITIVE) @Pattern(regexp="heap|direct",flags=CASE_INSENSITIVE) String getByteBufferType()Type of ByteBuffer, which will be used with transport. Possible values are: HEAP and DIRECT
-
setByteBufferType
void setByteBufferType(String value)
-
getClassname
String getClassname()
Name of class, which implements transport logic
-
setClassname
void setClassname(String value)
-
setIoStrategy
void setIoStrategy(String ioStrategy)
-
getDisplayConfiguration
String getDisplayConfiguration()
Flush Grizzly's internal configuration to the server logs (like number of threads created, how many polled objects, etc.)
-
setDisplayConfiguration
void setDisplayConfiguration(String bool)
-
getIdleKeyTimeoutSeconds
String getIdleKeyTimeoutSeconds()
Timeout, after which idle key will be cancelled and channel closed
-
setIdleKeyTimeoutSeconds
void setIdleKeyTimeoutSeconds(String value)
-
getMaxConnectionsCount
String getMaxConnectionsCount()
The max number of connections the transport should handle at the same time
-
setMaxConnectionsCount
void setMaxConnectionsCount(String value)
-
getName
String getName()
Transport's name, which could be used as reference
-
setName
void setName(String value)
-
getReadTimeoutMillis
String getReadTimeoutMillis()
Read operation timeout in ms
-
setReadTimeoutMillis
void setReadTimeoutMillis(String value)
-
getSelectionKeyHandler
@Deprecated String getSelectionKeyHandler()
Deprecated.This attribute as well as the named selection-key-handler element this attribute refers to has been deprecated and is effectively ignored by the runtime. No equivalent functionality is available.Use public SelectionKey handler, which was defined earlier in the document.
-
setSelectionKeyHandler
void setSelectionKeyHandler(String value)
-
getSelectorPollTimeoutMillis
String getSelectorPollTimeoutMillis()
The time, in milliseconds, a NIO Selector will block waiting for events (users requests).
-
setSelectorPollTimeoutMillis
void setSelectorPollTimeoutMillis(String timeout)
-
getWriteTimeoutMillis
String getWriteTimeoutMillis()
Write operation timeout in ms
-
setWriteTimeoutMillis
void setWriteTimeoutMillis(String value)
-
getTcpNoDelay
String getTcpNoDelay()
-
setTcpNoDelay
void setTcpNoDelay(String noDelay)
-
getLinger
String getLinger()
-
setLinger
void setLinger(String linger)
-
getDedicatedAcceptorEnabled
String getDedicatedAcceptorEnabled()
-
setDedicatedAcceptorEnabled
void setDedicatedAcceptorEnabled(String isEnabled)
-
findNetworkListeners
@DuckTyped List<NetworkListener> findNetworkListeners()
-
getParent
@DuckTyped Transports getParent()
Description copied from interface:ConfigBeanProxyReturns the parent element of this configuration element. It is possible to return a not null parent while the parent knows nothing of this child element. This could happen when the child element was removed from the configuration tree, yet it's parent would not have been reset.- Specified by:
getParentin interfaceConfigBeanProxy- Returns:
- the parent configuration node.
-
-