Package org.gridgain.internal.columnar
Class Environment
java.lang.Object
org.gridgain.internal.columnar.Environment
Class describing underlying system environment: operating system and it's architecture.
It's used to resolve native libraries correctly.
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironment(String os, String arch) Environment(String os, String arch, boolean isMuslEnvironment) Constructs an instance of the Environment class with specified operating system and architecture. -
Method Summary
Modifier and TypeMethodDescriptionarch()@Nullable StringReturns a fallback jni library full file name with correct os and arch selectors for described environment.getJniLibraryFileName(String name) Returns a jni library full file name with correct os and arch selectors for described environment.booleanbooleanisAix()booleanisMac()booleanisS390x()booleanbooleanisUnix()booleanos()toString()
-
Constructor Details
-
Environment
-
Environment
Constructs an instance of the Environment class with specified operating system and architecture.- Parameters:
os- The name of the operating system.arch- The name of the architecture.isMuslEnvironment- Indicates whether the environment uses musl libc.
-
-
Method Details
-
os
-
arch
-
isAarch64
public boolean isAarch64() -
isS390x
public boolean isS390x() -
isWindows
public boolean isWindows() -
isMac
public boolean isMac() -
isAix
public boolean isAix() -
isUnix
public boolean isUnix() -
isSolaris
public boolean isSolaris() -
getJniLibraryFileName
Returns a jni library full file name with correct os and arch selectors for described environment.- Parameters:
name- base library name.- Returns:
- jni file library name that can be used with System.load.
-
getFallbackJniLibraryFileName
Returns a fallback jni library full file name with correct os and arch selectors for described environment.- Parameters:
name- base library name.- Returns:
- jni file library name that can be used with System.load.
-
toString
-