ARTEMIS-2828 Fixing tests after main change on ManagementServiceImpl
This is almost a NO-JIRA, but since I'm fixing ManagementServiceImplTest.testGetResources broken after this I'm commiting this change associated with ARTEMIS-2828
This commit is contained in:
parent
c433f50957
commit
832bd85941
|
@ -263,6 +263,7 @@ public class ManagementServiceImpl implements ManagementService {
|
|||
|
||||
@Override
|
||||
public void registerAddressMeters(AddressInfo addressInfo, AddressControl addressControl) {
|
||||
if (messagingServer != null) { // it could be null on tests, but never on a real server
|
||||
MetricsManager metricsManager = messagingServer.getMetricsManager();
|
||||
if (metricsManager != null) {
|
||||
metricsManager.registerAddressGauge(addressInfo.getName().toString(), builder -> {
|
||||
|
@ -272,6 +273,7 @@ public class ManagementServiceImpl implements ManagementService {
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void unregisterAddress(final SimpleString address) throws Exception {
|
||||
|
|
Loading…
Reference in New Issue