|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connector
An interface to connectors listening and processing client requests. Note that many of the connector attributes may take effect only after the connector is restarted.
Method Summary | |
---|---|
String |
getAddress()
Gets the address of the server of the connection. |
int |
getConnectionCount()
Gets a snapshot of the number of active and idle connections. |
int |
getConnectionTimeout()
Gets the timeout to wait for a request from an idle connection. |
ObjectName |
getFilterName()
Gets the filter processing the requests. |
String |
getKeyAlias()
Gets the certificate key alias of the connection. |
ObjectName |
getLoggerName()
Gets the the access logger of this connector. |
int |
getMaxIdleConnections()
Gets the maximum number of idle connections to keep alive. |
String |
getName()
Gets the name of the server of the connection. |
int |
getPort()
Gets the port of the connector. |
String |
getProvider()
Gets the provider of the connection. |
int |
getRedirectPort()
Gets the port of the corresponding secure/non-secure port to redirect requests. |
int |
getRequestTimeout()
Gets the timeout for the processing time of one client request. |
boolean |
isKeepConnection()
Checks whether to keep connections alive on idle after processing the corresponding requests if applicable. |
boolean |
isLoggingDisabled()
Checks whether access logging of this connector is disabled. |
boolean |
isSecure()
Checks the secure connections flag. |
boolean |
keepConnection(Connection con)
Keeps the specified connection alive on idle after processing the corresponding request if applicable. |
void |
setConnectionTimeout(int timeout)
Sets the timeout to wait for a request in an idle connection. |
void |
setFilterName(ObjectName filter)
Sets the filter processing the requests. |
void |
setKeyAlias(String alias)
Sets the certificate key alias of the connection. |
void |
setKeyPassword(String pswd)
Sets the certificate key password of the connection. |
void |
setLoggerName(ObjectName logger)
Sets the access logger of this connector. |
void |
setLoggingDisabled(boolean flag)
Sets whether access logging of this connector is disabled. |
void |
setMaxIdleConnections(int count)
Sets the maximum number of idle connections to keep alive. |
void |
setPort(int port)
Sets the port of the connector. |
void |
setProvider(String name)
Sets the provider of the connection. |
void |
setRedirectPort(int port)
Sets the port of the corresponding secure/non-secure port to redirect requests. |
void |
setRequestTimeout(int timeout)
Sets the timeout for the processing time of one client request. |
void |
setSecure(boolean secure)
Sets the secure connections flag. |
Methods inherited from interface org.norther.tammi.core.base.Startable |
---|
isStarted, start, stop |
Method Detail |
---|
String getName()
String getAddress()
String getProvider()
void setProvider(String name)
name
- the name of the provider.String getKeyAlias()
void setKeyAlias(String alias)
alias
- the key alias.void setKeyPassword(String pswd)
pswd
- the key pssword.int getPort()
void setPort(int port)
port
- the port number.int getRedirectPort()
void setRedirectPort(int port)
port
- the redirect port number.boolean isSecure()
void setSecure(boolean secure)
secure
- the secure connections flag.ObjectName getFilterName()
void setFilterName(ObjectName filter)
filter
- the name or pattern of the filter.int getRequestTimeout()
void setRequestTimeout(int timeout)
timeout
- a new timeout for requests in msecs.int getConnectionTimeout()
void setConnectionTimeout(int timeout)
timeout
- the timeout for connections in msecs.int getMaxIdleConnections()
void setMaxIdleConnections(int count)
Note that how to apply the limit to the active number of connections is implementation dependent.
count
- the max number of idle connections.int getConnectionCount()
Note that the count is implementation dependent and its accuracy may vary.
boolean isLoggingDisabled()
void setLoggingDisabled(boolean flag)
flag
- true if logging is disabled, false otherwise.ObjectName getLoggerName()
void setLoggerName(ObjectName logger)
logger
- the object name of the logger or a query.boolean isKeepConnection()
boolean keepConnection(Connection con)
con
- the connection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |