public final class SerialComDBReleaseJNIBridge extends Object
This class is an interface between java and native shared library. The native library is found in 'lib-comdbfree' folder in 'scm-x.x.x.jar' file.
| Constructor and Description |
|---|
SerialComDBReleaseJNIBridge()
Allocates a new SerialComDBReleaseJNIBridge object.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getComPortNumbersInUse() |
int |
getCurrentComDBDatabaseSize() |
static boolean |
loadNativeLibrary(String directoryPath,
String loadedLibName,
SerialComSystemProperty serialComSystemProperty,
int osType,
int cpuArch,
int javaABIType)
Extract native library from jar in a working directory, load and link it.
|
int |
releaseAllComPorts(String[] excludeList) |
int |
releaseComPort(String comPortName) |
int |
resizeComDBDatabase(int newSize) |
int |
startSerialComDBReleaseSerive() |
int |
stopSerialComDBReleaseSerive() |
public SerialComDBReleaseJNIBridge()
Allocates a new SerialComDBReleaseJNIBridge object.
public static boolean loadNativeLibrary(String directoryPath, String loadedLibName, SerialComSystemProperty serialComSystemProperty, int osType, int cpuArch, int javaABIType) throws SecurityException, SerialComUnexpectedException, SerialComLoadException, UnsatisfiedLinkError
Extract native library from jar in a working directory, load and link it. The 'lib-comdbfree' folder in 'scm-x.x.x.jar'.
directoryPath - null for default directory or user supplied directory path.loadedLibName - null for default name or user supplied name of loaded library.serialComSystemProperty - instance of SerialComSystemProperty to get required java properties.cpuArch - architecture of CPU this library is running on.osType - operating system this library is running on.javaABIType - binary application interface type to correctly link.SecurityException - if java system properties can not be accessed.SerialComUnexpectedException - if java system property is null.SerialComLoadException - if any file system related issue occurs.UnsatisfiedLinkError - if loading/linking shared library fails.public int startSerialComDBReleaseSerive()
public int stopSerialComDBReleaseSerive()
public int releaseComPort(String comPortName)
public int releaseAllComPorts(String[] excludeList)
public String[] getComPortNumbersInUse()
public int getCurrentComDBDatabaseSize()
public int resizeComDBDatabase(int newSize)
Copyright © 2016. All rights reserved.