mirror of https://github.com/apache/activemq.git
[AMQ-9301] Add additional fields to o.a.activemq.broker.jmx.Connection
(cherry picked from commit 9f374dfcb5
)
This commit is contained in:
parent
b0455fd8a5
commit
a27045654c
|
@ -176,4 +176,19 @@ public class ConnectionView implements ConnectionViewMBean {
|
||||||
public Long getOldestActiveTransactionDuration() {
|
public Long getOldestActiveTransactionDuration() {
|
||||||
return connection.getOldestActiveTransactionDuration();
|
return connection.getOldestActiveTransactionDuration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isFaultTolerantConnection() {
|
||||||
|
return connection.isFaultTolerantConnection();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isManageable() {
|
||||||
|
return connection.isManageable();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isNetworkConnection() {
|
||||||
|
return connection.isNetworkConnection();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,4 +116,21 @@ public interface ConnectionViewMBean extends Service {
|
||||||
@MBeanInfo("The age in ms of the oldest active transaction established on this Connection.")
|
@MBeanInfo("The age in ms of the oldest active transaction established on this Connection.")
|
||||||
public Long getOldestActiveTransactionDuration();
|
public Long getOldestActiveTransactionDuration();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if the Connection is fault tolerant
|
||||||
|
*/
|
||||||
|
@MBeanInfo("Connection is fault tolerant.")
|
||||||
|
boolean isFaultTolerantConnection();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if the Connection is manageable
|
||||||
|
*/
|
||||||
|
@MBeanInfo("Connection is manageable.")
|
||||||
|
boolean isManageable();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if the Connection is a network connection
|
||||||
|
*/
|
||||||
|
@MBeanInfo("Connection is a network connection.")
|
||||||
|
boolean isNetworkConnection();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue