Package com.oracle.bmc.util.internal
Class ClientCompatibilityChecker
- java.lang.Object
-
- com.oracle.bmc.util.internal.ClientCompatibilityChecker
-
public class ClientCompatibilityChecker extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientCompatibilityChecker.VersionCompatibilityCheckMode
-
Field Summary
Fields Modifier and Type Field Description static String
JAVA_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
static String
JAVA_MAXIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
static String
JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_FROM_CLIENT_PROPERTY_NAME
static String
JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
static 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.
-
Constructor Summary
Constructors Constructor Description ClientCompatibilityChecker(Properties sdkProperties)
ClientCompatibilityChecker(Properties sdkProperties, ClientCompatibilityChecker.VersionCompatibilityCheckMode versionCompatibilityCheckMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMaximumClientCodegenVersion()
String
getMinimumClientCodegenVersion()
boolean
isClientCodegenVersionCompatible(String clientClassName, String clientCodegenVersion, Optional<String> javaMinimumClientCodegenVersionFromClient, org.slf4j.Logger logger)
-
-
-
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
-
-
Constructor Detail
-
ClientCompatibilityChecker
public ClientCompatibilityChecker(Properties sdkProperties)
-
ClientCompatibilityChecker
public ClientCompatibilityChecker(Properties sdkProperties, ClientCompatibilityChecker.VersionCompatibilityCheckMode versionCompatibilityCheckMode)
-
-