Package org.glassfish.grizzly.config.dom
Interface Transport
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.jvnet.hk2.config.types.PropertyBag
public interface Transport
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
Defines one specific transport and its properties
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final booleanstatic final booleanstatic final booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final booleanstatic final int -
Method Summary
Modifier and TypeMethodDescriptionThe number of acceptor threads listening for the transport's eventsDeprecated.This attribute is now ignored.@Pattern(regexp="heap|direct",message="Valid values: heap|direct",flags=CASE_INSENSITIVE) StringType of ByteBuffer, which will be used with transport.Name of class, which implements transport logicFlush Grizzly's internal configuration to the server logs (like number of threads created, how many polled objects, etc.)Deprecated.this option is ignored by the runtime.Timeout, after which idle key will be cancelled and channel closedIOStrategyto be used byTransport.The max number of connections the transport should handle at the same timegetName()Transport's name, which could be used as referenceRead operation timeout in msDeprecated.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.The time, in milliseconds, a NIO Selector will block waiting for events (users requests).The size, in bytes, of the socket send buffer size.The size, in bytes, of the socket send buffer size.Write operation timeout in msvoidsetAcceptorThreads(String value) voidsetBufferSizeBytes(String size) voidsetByteBufferType(String value) voidsetClassname(String value) voidsetDedicatedAcceptorEnabled(String isEnabled) voidvoidsetEnableSnoop(String bool) voidsetIdleKeyTimeoutSeconds(String value) voidsetIoStrategy(String ioStrategy) voidvoidsetMaxConnectionsCount(String value) voidvoidsetReadTimeoutMillis(String value) voidsetSelectionKeyHandler(String value) voidsetSelectorPollTimeoutMillis(String timeout) voidvoidvoidsetTcpNoDelay(String noDelay) voidsetWriteTimeoutMillis(String value) Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Field Details
-
BYTE_BUFFER_TYPES
- See Also:
-
DISPLAY_CONFIGURATION
static final boolean DISPLAY_CONFIGURATION- See Also:
-
ENABLE_SNOOP
static final boolean ENABLE_SNOOP- See Also:
-
TCP_NO_DELAY
static final boolean TCP_NO_DELAY- See Also:
-
ACCEPTOR_THREADS
static final int ACCEPTOR_THREADS- See Also:
-
BUFFER_SIZE
static final int BUFFER_SIZE- See Also:
-
IDLE_KEY_TIMEOUT
static final int IDLE_KEY_TIMEOUT- See Also:
-
LINGER
static final int LINGER- See Also:
-
MAX_CONNECTIONS_COUNT
static final int MAX_CONNECTIONS_COUNT- See Also:
-
READ_TIMEOUT
static final int READ_TIMEOUT- See Also:
-
WRITE_TIMEOUT
static final int WRITE_TIMEOUT- See Also:
-
SELECTOR_POLL_TIMEOUT
static final int SELECTOR_POLL_TIMEOUT- See Also:
-
SOCKET_RCV_BUFFER_SIZE
static final int SOCKET_RCV_BUFFER_SIZE- See Also:
-
SOCKET_SND_BUFFER_SIZE
static final int SOCKET_SND_BUFFER_SIZE- See Also:
-
BYTE_BUFFER_TYPE
- See Also:
-
CLASSNAME
- See Also:
-
DEDICATED_ACCEPTOR_ENABLED
static final boolean DEDICATED_ACCEPTOR_ENABLED- See Also:
-
-
Method Details
-
getAcceptorThreads
String getAcceptorThreads()The number of acceptor threads listening for the transport's events -
setAcceptorThreads
-
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.This attribute is now ignored. Use socket-send-Buffer-size and/or socket-write-buffer-size instead. -
setBufferSizeBytes
-
getByteBufferType
@Pattern(regexp="heap|direct", message="Valid values: heap|direct", flags=CASE_INSENSITIVE) @Pattern(regexp="heap|direct",message="Valid values: heap|direct",flags=CASE_INSENSITIVE) String getByteBufferType()Type of ByteBuffer, which will be used with transport. Possible values are: HEAP and DIRECT -
setByteBufferType
-
getClassname
String getClassname()Name of class, which implements transport logic -
setClassname
-
getIoStrategy
String getIoStrategy()IOStrategyto be used byTransport. -
setIoStrategy
-
getDisplayConfiguration
String getDisplayConfiguration()Flush Grizzly's internal configuration to the server logs (like number of threads created, how many polled objects, etc.) -
setDisplayConfiguration
-
getEnableSnoop
Deprecated.this option is ignored by the runtime.Dump the requests/response information in server.log. Useful for debugging purpose, but significantly reduce performance as the request/response bytes are translated to String. -
setEnableSnoop
-
getIdleKeyTimeoutSeconds
String getIdleKeyTimeoutSeconds()Timeout, after which idle key will be cancelled and channel closed -
setIdleKeyTimeoutSeconds
-
getMaxConnectionsCount
String getMaxConnectionsCount()The max number of connections the transport should handle at the same time -
setMaxConnectionsCount
-
getName
String getName()Transport's name, which could be used as reference -
setName
-
getReadTimeoutMillis
String getReadTimeoutMillis()Read operation timeout in ms -
setReadTimeoutMillis
-
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
-
getSelectorPollTimeoutMillis
String getSelectorPollTimeoutMillis()The time, in milliseconds, a NIO Selector will block waiting for events (users requests). -
setSelectorPollTimeoutMillis
-
getWriteTimeoutMillis
String getWriteTimeoutMillis()Write operation timeout in ms -
setWriteTimeoutMillis
-
getTcpNoDelay
String getTcpNoDelay() -
setTcpNoDelay
-
getLinger
String getLinger() -
setLinger
-
getDedicatedAcceptorEnabled
String getDedicatedAcceptorEnabled() -
setDedicatedAcceptorEnabled
-
findNetworkListeners
-
getParent
- Specified by:
getParentin interfaceorg.jvnet.hk2.config.ConfigBeanProxy
-