public class ClientCompatibilityChecker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientCompatibilityChecker.VersionCompatibilityCheckMode |
Modifier and Type | Field and 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 and Description |
---|
ClientCompatibilityChecker(Properties sdkProperties) |
ClientCompatibilityChecker(Properties sdkProperties,
ClientCompatibilityChecker.VersionCompatibilityCheckMode versionCompatibilityCheckMode) |
Modifier and Type | Method and Description |
---|---|
String |
getMaximumClientCodegenVersion() |
String |
getMinimumClientCodegenVersion() |
boolean |
isClientCodegenVersionCompatible(String clientClassName,
String clientCodegenVersion,
Optional<String> javaMinimumClientCodegenVersionFromClient,
org.slf4j.Logger logger) |
public static final String JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
public static final String JAVA_MAXIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
public static final String JAVA_CLIENT_CODEGEN_VERSION_PROPERTY_NAME
public static final String JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_FROM_CLIENT_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.
public ClientCompatibilityChecker(Properties sdkProperties)
public ClientCompatibilityChecker(Properties sdkProperties, ClientCompatibilityChecker.VersionCompatibilityCheckMode versionCompatibilityCheckMode)
Copyright © 2016–2024. All rights reserved.