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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user