Modifier and Type | Class and Description |
---|---|
(package private) static class |
TcpConnectionListener.NetOutputStream |
Modifier and Type | Field and Description |
---|---|
static String |
CLOCK_SYNCHRO_THRESHOLD
Name of the property allowing to change the threshold of warning for the
verification of the synchronization between the client and server clock.
|
private long |
clockSynchroThreshold
Value of the threshold of warning for the verification of the synchronization
between the client and server clock.
|
private int |
connectionCount
Number of connections started with this connection listener.
|
private int |
failedLoginCount
Number of times this connection listener has encountered an erroneous
authentication.
|
static org.objectweb.util.monolog.api.Logger |
logger
logger
|
private int |
protocolErrorCount
Number of times this connection listener has encountered an erroneous magic
number or protocol version.
|
private TcpProxyService |
proxyService
The TCP proxy service
|
private int |
timeout |
Constructor and Description |
---|
TcpConnectionListener(TcpProxyService proxyService,
int timeout)
Creates a new connection listener
|
Modifier and Type | Method and Description |
---|---|
private void |
acceptConnection()
Accepts a TCP connection.
|
protected void |
close()
Releases any resources attached to this daemon.
|
int |
getFailedLoginCount() |
int |
getInitiatedConnectionCount() |
int |
getProtocolErrorCount() |
void |
run() |
protected void |
shutdown()
Interrupts a thread that waits for long periods.
|
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString
public static org.objectweb.util.monolog.api.Logger logger
private TcpProxyService proxyService
private int timeout
public static final String CLOCK_SYNCHRO_THRESHOLD
By default the value is 1000 milliseconds.
private long clockSynchroThreshold
By default the value is 1000 milliseconds.
private int failedLoginCount
private int connectionCount
private int protocolErrorCount
public TcpConnectionListener(TcpProxyService proxyService, int timeout)
proxyService
- the TCP proxy service associated with this connection listenertimeout
- the timeoutpublic void run()
private void acceptConnection() throws Exception
UserConnection
with the
right user's proxy, creates and starts the TcpConnection
.Exception
protected void shutdown()
Daemon
protected void close()
Daemon
public int getFailedLoginCount()
public int getInitiatedConnectionCount()
public int getProtocolErrorCount()
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.