public class TransportBean extends AdsBaseBean
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_BACKLOG_NB
The default backlog queue size
|
private static int |
DEFAULT_NB_THREADS
The default number of threads
|
private java.util.List<java.lang.String> |
enabledCiphers
The transport list of enabled ciphers
|
private java.util.List<java.lang.String> |
enabledProtocols
The transport list of enabled protocols
|
private boolean |
needClientAuth
The transport 'need client auth' flag
|
private int |
systemPort
The port number
|
private java.lang.String |
transportAddress
The transport address
|
private int |
transportBackLog
The backlog for the transport services
|
private boolean |
transportEnableSsl
A flag set if SSL is enabled
|
private java.lang.String |
transportId
The unique identifier for this transport
|
private int |
transportNbThreads
The number of threads to use for the IoAcceptor executor
|
private boolean |
wantClientAuth
The transport 'want client auth' flag
|
| Constructor and Description |
|---|
TransportBean()
Create a new TransportBean instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEnabledCiphers(java.lang.String... enabledCiphers) |
void |
addEnabledProtocols(java.lang.String... enabledProtocols) |
java.util.List<java.lang.String> |
getEnabledCiphers() |
java.util.List<java.lang.String> |
getEnabledProtocols() |
boolean |
getNeedClientAuth() |
int |
getSystemPort() |
java.lang.String |
getTransportAddress() |
int |
getTransportBackLog() |
java.lang.String |
getTransportId() |
int |
getTransportNbThreads() |
boolean |
getWantClientAuth() |
boolean |
isTransportEnableSSL() |
void |
setEnabledCiphers(java.util.List<java.lang.String> enabledCiphers) |
void |
setEnabledProtocols(java.util.List<java.lang.String> enabledProtocols) |
void |
setNeedClientAuth(boolean needClientAuth) |
void |
setSystemPort(int systemPort) |
void |
setTransportAddress(java.lang.String transportAddress) |
void |
setTransportBackLog(int transportBacklog)
Sets the size of the incoming requests waiting queue
|
void |
setTransportEnableSSL(boolean transportEnableSSL)
Enable or disable SSL
|
void |
setTransportId(java.lang.String transportId) |
void |
setTransportNbThreads(int transportNbThreads)
Sets the number of thread to use to process incoming requests
|
void |
setWantClientAuth(boolean wantClientAuth) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs) |
getDescription, getDn, isDisabled, isEnabled, setDescription, setDn, setEnabled, toString, toString, toString, toStringprivate static final int DEFAULT_BACKLOG_NB
private static final int DEFAULT_NB_THREADS
@ConfigurationElement(attributeType="ads-transportId", isRdn=true) private java.lang.String transportId
@ConfigurationElement(attributeType="ads-transportAddress") private java.lang.String transportAddress
@ConfigurationElement(attributeType="ads-systemPort") private int systemPort
@ConfigurationElement(attributeType="ads-transportEnableSsl", isOptional=true, defaultValue="false") private boolean transportEnableSsl
@ConfigurationElement(attributeType="ads-transportNbThreads", isOptional=true, defaultValue="3") private int transportNbThreads
@ConfigurationElement(attributeType="ads-transportBackLog", isOptional=true, defaultValue="50") private int transportBackLog
@ConfigurationElement(attributeType="ads-enabledCiphers", isOptional=true) private java.util.List<java.lang.String> enabledCiphers
@ConfigurationElement(attributeType="ads-enabledProtocols", isOptional=true) private java.util.List<java.lang.String> enabledProtocols
@ConfigurationElement(attributeType="ads-needClientAuth", isOptional=true, defaultValue="false") private boolean needClientAuth
@ConfigurationElement(attributeType="ads-wantClientAuth", isOptional=true, defaultValue="false") private boolean wantClientAuth
public void setSystemPort(int systemPort)
systemPort - the port to setpublic int getSystemPort()
public void setTransportAddress(java.lang.String transportAddress)
transportAddress - the address to setpublic java.lang.String getTransportAddress()
public boolean isTransportEnableSSL()
true id SSL is enabled for this transportpublic void setTransportEnableSSL(boolean transportEnableSSL)
transportEnableSSL - if true, SSL is enabled.public int getTransportNbThreads()
public void setTransportNbThreads(int transportNbThreads)
The - number of threadspublic int getTransportBackLog()
public void setTransportBackLog(int transportBacklog)
The - size of waiting request queuepublic java.lang.String getTransportId()
public void setTransportId(java.lang.String transportId)
transportId - the transportId to setpublic void setNeedClientAuth(boolean needClientAuth)
needClientAuth - The flag to set when the client authentication is neededpublic boolean getNeedClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
wantClientAuth - The flag to set when the client authentication is wantedpublic boolean getWantClientAuth()
public java.util.List<java.lang.String> getEnabledCiphers()
public void setEnabledCiphers(java.util.List<java.lang.String> enabledCiphers)
enabledCiphers - the enabledCiphers to setpublic void addEnabledCiphers(java.lang.String... enabledCiphers)
enabledCiphers - the enabledCiphers to addpublic java.util.List<java.lang.String> getEnabledProtocols()
public void setEnabledProtocols(java.util.List<java.lang.String> enabledProtocols)
enabledProtocols - the enabledProtocols to setpublic void addEnabledProtocols(java.lang.String... enabledProtocols)
enabledProtocols - the enabledProtocols to addpublic java.lang.String toString(java.lang.String tabs)
toString in class AdsBaseBeanpublic java.lang.String toString()
toString in class AdsBaseBean