|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.local.LocalConnections
public class LocalConnections
Class used to check off local connections.
Field Summary | |
---|---|
private boolean |
activated
If true, creation of new connections is available. |
private java.util.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 java.lang.String |
MBEAN_NAME
|
Constructor Summary | |
---|---|
LocalConnections()
|
Method Summary | |
---|---|
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. |
java.lang.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String MBEAN_NAME
private static LocalConnections currentInstance
private java.util.List connections
private boolean activated
private int failedLoginCount
private int initiatedConnectionCount
Constructor Detail |
---|
public LocalConnections()
Method Detail |
---|
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 java.lang.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |