Class ClientCompatibilityChecker


  • public class ClientCompatibilityChecker
    extends Object
    • Field Detail

      • JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME

        public static final String JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
        See Also:
        Constant Field Values
      • JAVA_MAXIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME

        public static final String JAVA_MAXIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
        See Also:
        Constant Field Values
      • JAVA_CLIENT_CODEGEN_VERSION_PROPERTY_NAME

        public static final String JAVA_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
        See Also:
        Constant Field Values
      • JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_FROM_CLIENT_PROPERTY_NAME

        public static final String JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_FROM_CLIENT_PROPERTY_NAME
        See Also:
        Constant Field Values
      • OCI_JAVASDK_CLIENT_VERSION_COMPATIBILITY_CHECK_SYSTEM_PROPERTY_NAME

        public static final String OCI_JAVASDK_CLIENT_VERSION_COMPATIBILITY_CHECK_SYSTEM_PROPERTY_NAME
        This Java VM system property (which can be set using -Doci.javasdk.disable.version.compatibility.check=NEVER, for example) controls how frequently client compatibility should be checked.

        Valid choices for this system property are "NEVER", "ONCE", and "ALWAYS". The default is "ONCE".

        "NEVER" does not perform any compatibility checks at all.

        "ONCE", which is the default, performs the check once per client class.

        "ALWAYS" performs the check every time a new client is instantiated.

        See Also:
        Constant Field Values
    • Method Detail

      • getMinimumClientCodegenVersion

        public String getMinimumClientCodegenVersion()
      • getMaximumClientCodegenVersion

        public String getMaximumClientCodegenVersion()
      • isClientCodegenVersionCompatible

        public boolean isClientCodegenVersionCompatible​(String clientClassName,
                                                        String clientCodegenVersion,
                                                        Optional<String> javaMinimumClientCodegenVersionFromClient,
                                                        org.slf4j.Logger logger)