changed live hover checks from various classpath and property checks towards JMX bean lookup, and turned the check into parallel checks

This commit is contained in:
Martin Lippert
2019-02-11 11:32:18 +01:00
parent 6ef4d7837a
commit fd445778b3
7 changed files with 72 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018 Pivotal, Inc.
* Copyright (c) 2018, 2019 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -96,7 +96,7 @@ public class RemoteRunningAppsProvider implements RunningAppProvider {
@Override
public synchronized Collection<SpringBootApp> getAllRunningSpringApps() throws Exception {
return remoteAppInstances.values().stream().filter(SpringBootApp::isSpringBootApp).collect(CollectorUtil.toImmutableList());
return remoteAppInstances.values().stream().filter(SpringBootApp::hasUsefulJmxBeans).collect(CollectorUtil.toImmutableList());
}
synchronized void handleSettings(Settings settings) {

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017, 2018 Pivotal, Inc.
* Copyright (c) 2017, 2019 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -109,7 +109,7 @@ public class MockRunningAppProvider {
}
public MockAppBuilder isSpringBootApp(boolean isBoot) throws Exception {
when(app.isSpringBootApp()).thenReturn(isBoot);
when(app.hasUsefulJmxBeans()).thenReturn(isBoot);
return this;
}