Search in sources :

Example 1 with ActiveVersion

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;
}
Also used : StreamingAnalyticsService(com.ibm.streamsx.rest.StreamingAnalyticsService) Instance(com.ibm.streamsx.rest.Instance) ActiveVersion(com.ibm.streamsx.rest.ActiveVersion) IOException(java.io.IOException)

Aggregations

ActiveVersion (com.ibm.streamsx.rest.ActiveVersion)1 Instance (com.ibm.streamsx.rest.Instance)1 StreamingAnalyticsService (com.ibm.streamsx.rest.StreamingAnalyticsService)1 IOException (java.io.IOException)1