com.spss.psapi.runtime

Interface Runtimes



  • public interface Runtimes
    This provides mechanisms for managing runtime definitions.
    Since:
    PSAPI 18.1
    Version:
    1.0
    Author:
    Julian Clinton
    • Method Detail

      • newRuntimeDescriptor

        RuntimeDescriptor newRuntimeDescriptor(java.lang.String name,
                                             java.lang.String platform,
                                             java.lang.String version,
                                             java.lang.String expressionLanguage)
        Returns a new runtime descriptor instance. Note that this does not add the runtime descriptor to the set of descriptors because a runtime descriptor can only be added with an operator set.
        Parameters:
        name - the unique runtime name e.g. "spark-scala-1.6"
        platform - the platform name e.g. "spark-scala"
        version - the platform version e.g. "1.6"
        expressionLanguage - the expression language e.g. "spark-sql"
        Returns:
        a new runtime descriptor
        See Also:
        addRuntime(RuntimeDescriptor, OperatorSet)
      • newOperatorSetBuilder

        OperatorSet.Builder newOperatorSetBuilder()
        Returns a builder that can be used to create an operator set.
        Returns:
        a builder that can be used to create an operator set
      • containsRuntimeDescriptor

        boolean containsRuntimeDescriptor(java.lang.String runtimeName)
        Returns true if a descriptor for the runtime name exists, otherwise false. Unlike getRuntimeDescriptor(), this function does not attempt to call any runtime providers to provision the runtime.
        Parameters:
        runtimeName - the runtime name
        Returns:
        true if a descriptor for the runtime name exists
        See Also:
        getRuntimeDescriptor(String)
      • getOperatorSet

        OperatorSet getOperatorSet(java.lang.String runtimeName)
        Returns the operator set associated with the specified runtime or null if no such set can be found. Calls the runtime provider to provision the runtime if it is not already defined.
        Parameters:
        runtimeName - the runtime name
        Returns:
        the operator set associated with the specified runtime or null
        See Also:
        getRuntimeDescriptor(String), RuntimeDescriptor.getName()
      • addRuntime

        void addRuntime(RuntimeDescriptor runtimeDescriptor,
                      OperatorSet operatorSet)
        Adds or replaces an association between a runtime descriptor and an operator set.
        Parameters:
        runtimeDescriptor - the runtime descriptor
        operatorSet - the operator set
      • addRuntimeProvider

        void addRuntimeProvider(RuntimeProvider provider)
        Adds the specified runtime provider to this manager. If the manager encounters an unknown runtime name it will call the provider to provision the runtime (using addRuntime). If there is more than one provider it will try each in turn until one is able to provision the runtime.
        Parameters:
        provider - the runtime provider
      • removeRuntimeProvider

        void removeRuntimeProvider(RuntimeProvider provider)
        Removes the specified runtime provider from this manager.
        Parameters:
        provider - the runtime provider

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.