public class LocalConnections extends Object implements LocalConnectionsMBean
Modifier and Type | Field and Description |
---|---|
private boolean |
activated
If true, creation of new connections is available.
|
private List |
connections
Lists the opened local connections.
|
private static LocalConnections |
currentInstance
Unique LocalConnections instance.
|
private int |
failedLoginCount
Number of failed login attempts.
|
private int |
initiatedConnectionCount
Number of local connections initiated since agent server start.
|
private static String |
MBEAN_NAME |
Constructor and Description |
---|
LocalConnections() |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the connection manager.
|
void |
addLocalConnection(LocalRequestChannel localRequestChannel) |
void |
closeAllConnections()
Closes all opened connections.
|
void |
deactivate()
Deactivates the connection manager.
|
static LocalConnections |
getCurrentInstance() |
int |
getFailedLoginCount()
Gets the number of connections rejected due to a failed authentication.
|
int |
getInitiatedConnectionCount()
Gets the number of initiated connections since server start.
|
String |
getMBeanName()
Gets the name of the MBean.
|
int |
getRunningConnectionsCount()
Gets the number of living connections.
|
void |
increaseFailedLoginCount() |
void |
increaseInitiatedConnectionCount() |
boolean |
isActivated()
Tells if the ConnectionManager is active.
|
void |
removeLocalConnection(LocalRequestChannel localRequestChannel) |
private static final String MBEAN_NAME
private static LocalConnections currentInstance
private List connections
private boolean activated
private int failedLoginCount
private int initiatedConnectionCount
public void activate()
ConnectionManagerMBean
activate
in interface ConnectionManagerMBean
public void closeAllConnections()
ConnectionManagerMBean
closeAllConnections
in interface ConnectionManagerMBean
public void deactivate()
ConnectionManagerMBean
deactivate
in interface ConnectionManagerMBean
public int getRunningConnectionsCount()
ConnectionManagerMBean
getRunningConnectionsCount
in interface ConnectionManagerMBean
public boolean isActivated()
ConnectionManagerMBean
isActivated
in interface ConnectionManagerMBean
public void addLocalConnection(LocalRequestChannel localRequestChannel)
public void removeLocalConnection(LocalRequestChannel localRequestChannel)
public static LocalConnections getCurrentInstance()
public String getMBeanName()
ConnectionManagerMBean
getMBeanName
in interface ConnectionManagerMBean
public int getFailedLoginCount()
ConnectionManagerMBean
getFailedLoginCount
in interface ConnectionManagerMBean
public void increaseFailedLoginCount()
public int getInitiatedConnectionCount()
ConnectionManagerMBean
getInitiatedConnectionCount
in interface ConnectionManagerMBean
public void increaseInitiatedConnectionCount()
Copyright © 2019 ScalAgent D.T.. All rights reserved.