com.sun.grizzly.config.dom
Interface Transport

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag

public interface Transport
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag

Defines one specific transport and its properties


Nested Class Summary
static class Transport.Duck
           
 
Field Summary
static int ACCEPTOR_THREADS
           
static int BUFFER_SIZE
           
static String BYTE_BUFFER_TYPE
           
static String CLASSNAME
           
static boolean DISPLAY_CONFIGURATION
           
static boolean ENABLE_SNOOP
           
static int IDLE_KEY_TIMEOUT
           
static boolean KEEPALIVE
           
static int LINGER
           
static int MAX_CONNECTIONS_COUNT
           
static int READ_TIMEOUT
           
static int SELECTOR_POLL_TIMEOUT
           
static boolean TCP_NO_DELAY
           
 
Method Summary
 List<NetworkListener> findNetworkListeners()
           
 String getAcceptorThreads()
          The number of acceptor threads listening for the transport's events
 String getBufferSizeBytes()
           
 String getByteBufferType()
          Type of ByteBuffer, which will be used with transport.
 String getClassname()
          Name of class, which implements transport logic
 String getDisplayConfiguration()
          Flush Grizzly's internal configuration to the server logs (like number of threads created, how many polled objects, etc.)
 String getEnableSnoop()
          Dump the requests/response information in server.log.
 String getIdleKeyTimeoutSeconds()
          Timeout, after which idle key will be cancelled and channel closed
 String getKeepAlive()
           
 String getLinger()
           
 String getMaxConnectionsCount()
          The max number of connections the transport should handle at the same time
 String getName()
          Transport's name, which could be used as reference
 Transports getParent()
           
 String getReadTimeoutMillis()
          Read operation timeout in ms
 String getSelectionKeyHandler()
          Use public SelectionKey handler, which was defined earlier in the document.
 String getSelectorPollTimeoutMillis()
          The time, in milliseconds, a NIO Selector will block waiting for events (users requests).
 String getTcpNoDelay()
           
 String getWriteTimeoutMillis()
          Write operation timeout in ms
 void setAcceptorThreads(String value)
           
 void setBufferSizeBytes(String size)
           
 void setByteBufferType(String value)
           
 void setClassname(String value)
           
 void setDisplayConfiguration(String bool)
           
 void setEnableSnoop(String bool)
           
 void setIdleKeyTimeoutSeconds(String value)
           
 void setKeepAlive(String keepAlive)
           
 void setLinger(String linger)
           
 void setMaxConnectionsCount(String value)
           
 void setName(String value)
           
 void setReadTimeoutMillis(String value)
           
 void setSelectionKeyHandler(String value)
           
 void setSelectorPollTimeoutMillis(String timeout)
           
 void setTcpNoDelay(String noDelay)
           
 void setWriteTimeoutMillis(String value)
           
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent
 
Methods inherited from interface org.jvnet.hk2.component.Injectable
injectedInto
 
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
getProperty, getProperty, getPropertyValue, getPropertyValue
 

Field Detail

DISPLAY_CONFIGURATION

static final boolean DISPLAY_CONFIGURATION
See Also:
Constant Field Values

ENABLE_SNOOP

static final boolean ENABLE_SNOOP
See Also:
Constant Field Values

TCP_NO_DELAY

static final boolean TCP_NO_DELAY
See Also:
Constant Field Values

KEEPALIVE

static final boolean KEEPALIVE
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

SELECTOR_POLL_TIMEOUT

static final int SELECTOR_POLL_TIMEOUT
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
Method Detail

getAcceptorThreads

String getAcceptorThreads()
The number of acceptor threads listening for the transport's events


setAcceptorThreads

void setAcceptorThreads(String value)

getBufferSizeBytes

String getBufferSizeBytes()

setBufferSizeBytes

void setBufferSizeBytes(String size)

getByteBufferType

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)

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)

getEnableSnoop

String getEnableSnoop()
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

void setEnableSnoop(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

String getSelectionKeyHandler()
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)

getKeepAlive

String getKeepAlive()

setKeepAlive

void setKeepAlive(String keepAlive)

findNetworkListeners

@DuckTyped
List<NetworkListener> findNetworkListeners()

getParent

@DuckTyped
Transports getParent()
Specified by:
getParent in interface org.jvnet.hk2.config.ConfigBeanProxy


Copyright © 2013 Oracle Corporation. All Rights Reserved.