-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathG2DiagnosticJNI.java
60 lines (47 loc) · 1.66 KB
/
G2DiagnosticJNI.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**********************************************************************************
* © Copyright Senzing, Inc. 2021-2023
* The source code for this program is not published or otherwise divested
* of its trade secrets, irrespective of what has been deposited with the U.S.
* Copyright Office.
**********************************************************************************/
package com.senzing.g2.engine;
/** Implements the {@link NativeDiagnostic} to call the native implementations of each function. */
public class G2DiagnosticJNI implements NativeDiagnostic {
static {
System.loadLibrary("G2");
}
/** {@inheritDoc} */
@Override
public native int init(String moduleName, String iniParams, boolean verboseLogging);
/** {@inheritDoc} */
@Override
public native int initWithConfigID(
String moduleName, String iniParams, long initConfigID, boolean verboseLogging);
/** {@inheritDoc} */
@Override
public native int reinit(long initConfigID);
/** {@inheritDoc} */
@Override
public native int destroy();
/** {@inheritDoc} */
@Override
public native int purgeRepository();
/** {@inheritDoc} */
@Override
public native int getDatastoreInfo(StringBuffer response);
/** {@inheritDoc} */
@Override
public native int checkDatastorePerformance(int secondsToRun, StringBuffer response);
/** {@inheritDoc} */
@Override
public native int getFeature(long libFeatID, StringBuffer response);
/** {@inheritDoc} */
@Override
public native String getLastException();
/** {@inheritDoc} */
@Override
public native int getLastExceptionCode();
/** {@inheritDoc} */
@Override
public native void clearLastException();
}