public abstract class AbstractClientListener extends Object implements ClientListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
acceptedClients |
protected JMXAgent |
jmxAgent |
protected FFMQEngine |
localEngine |
protected Settings |
settings |
protected boolean |
started |
| Constructor and Description |
|---|
AbstractClientListener(FFMQEngine localEngine,
Settings settings,
JMXAgent jmxAgent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeRemainingClients() |
int |
getAcceptedTotal()
Get the total number of clients accepted by this listener
since startup or statistics reset
|
int |
getActiveClients()
Get the current number of active clients for this listener
|
int |
getDroppedTotal()
Get the total number of clients dropped by this listener
since startup or statistics reset
|
String |
getEngineName()
Get the associated local engine name
|
int |
getMaxActiveClients()
Get the peak number of active clients for this listener
since startup or statistics reset
|
boolean |
isStarted()
Test if the listener is started
|
protected void |
registerClient(ClientProcessor processor) |
void |
resetStats()
Reset this listener's statistics
|
protected void |
unregisterClient(ClientProcessor processor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapacity, getName, start, stopprotected FFMQEngine localEngine
protected Settings settings
protected JMXAgent jmxAgent
protected int acceptedClients
protected boolean started
public AbstractClientListener(FFMQEngine localEngine, Settings settings, JMXAgent jmxAgent)
public String getEngineName()
ClientListenergetEngineName in interface ClientListenerpublic boolean isStarted()
ClientListenerisStarted in interface ClientListenerprotected void registerClient(ClientProcessor processor)
protected void unregisterClient(ClientProcessor processor)
protected void closeRemainingClients()
public int getActiveClients()
ClientListenergetActiveClients in interface ClientListenerpublic int getAcceptedTotal()
ClientListenergetAcceptedTotal in interface ClientListenerpublic int getDroppedTotal()
ClientListenergetDroppedTotal in interface ClientListenerpublic int getMaxActiveClients()
ClientListenergetMaxActiveClients in interface ClientListenerpublic void resetStats()
ClientListenerresetStats in interface ClientListenerCopyright © 2019. All rights reserved.