Skip to content

Commit c8a38a3

Browse files
author
vozerov
committed
Added interop data loader.
1 parent 3f25425 commit c8a38a3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/core/src/main/java/org/gridgain/grid/kernal/processors/interop/GridInteropProcessor.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ public interface GridInteropProcessor extends GridProcessor {
5656
*/
5757
public GridInteropTarget cache(@Nullable String name) throws IgniteCheckedException;
5858

59+
/**
60+
* Gets native wrapper for data loader for cache with the given name.
61+
*
62+
* @param cacheName Cache name ({@code null} for default cache).
63+
* @return Native data loader wrapper.
64+
* @throws IgniteCheckedException If failed.
65+
*/
66+
public GridInteropTarget dataLoader(@Nullable String cacheName) throws IgniteCheckedException;
67+
5968
/**
6069
* Stops grid.
6170
*

modules/core/src/main/java/org/gridgain/grid/kernal/processors/interop/os/GridOsInteropProcessor.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,9 @@ public GridOsInteropProcessor(GridKernalContext ctx) {
6565
@Override public GridInteropTarget cache(@Nullable String name) throws IgniteCheckedException {
6666
throw new UnsupportedOperationException(ERR_MSG);
6767
}
68+
69+
/** {@inheritDoc} */
70+
@Override public GridInteropTarget dataLoader(@Nullable String cacheName) throws IgniteCheckedException {
71+
throw new UnsupportedOperationException(ERR_MSG);
72+
}
6873
}

0 commit comments

Comments
 (0)