[AMQ-9301] Add additional fields to o.a.activemq.broker.jmx.Connection

This commit is contained in:
Matt Pavlovich 2023-08-22 16:26:00 -05:00
parent d5ea415463
commit 9f374dfcb5
2 changed files with 32 additions and 0 deletions

View File

@ -176,4 +176,19 @@ public class ConnectionView implements ConnectionViewMBean {
public Long 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();
}
}

View File

@ -116,4 +116,21 @@ public interface ConnectionViewMBean extends Service {
@MBeanInfo("The age in ms of the oldest active transaction established on this Connection.")
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();
}