Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00C65197A3 for ; Wed, 27 Apr 2016 08:16:03 +0000 (UTC) Received: (qmail 16765 invoked by uid 500); 27 Apr 2016 08:16:02 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 16685 invoked by uid 500); 27 Apr 2016 08:16:02 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 16608 invoked by uid 99); 27 Apr 2016 08:16:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2016 08:16:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B5376E020E; Wed, 27 Apr 2016 08:16:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.apache.org Date: Wed, 27 Apr 2016 08:16:04 -0000 Message-Id: <86aa5e27147e43edb53d68289fe85701@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [03/12] ignite git commit: IGNITE-2823: CPP/ODBC: Splitted common in two libs. This closes #554. http://git-wip-us.apache.org/repos/asf/ignite/blob/1cca0be5/modules/platforms/cpp/jni/project/vs/module.def ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/jni/project/vs/module.def b/modules/platforms/cpp/jni/project/vs/module.def new file mode 100644 index 0000000..9b9f6dd --- /dev/null +++ b/modules/platforms/cpp/jni/project/vs/module.def @@ -0,0 +1,132 @@ +LIBRARY ignite.jni.dll +EXPORTS +IgniteReallocate @1 +IgniteIgnitionStart @2 +IgniteIgnitionInstance @3 +IgniteIgnitionEnvironmentPointer @4 +IgniteIgnitionStop @5 +IgniteIgnitionStopAll @6 +IgniteTargetOutLong @7 +IgniteProcessorReleaseStart @8 +IgniteProcessorProjection @9 +IgniteProcessorCache @10 +IgniteProcessorCreateCache @11 +IgniteProcessorGetOrCreateCache @12 +IgniteProcessorAffinity @13 +IgniteProcessorDataStreamer @14 +IgniteProcessorTransactions @15 +IgniteProcessorServices @16 +IgniteTargetInStreamOutObject @17 +IgniteTargetInStreamOutLong @18 +IgniteTargetOutStream @19 +IgniteTargetInStreamOutStream @20 +IgniteTargetInObjectStreamOutStream @21 +IgniteTargetListenFuture @22 +IgniteTargetListenFutureForOperation @23 +IgniteAffinityPartitions @24 +IgniteCacheWithSkipStore @25 +IgniteCacheWithNoRetries @26 +IgniteCacheWithExpiryPolicy @27 +IgniteCacheWithAsync @28 +IgniteCacheWithKeepPortable @29 +IgniteCacheClear @30 +IgniteCacheRemoveAll @31 +IgniteCacheOutOpQueryCursor @32 +IgniteCacheOutOpContinuousQuery @33 +IgniteCacheIterator @34 +IgniteCacheLocalIterator @35 +IgniteCacheEnterLock @36 +IgniteCacheExitLock @37 +IgniteCacheTryEnterLock @38 +IgniteCacheCloseLock @39 +IgniteCacheRebalance @40 +IgniteCacheSize @41 +IgniteCacheStoreCallbackInvoke @42 +IgniteComputeWithNoFailover @43 +IgniteComputeWithTimeout @44 +IgniteComputeExecuteNative @45 +IgniteContinuousQueryClose @46 +IgniteContinuousQueryGetInitialQueryCursor @47 +IgniteDataStreamerListenTopology @48 +IgniteDataStreamerAllowOverwriteGet @49 +IgniteDataStreamerAllowOverwriteSet @50 +IgniteDataStreamerSkipStoreGet @51 +IgniteDataStreamerSkipStoreSet @52 +IgniteDataStreamerPerNodeBufferSizeGet @53 +IgniteDataStreamerPerNodeBufferSizeSet @54 +IgniteDataStreamerPerNodeParallelOperationsGet @55 +IgniteDataStreamerPerNodeParallelOperationsSet @56 +IgniteMessagingWithAsync @57 +IgniteProjectionForOthers @58 +IgniteProjectionForRemotes @59 +IgniteProjectionForDaemons @60 +IgniteProjectionForRandom @61 +IgniteProjectionForOldest @62 +IgniteProjectionForYoungest @63 +IgniteProcessorCompute @64 +IgniteProcessorMessage @65 +IgniteProcessorEvents @66 +IgniteProjectionResetMetrics @67 +IgniteProjectionOutOpRet @68 +IgniteQueryCursorIterator @69 +IgniteQueryCursorClose @70 +IgniteTransactionsStart @71 +IgniteTransactionsCommit @72 +IgniteTransactionsCommitAsync @73 +IgniteTransactionsRollback @74 +IgniteTransactionsRollbackAsync @75 +IgniteTransactionsClose @76 +IgniteTransactionsState @77 +IgniteTransactionsSetRollbackOnly @78 +IgniteTransactionsResetMetrics @79 +IgniteAcquire @80 +IgniteRelease @81 +IgniteThrowToJava @82 +IgniteHandlersSize @83 +IgniteCreateContext @84 +IgniteDeleteContext @85 +IgniteDestroyJvm @86 +IgniteEventsWithAsync @87 +IgniteEventsStopLocalListen @88 +IgniteEventsLocalListen @89 +IgniteEventsIsEnabled @90 +IgniteTargetOutObject @91 +IgniteServicesWithAsync @92 +IgniteServicesWithServerKeepPortable @93 +IgniteServicesCancel @94 +IgniteServicesCancelAll @95 +IgniteServicesGetServiceProxy @96 +IgniteProcessorExtensions @97 +IgniteProcessorAtomicLong @98 +IgniteAtomicLongGet @99 +IgniteAtomicLongIncrementAndGet @100 +IgniteAtomicLongGetAndIncrement @101 +IgniteAtomicLongAddAndGet @102 +IgniteAtomicLongGetAndAdd @103 +IgniteAtomicLongDecrementAndGet @104 +IgniteAtomicLongGetAndDecrement @105 +IgniteAtomicLongGetAndSet @106 +IgniteAtomicLongCompareAndSetAndGet @107 +IgniteAtomicLongIsClosed @108 +IgniteAtomicLongClose @109 +IgniteListenableCancel @110 +IgniteListenableIsCancelled @111 +IgniteTargetListenFutureAndGet @112 +IgniteTargetListenFutureForOperationAndGet @113 +IgniteProcessorCreateCacheFromConfig @114 +IgniteProcessorGetOrCreateCacheFromConfig @115 +IgniteProcessorGetIgniteConfiguration @116 +IgniteProcessorDestroyCache @117 +IgniteProcessorAtomicSequence @118 +IgniteAtomicSequenceGet @119 +IgniteAtomicSequenceIncrementAndGet @120 +IgniteAtomicSequenceGetAndIncrement @121 +IgniteAtomicSequenceAddAndGet @122 +IgniteAtomicSequenceGetAndAdd @123 +IgniteAtomicSequenceGetBatchSize @124 +IgniteAtomicSequenceSetBatchSize @125 +IgniteAtomicSequenceIsClosed @126 +IgniteAtomicSequenceClose @127 +IgniteProcessorAtomicReference @128 +IgniteAtomicReferenceIsClosed @129 +IgniteAtomicReferenceClose @130 http://git-wip-us.apache.org/repos/asf/ignite/blob/1cca0be5/modules/platforms/cpp/jni/project/vs/targetver.h ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/jni/project/vs/targetver.h b/modules/platforms/cpp/jni/project/vs/targetver.h new file mode 100644 index 0000000..4bea158 --- /dev/null +++ b/modules/platforms/cpp/jni/project/vs/targetver.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/1cca0be5/modules/platforms/cpp/jni/src/exports.cpp ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/jni/src/exports.cpp b/modules/platforms/cpp/jni/src/exports.cpp new file mode 100644 index 0000000..461d146 --- /dev/null +++ b/modules/platforms/cpp/jni/src/exports.cpp @@ -0,0 +1,545 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "ignite/jni/exports.h" +#include "ignite/jni/java.h" + +namespace gcj = ignite::jni::java; + +/* --- Target methods. --- */ +extern "C" { + int IGNITE_CALL IgniteReallocate(long long memPtr, int cap) { + return gcj::JniContext::Reallocate(memPtr, cap); + } + + void* IGNITE_CALL IgniteIgnitionStart(gcj::JniContext* ctx, char* cfgPath, char* name, int factoryId, long long dataPtr) { + return ctx->IgnitionStart(cfgPath, name, factoryId, dataPtr); + } + + void* IGNITE_CALL IgniteIgnitionInstance(gcj::JniContext* ctx, char* name) { + return ctx->IgnitionInstance(name); + } + + long long IGNITE_CALL IgniteIgnitionEnvironmentPointer(gcj::JniContext* ctx, char* name) { + return ctx->IgnitionEnvironmentPointer(name); + } + + bool IGNITE_CALL IgniteIgnitionStop(gcj::JniContext* ctx, char* name, bool cancel) { + return ctx->IgnitionStop(name, cancel); + } + + void IGNITE_CALL IgniteIgnitionStopAll(gcj::JniContext* ctx, bool cancel) { + return ctx->IgnitionStopAll(cancel); + } + + void IGNITE_CALL IgniteProcessorReleaseStart(gcj::JniContext* ctx, void* obj) { + return ctx->ProcessorReleaseStart(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProcessorProjection(gcj::JniContext* ctx, void* obj) { + return ctx->ProcessorProjection(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProcessorCache(gcj::JniContext* ctx, void* obj, char* name) { + return ctx->ProcessorCache(static_cast(obj), name); + } + + void* IGNITE_CALL IgniteProcessorCreateCache(gcj::JniContext* ctx, void* obj, char* name) { + return ctx->ProcessorCreateCache(static_cast(obj), name); + } + + void* IGNITE_CALL IgniteProcessorGetOrCreateCache(gcj::JniContext* ctx, void* obj, char* name) { + return ctx->ProcessorGetOrCreateCache(static_cast(obj), name); + } + + void* IGNITE_CALL IgniteProcessorCreateCacheFromConfig(gcj::JniContext* ctx, void* obj, long long memPtr) { + return ctx->ProcessorCreateCacheFromConfig(static_cast(obj), memPtr); + } + + void* IGNITE_CALL IgniteProcessorGetOrCreateCacheFromConfig(gcj::JniContext* ctx, void* obj, long long memPtr) { + return ctx->ProcessorGetOrCreateCacheFromConfig(static_cast(obj), memPtr); + } + + void IGNITE_CALL IgniteProcessorDestroyCache(gcj::JniContext* ctx, void* obj, char* name) { + ctx->ProcessorDestroyCache(static_cast(obj), name); + } + + void* IGNITE_CALL IgniteProcessorAffinity(gcj::JniContext* ctx, void* obj, char* name) { + return ctx->ProcessorAffinity(static_cast(obj), name); + } + + void*IGNITE_CALL IgniteProcessorDataStreamer(gcj::JniContext* ctx, void* obj, char* name, bool keepPortable) { + return ctx->ProcessorDataStreamer(static_cast(obj), name, keepPortable); + } + + void* IGNITE_CALL IgniteProcessorTransactions(gcj::JniContext* ctx, void* obj) { + return ctx->ProcessorTransactions(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProcessorCompute(gcj::JniContext* ctx, void* obj, void* prj) { + return ctx->ProcessorCompute(static_cast(obj), static_cast(prj)); + } + + void* IGNITE_CALL IgniteProcessorMessage(gcj::JniContext* ctx, void* obj, void* prj) { + return ctx->ProcessorMessage(static_cast(obj), static_cast(prj)); + } + + void* IGNITE_CALL IgniteProcessorEvents(gcj::JniContext* ctx, void* obj, void* prj) { + return ctx->ProcessorEvents(static_cast(obj), static_cast(prj)); + } + + void* IGNITE_CALL IgniteProcessorServices(gcj::JniContext* ctx, void* obj, void* prj) { + return ctx->ProcessorServices(static_cast(obj), static_cast(prj)); + } + + void* IGNITE_CALL IgniteProcessorExtensions(gcj::JniContext* ctx, void* obj) { + return ctx->ProcessorExtensions(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProcessorAtomicLong(gcj::JniContext* ctx, void* obj, char* name, long long initVal, bool create) { + return ctx->ProcessorAtomicLong(static_cast(obj), name, initVal, create); + } + + void* IGNITE_CALL IgniteProcessorAtomicSequence(gcj::JniContext* ctx, void* obj, char* name, long long initVal, bool create) { + return ctx->ProcessorAtomicSequence(static_cast(obj), name, initVal, create); + } + + void* IGNITE_CALL IgniteProcessorAtomicReference(gcj::JniContext* ctx, void* obj, char* name, long long memPtr, bool create) { + return ctx->ProcessorAtomicReference(static_cast(obj), name, memPtr, create); + } + + void IGNITE_CALL IgniteProcessorGetIgniteConfiguration(gcj::JniContext* ctx, void* obj, long long memPtr) { + return ctx->ProcessorGetIgniteConfiguration(static_cast(obj), memPtr); + } + + long long IGNITE_CALL IgniteTargetInStreamOutLong(gcj::JniContext* ctx, void* obj, int opType, long long memPtr) { + return ctx->TargetInStreamOutLong(static_cast(obj), opType, memPtr); + } + + void IGNITE_CALL IgniteTargetInStreamOutStream(gcj::JniContext* ctx, void* obj, int opType, long long inMemPtr, long long outMemPtr) { + ctx->TargetInStreamOutStream(static_cast(obj), opType, inMemPtr, outMemPtr); + } + + void* IGNITE_CALL IgniteTargetInStreamOutObject(gcj::JniContext* ctx, void* obj, int opType, long long memPtr) { + return ctx->TargetInStreamOutObject(static_cast(obj), opType, memPtr); + } + + void IGNITE_CALL IgniteTargetInObjectStreamOutStream(gcj::JniContext* ctx, void* obj, int opType, void* arg, long long inMemPtr, long long outMemPtr) { + ctx->TargetInObjectStreamOutStream(static_cast(obj), opType, arg, inMemPtr, outMemPtr); + } + + long long IGNITE_CALL IgniteTargetOutLong(gcj::JniContext* ctx, void* obj, int opType) { + return ctx->TargetOutLong(static_cast(obj), opType); + } + + void IGNITE_CALL IgniteTargetOutStream(gcj::JniContext* ctx, void* obj, int opType, long long memPtr) { + ctx->TargetOutStream(static_cast(obj), opType, memPtr); + } + + void* IGNITE_CALL IgniteTargetOutObject(gcj::JniContext* ctx, void* obj, int opType) { + return ctx->TargetOutObject(static_cast(obj), opType); + } + + void IGNITE_CALL IgniteTargetListenFuture(gcj::JniContext* ctx, void* obj, long long futId, int typ) { + ctx->TargetListenFuture(static_cast(obj), futId, typ); + } + + void IGNITE_CALL IgniteTargetListenFutureForOperation(gcj::JniContext* ctx, void* obj, long long futId, int typ, int opId) { + ctx->TargetListenFutureForOperation(static_cast(obj), futId, typ, opId); + } + + void* IGNITE_CALL IgniteTargetListenFutureAndGet(gcj::JniContext* ctx, void* obj, long long futId, int typ) { + return ctx->TargetListenFutureAndGet(static_cast(obj), futId, typ); + } + + void* IGNITE_CALL IgniteTargetListenFutureForOperationAndGet(gcj::JniContext* ctx, void* obj, long long futId, int typ, int opId) { + return ctx->TargetListenFutureForOperationAndGet(static_cast(obj), futId, typ, opId); + } + + int IGNITE_CALL IgniteAffinityPartitions(gcj::JniContext* ctx, void* obj) { + return ctx->AffinityPartitions(static_cast(obj)); + } + + void* IGNITE_CALL IgniteCacheWithSkipStore(gcj::JniContext* ctx, void* obj) { + return ctx->CacheWithSkipStore(static_cast(obj)); + } + + void* IGNITE_CALL IgniteCacheWithNoRetries(gcj::JniContext* ctx, void* obj) { + return ctx->CacheWithNoRetries(static_cast(obj)); + } + + void* IGNITE_CALL IgniteCacheWithExpiryPolicy(gcj::JniContext* ctx, void* obj, long long create, long long update, long long access) { + return ctx->CacheWithExpiryPolicy(static_cast(obj), create, update, access); + } + + void* IGNITE_CALL IgniteCacheWithAsync(gcj::JniContext* ctx, void* obj) { + return ctx->CacheWithAsync(static_cast(obj)); + } + + void* IGNITE_CALL IgniteCacheWithKeepPortable(gcj::JniContext* ctx, void* obj) + { + return ctx->CacheWithKeepPortable(static_cast(obj)); + } + + void IGNITE_CALL IgniteCacheClear(gcj::JniContext* ctx, void* obj) { + ctx->CacheClear(static_cast(obj)); + } + + void IGNITE_CALL IgniteCacheRemoveAll(gcj::JniContext* ctx, void* obj) { + ctx->CacheRemoveAll(static_cast(obj)); + } + + void* IGNITE_CALL IgniteCacheOutOpQueryCursor(gcj::JniContext* ctx, void* obj, int type, long long memPtr) { + return ctx->CacheOutOpQueryCursor(static_cast(obj), type, memPtr); + } + + void* IGNITE_CALL IgniteCacheOutOpContinuousQuery(gcj::JniContext* ctx, void* obj, int type, long long memPtr) { + return ctx->CacheOutOpContinuousQuery(static_cast(obj), type, memPtr); + } + + void* IGNITE_CALL IgniteCacheIterator(gcj::JniContext* ctx, void* obj) { + return ctx->CacheIterator(static_cast(obj)); + } + + void* IGNITE_CALL IgniteCacheLocalIterator(gcj::JniContext* ctx, void* obj, int peekModes) { + return ctx->CacheLocalIterator(static_cast(obj), peekModes); + } + + void IGNITE_CALL IgniteCacheEnterLock(gcj::JniContext* ctx, void* obj, long long id) { + ctx->CacheEnterLock(static_cast(obj), id); + } + + void IGNITE_CALL IgniteCacheExitLock(gcj::JniContext* ctx, void* obj, long long id) { + ctx->CacheExitLock(static_cast(obj), id); + } + + bool IGNITE_CALL IgniteCacheTryEnterLock(gcj::JniContext* ctx, void* obj, long long id, long long timeout) { + return ctx->CacheTryEnterLock(static_cast(obj), id, timeout); + } + + void IGNITE_CALL IgniteCacheCloseLock(gcj::JniContext* ctx, void* obj, long long id) { + ctx->CacheCloseLock(static_cast(obj), id); + } + + void IGNITE_CALL IgniteCacheRebalance(gcj::JniContext* ctx, void* obj, long long futId) { + ctx->CacheRebalance(static_cast(obj), futId); + } + + int IGNITE_CALL IgniteCacheSize(gcj::JniContext* ctx, void* obj, int peekModes, bool loc) { + return ctx->CacheSize(static_cast(obj), peekModes, loc); + } + + void IGNITE_CALL IgniteComputeWithNoFailover(gcj::JniContext* ctx, void* obj) { + ctx->ComputeWithNoFailover(static_cast(obj)); + } + + void IGNITE_CALL IgniteComputeWithTimeout(gcj::JniContext* ctx, void* obj, long long timeout) { + ctx->ComputeWithTimeout(static_cast(obj), timeout); + } + + void* IGNITE_CALL IgniteComputeExecuteNative(gcj::JniContext* ctx, void* obj, long long taskPtr, long long topVer) { + return ctx->ComputeExecuteNative(static_cast(obj), taskPtr, topVer); + } + + void IGNITE_CALL IgniteContinuousQueryClose(gcj::JniContext* ctx, void* obj) { + ctx->ContinuousQueryClose(static_cast(obj)); + } + + void* IGNITE_CALL IgniteContinuousQueryGetInitialQueryCursor(gcj::JniContext* ctx, void* obj) { + return ctx->ContinuousQueryGetInitialQueryCursor(static_cast(obj)); + } + + void IGNITE_CALL IgniteCacheStoreCallbackInvoke(gcj::JniContext* ctx, void* obj, long long memPtr) { + ctx->CacheStoreCallbackInvoke(static_cast(obj), memPtr); + } + + void IGNITE_CALL IgniteDataStreamerListenTopology(gcj::JniContext* ctx, void* obj, long long ptr) { + ctx->DataStreamerListenTopology(static_cast(obj), ptr); + } + + bool IGNITE_CALL IgniteDataStreamerAllowOverwriteGet(gcj::JniContext* ctx, void* obj) { + return ctx->DataStreamerAllowOverwriteGet(static_cast(obj)); + } + + void IGNITE_CALL IgniteDataStreamerAllowOverwriteSet(gcj::JniContext* ctx, void* obj, bool val) { + ctx->DataStreamerAllowOverwriteSet(static_cast(obj), val); + } + + bool IGNITE_CALL IgniteDataStreamerSkipStoreGet(gcj::JniContext* ctx, void* obj) { + return ctx->DataStreamerSkipStoreGet(static_cast(obj)); + } + + void IGNITE_CALL IgniteDataStreamerSkipStoreSet(gcj::JniContext* ctx, void* obj, bool val) { + ctx->DataStreamerSkipStoreSet(static_cast(obj), val); + } + + int IGNITE_CALL IgniteDataStreamerPerNodeBufferSizeGet(gcj::JniContext* ctx, void* obj) { + return ctx->DataStreamerPerNodeBufferSizeGet(static_cast(obj)); + } + + void IGNITE_CALL IgniteDataStreamerPerNodeBufferSizeSet(gcj::JniContext* ctx, void* obj, int val) { + ctx->DataStreamerPerNodeBufferSizeSet(static_cast(obj), val); + } + + int IGNITE_CALL IgniteDataStreamerPerNodeParallelOperationsGet(gcj::JniContext* ctx, void* obj) { + return ctx->DataStreamerPerNodeParallelOperationsGet(static_cast(obj)); + } + + void IGNITE_CALL IgniteDataStreamerPerNodeParallelOperationsSet(gcj::JniContext* ctx, void* obj, int val) { + ctx->DataStreamerPerNodeParallelOperationsSet(static_cast(obj), val); + } + + void* IGNITE_CALL IgniteMessagingWithAsync(gcj::JniContext* ctx, void* obj) { + return ctx->MessagingWithAsync(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProjectionForOthers(gcj::JniContext* ctx, void* obj, void* prj) { + return ctx->ProjectionForOthers(static_cast(obj), static_cast(prj)); + } + + void* IGNITE_CALL IgniteProjectionForRemotes(gcj::JniContext* ctx, void* obj) { + return ctx->ProjectionForRemotes(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProjectionForDaemons(gcj::JniContext* ctx, void* obj) { + return ctx->ProjectionForDaemons(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProjectionForRandom(gcj::JniContext* ctx, void* obj) { + return ctx->ProjectionForRandom(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProjectionForOldest(gcj::JniContext* ctx, void* obj) { + return ctx->ProjectionForOldest(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProjectionForYoungest(gcj::JniContext* ctx, void* obj) { + return ctx->ProjectionForYoungest(static_cast(obj)); + } + + void IGNITE_CALL IgniteProjectionResetMetrics(gcj::JniContext* ctx, void* obj) { + ctx->ProjectionResetMetrics(static_cast(obj)); + } + + void* IGNITE_CALL IgniteProjectionOutOpRet(gcj::JniContext* ctx, void* obj, int type, long long memPtr) { + return ctx->ProjectionOutOpRet(static_cast(obj), type, memPtr); + } + + void IGNITE_CALL IgniteQueryCursorIterator(gcj::JniContext* ctx, void* obj) { + ctx->QueryCursorIterator(static_cast(obj)); + } + + void IGNITE_CALL IgniteQueryCursorClose(gcj::JniContext* ctx, void* obj) { + ctx->QueryCursorClose(static_cast(obj)); + } + + long long IGNITE_CALL IgniteTransactionsStart(gcj::JniContext* ctx, void* obj, int concurrency, int isolation, long long timeout, int txSize) { + return ctx->TransactionsStart(static_cast(obj), concurrency, isolation, timeout, txSize); + } + + int IGNITE_CALL IgniteTransactionsCommit(gcj::JniContext* ctx, void* obj, long long id) { + return ctx->TransactionsCommit(static_cast(obj), id); + } + + void IGNITE_CALL IgniteTransactionsCommitAsync(gcj::JniContext* ctx, void* obj, long long id, long long futId) { + return ctx->TransactionsCommitAsync(static_cast(obj), id, futId); + } + + int IGNITE_CALL IgniteTransactionsRollback(gcj::JniContext* ctx, void* obj, long long id) { + return ctx->TransactionsRollback(static_cast(obj), id); + } + + void IGNITE_CALL IgniteTransactionsRollbackAsync(gcj::JniContext* ctx, void* obj, long long id, long long futId) { + return ctx->TransactionsRollbackAsync(static_cast(obj), id, futId); + } + + int IGNITE_CALL IgniteTransactionsClose(gcj::JniContext* ctx, void* obj, long long id) { + return ctx->TransactionsClose(static_cast(obj), id); + } + + int IGNITE_CALL IgniteTransactionsState(gcj::JniContext* ctx, void* obj, long long id) { + return ctx->TransactionsState(static_cast(obj), id); + } + + bool IGNITE_CALL IgniteTransactionsSetRollbackOnly(gcj::JniContext* ctx, void* obj, long long id) { + return ctx->TransactionsSetRollbackOnly(static_cast(obj), id); + } + + void IGNITE_CALL IgniteTransactionsResetMetrics(gcj::JniContext* ctx, void* obj) { + ctx->TransactionsResetMetrics(static_cast(obj)); + } + + void* IGNITE_CALL IgniteAcquire(gcj::JniContext* ctx, void* obj) { + return ctx->Acquire(static_cast(obj)); + } + + void IGNITE_CALL IgniteRelease(void* obj) { + gcj::JniContext::Release(static_cast(obj)); + } + + void IGNITE_CALL IgniteThrowToJava(gcj::JniContext* ctx, char* err) { + ctx->ThrowToJava(err); + } + + int IGNITE_CALL IgniteHandlersSize() { + return sizeof(gcj::JniHandlers); + } + + void* IGNITE_CALL IgniteCreateContext(char** opts, int optsLen, gcj::JniHandlers* cbs) { + return gcj::JniContext::Create(opts, optsLen, *cbs); + } + + void IGNITE_CALL IgniteDeleteContext(gcj::JniContext* ctx) { + delete ctx; + } + + void IGNITE_CALL IgniteDestroyJvm(gcj::JniContext* ctx) { + ctx->DestroyJvm(); + } + + void* IGNITE_CALL IgniteEventsWithAsync(gcj::JniContext* ctx, void* obj) { + return ctx->EventsWithAsync(static_cast(obj)); + } + + bool IGNITE_CALL IgniteEventsStopLocalListen(gcj::JniContext* ctx, void* obj, long long hnd) { + return ctx->EventsStopLocalListen(static_cast(obj), hnd); + } + + void IGNITE_CALL IgniteEventsLocalListen(gcj::JniContext* ctx, void* obj, long long hnd, int type) { + ctx->EventsLocalListen(static_cast(obj), hnd, type); + } + + bool IGNITE_CALL IgniteEventsIsEnabled(gcj::JniContext* ctx, void* obj, int type) { + return ctx->EventsIsEnabled(static_cast(obj), type); + } + + void* IGNITE_CALL IgniteServicesWithAsync(gcj::JniContext* ctx, void* obj) { + return ctx->ServicesWithAsync(static_cast(obj)); + } + + void* IGNITE_CALL IgniteServicesWithServerKeepPortable(gcj::JniContext* ctx, void* obj) { + return ctx->ServicesWithServerKeepPortable(static_cast(obj)); + } + + void IGNITE_CALL IgniteServicesCancel(gcj::JniContext* ctx, void* obj, char* name) { + ctx->ServicesCancel(static_cast(obj), name); + } + + void IGNITE_CALL IgniteServicesCancelAll(gcj::JniContext* ctx, void* obj) { + ctx->ServicesCancelAll(static_cast(obj)); + } + + void* IGNITE_CALL IgniteServicesGetServiceProxy(gcj::JniContext* ctx, void* obj, char* name, bool sticky) { + return ctx->ServicesGetServiceProxy(static_cast(obj), name, sticky); + } + + long long IGNITE_CALL IgniteAtomicLongGet(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongGet(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicLongIncrementAndGet(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongIncrementAndGet(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicLongGetAndIncrement(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongGetAndIncrement(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicLongAddAndGet(gcj::JniContext* ctx, void* obj, long long value) { + return ctx->AtomicLongAddAndGet(static_cast(obj), value); + } + + long long IGNITE_CALL IgniteAtomicLongGetAndAdd(gcj::JniContext* ctx, void* obj, long long value) { + return ctx->AtomicLongGetAndAdd(static_cast(obj), value); + } + + long long IGNITE_CALL IgniteAtomicLongDecrementAndGet(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongDecrementAndGet(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicLongGetAndDecrement(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongGetAndDecrement(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicLongGetAndSet(gcj::JniContext* ctx, void* obj, long long value) { + return ctx->AtomicLongGetAndSet(static_cast(obj), value); + } + + long long IGNITE_CALL IgniteAtomicLongCompareAndSetAndGet(gcj::JniContext* ctx, void* obj, long long expVal, long long newVal) { + return ctx->AtomicLongCompareAndSetAndGet(static_cast(obj), expVal, newVal); + } + + bool IGNITE_CALL IgniteAtomicLongIsClosed(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongIsClosed(static_cast(obj)); + } + + void IGNITE_CALL IgniteAtomicLongClose(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicLongClose(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicSequenceGet(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicSequenceGet(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicSequenceIncrementAndGet(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicSequenceIncrementAndGet(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicSequenceGetAndIncrement(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicSequenceGetAndIncrement(static_cast(obj)); + } + + long long IGNITE_CALL IgniteAtomicSequenceAddAndGet(gcj::JniContext* ctx, void* obj, long long l) { + return ctx->AtomicSequenceAddAndGet(static_cast(obj), l); + } + + long long IGNITE_CALL IgniteAtomicSequenceGetAndAdd(gcj::JniContext* ctx, void* obj, long long l) { + return ctx->AtomicSequenceGetAndAdd(static_cast(obj), l); + } + + int IGNITE_CALL IgniteAtomicSequenceGetBatchSize(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicSequenceGetBatchSize(static_cast(obj)); + } + + void IGNITE_CALL IgniteAtomicSequenceSetBatchSize(gcj::JniContext* ctx, void* obj, int size) { + return ctx->AtomicSequenceSetBatchSize(static_cast(obj), size); + } + + bool IGNITE_CALL IgniteAtomicSequenceIsClosed(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicSequenceIsClosed(static_cast(obj)); + } + + void IGNITE_CALL IgniteAtomicSequenceClose(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicSequenceClose(static_cast(obj)); + } + + bool IGNITE_CALL IgniteAtomicReferenceIsClosed(gcj::JniContext* ctx, void* obj) { + return ctx->AtomicReferenceIsClosed(static_cast(obj)); + } + + void IGNITE_CALL IgniteAtomicReferenceClose(gcj::JniContext* ctx, void* obj) { + ctx->AtomicReferenceClose(static_cast(obj)); + } + + bool IGNITE_CALL IgniteListenableCancel(gcj::JniContext* ctx, void* obj) { + return ctx->ListenableCancel(static_cast(obj)); + } + + bool IGNITE_CALL IgniteListenableIsCancelled(gcj::JniContext* ctx, void* obj) { + return ctx->ListenableIsCancelled(static_cast(obj)); + } +} \ No newline at end of file