Server-side support for 'keepChecking' attribute...

in remote spring boot apps.

Note: this change is supposed to be paired with changes in
boot dash code to transmit the setting as well.
This commit is contained in:
Kris De Volder
2019-04-16 12:56:46 -07:00
parent 803ec42fd7
commit 1dcde6ea3d
2 changed files with 13 additions and 2 deletions

View File

@@ -148,7 +148,10 @@ public class DelegatingStreamConnectionProvider implements StreamConnectionProvi
private String host;
private String urlScheme = "https";
private String port = "443";
private boolean keepChecking = false;
private boolean keepChecking = true;
//keepChecking defaults to true. Boot dash automatic remote apps should override this explicitly.
//Reason. All other 'sources' of remote apps are 'manual' and we want them to default to
//'keepChecking' even if the user doesn't set this to true manually.
public RemoteBootAppData(String jmxurl, String host) {
super();
@@ -246,6 +249,11 @@ public class DelegatingStreamConnectionProvider implements StreamConnectionProvi
app.setUrlScheme(urlScheme);
}
}
//keepChecking attribute added in STS 4.2.1
if (list.size()>=5) {
String keepChecking = list.get(4);
app.setKeepChecking("true".equals(keepChecking));
}
return app;
}
throw new IllegalArgumentException("Invalid remote app data: "+incomingData);

View File

@@ -35,7 +35,10 @@ public class RemoteRunningAppsProvider implements RunningAppProvider {
private String host;
private String urlScheme = "https";
private String port = "443";
private boolean keepChecking = false;
private boolean keepChecking = true;
//keepChecking defaults to true. Boot dash automatic remote apps should override this explicitly.
//Reason. All other 'sources' of remote apps are 'manual' and we want them to default to
//'keepChecking' even if the user doesn't set this to true manually.
public String getJmxurl() {
return jmxurl;