use of com.ibm.streamsx.rest.ActiveVersion in project streamsx.topology by IBMStreams.
the class AnalyticsServiceStreamsContext method getSasServiceBase.
/**
* Get the SAS OS version base.
*/
private static int getSasServiceBase(AppEntity entity) {
// Need to interrogate the service to figure out
// the os version of the service.
StreamingAnalyticsService sas;
try {
sas = sas(entity);
Instance instance = sas.getInstance();
ActiveVersion ver = instance.getActiveVersion();
// service force remote build.
return Integer.valueOf(ver.getMinimumOSBaseVersion());
} catch (IOException e) {
;
}
return -1;
}
Aggregations