-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathG2ConfigMgrJNI.java
62 lines (49 loc) · 1.65 KB
/
G2ConfigMgrJNI.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
61
62
/**********************************************************************************
* © Copyright Senzing, Inc. 2021
* 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 NativeConfig} interface to call the native implementations of the
* functions.
*/
public class G2ConfigMgrJNI implements NativeConfigMgr {
static {
System.loadLibrary("G2");
}
/** {@inheritDoc} */
@Override
public native int init(String moduleName, String iniParams, boolean verboseLogging);
/** {@inheritDoc} */
@Override
public native int destroy();
/** {@inheritDoc} */
@Override
public native int addConfig(String configStr, String configComments, Result<Long> configID);
/** {@inheritDoc} */
@Override
public native int getConfig(long configID, StringBuffer response);
/** {@inheritDoc} */
@Override
public native int getConfigList(StringBuffer response);
/** {@inheritDoc} */
@Override
public native int setDefaultConfigID(long configID);
/** {@inheritDoc} */
@Override
public native int getDefaultConfigID(Result<Long> configID);
/** {@inheritDoc} */
@Override
public native int replaceDefaultConfigID(long oldConfigID, long newConfigID);
/** {@inheritDoc} */
@Override
public native String getLastException();
/** {@inheritDoc} */
@Override
public native int getLastExceptionCode();
/** {@inheritDoc} */
@Override
public native void clearLastException();
}