| 
QuickServer v1.4.7  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.quickserver.util.xmlreader.AdvancedSettings
This class encapsulate Advanced Settings. The example xml is
        ....
        <advanced-settings>
                <charset>ISO-8859-1<charset>
                <byte-buffer-size>61440<byte-buffer-size>
                <use-direct-byte-buffer>true</use-direct-byte-buffer>
                <backlog>1024</backlog>		
                <socket-linger>-1</socket-linger>
                <debug-non-blocking-mode>false</debug-non-blocking-mode> 
        </advanced-settings>
        ....
 
| Constructor Summary | |
AdvancedSettings()
 | 
|
| Method Summary | |
 int | 
getBacklog()
Returns the listen backlog length for the QuickServer.  | 
 int | 
getByteBufferSize()
Returns ByteBuffer size to be used in ByteBuffer pool.  | 
 java.lang.String | 
getCharset()
Returns Charset to be used for String decoding and encoding..  | 
 java.lang.String | 
getClientIdentifier()
Returns the ClientIdentifier class that that implements ClientIdentifier. | 
 boolean | 
getDebugNonBlockingMode()
Returns DebugNonBlockingMode flag.  | 
 int | 
getMaxThreadsForNioWrite()
Returns the maximum threads allowed for nio write.  | 
 java.lang.String | 
getQSObjectPoolMaker()
Returns the QSObjectPoolMaker class that implements QSObjectPoolMaker. | 
 int | 
getSocketLinger()
Returns linger time in seconds.  | 
 boolean | 
getUseDirectByteBuffer()
Returns UseDirectByteBuffer flag.  | 
 void | 
setBacklog(int backlog)
Sets the listen backlog length for the QuickServer to listen on.  | 
 void | 
setByteBufferSize(int byteBufferSize)
Sets the ByteBuffer size to be used in ByteBuffer pool.  | 
 void | 
setCharset(java.lang.String charset)
Sets the Charset to be used for String decoding and encoding.  | 
 void | 
setClientIdentifier(java.lang.String clientIdentifierClass)
Sets the ClientIdentifier class that implements ClientIdentifier. | 
 void | 
setDebugNonBlockingMode(boolean debugNonBlockingMode)
Sets the DebugNonBlockingMode flag.  | 
 void | 
setMaxThreadsForNioWrite(int maxThreadsForNioWrite)
Sets the maximum threads allowed for nio write.  | 
 void | 
setQSObjectPoolMaker(java.lang.String qSObjectPoolMakerClass)
Sets the QSObjectPoolMaker class that implements QSObjectPoolMaker. | 
 void | 
setSocketLinger(int socketLinger)
Enable SO_LINGER with the specified linger time in seconds.  | 
 void | 
setUseDirectByteBuffer(boolean flag)
Sets the UseDirectByteBuffer flag.  | 
 java.lang.String | 
toXML(java.lang.String pad)
Returns XML config of this class.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public AdvancedSettings()
| Method Detail | 
public void setCharset(java.lang.String charset)
charset - to be used for String decoding and encodinggetCharset()public java.lang.String getCharset()
setCharset(java.lang.String)public void setByteBufferSize(int byteBufferSize)
byteBufferSize - size to be used in ByteBuffer pool.getByteBufferSize()public int getByteBufferSize()
setByteBufferSize(int)public void setBacklog(int backlog)
backlog - The listen backlog length.getBacklog()public int getBacklog()
setBacklog(int)public void setUseDirectByteBuffer(boolean flag)
true
flag - UseDirectByteBuffer flag.getUseDirectByteBuffer()public boolean getUseDirectByteBuffer()
setUseDirectByteBuffer(boolean)public void setSocketLinger(int socketLinger)
0 SO_LINGER will be disable.
 XML Tag: <socket-linger>-1</socket-linger>
socketLinger - if the linger value is negative SO_LINGER will be disable.getSocketLinger()public int getSocketLinger()
setSocketLinger(int)public void setDebugNonBlockingMode(boolean debugNonBlockingMode)
false
debugNonBlockingMode - DebugNonBlockingMode flag.getDebugNonBlockingMode()public boolean getDebugNonBlockingMode()
setDebugNonBlockingMode(boolean)public void setClientIdentifier(java.lang.String clientIdentifierClass)
ClientIdentifier.
 XML Tag: <client-identifier>org.quickserver.net.server.impl.TryClientIdentifier</client-identifier>
clientIdentifierClass - the fully qualified name of the class that 
 implements ClientIdentifier.getClientIdentifier()public java.lang.String getClientIdentifier()
ClientIdentifier.
setClientIdentifier(java.lang.String)public void setQSObjectPoolMaker(java.lang.String qSObjectPoolMakerClass)
QSObjectPoolMaker.
 XML Tag: <qsobject-pool-maker>org.quickserver.util.pool.MakeQSObjectPool</qsobject-pool-maker>
qSObjectPoolMakerClass - the fully qualified name of the class that 
 implements QSObjectPoolMaker.getQSObjectPoolMaker()public java.lang.String getQSObjectPoolMaker()
QSObjectPoolMaker.
setQSObjectPoolMaker(java.lang.String)public void setMaxThreadsForNioWrite(int maxThreadsForNioWrite)
maxThreadsForNioWrite - maximum threads allowed for nio writegetMaxThreadsForNioWrite()public int getMaxThreadsForNioWrite()
setMaxThreadsForNioWrite(int)public java.lang.String toXML(java.lang.String pad)
  | 
QuickServer v1.4.7  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||