Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
aaa3483
IGNITE-28819 Scaffold ignite-thin-client-impl module
nizhikov Jun 25, 2026
8a3c9d2
IGNITE-28819 Move ProtocolVersion to ignite-thin-client-impl
nizhikov Jun 25, 2026
77e510b
IGNITE-28819 Move BinaryNameMapperMode to ignite-thin-client-impl
nizhikov Jun 25, 2026
bae4a37
IGNITE-28819 Move ClientCacheEntry to ignite-thin-client-impl
nizhikov Jun 25, 2026
4302ef4
IGNITE-28819 Move ClientConnection to ignite-thin-client-impl
nizhikov Jun 25, 2026
dd8877d
IGNITE-28819 Move ClientConnectionStateHandler to ignite-thin-client-…
nizhikov Jun 25, 2026
7822aab
IGNITE-28819 Move ClientJCacheAdapter to ignite-thin-client-impl
nizhikov Jun 25, 2026
5baf3d4
IGNITE-28819 Move ClientJCacheEntryListenerAdapter to ignite-thin-cli…
nizhikov Jun 25, 2026
09fc180
IGNITE-28819 Move ClientMessageDecoder to ignite-thin-client-impl
nizhikov Jun 25, 2026
a5ad757
IGNITE-28819 Move ClientMessageHandler to ignite-thin-client-impl
nizhikov Jun 25, 2026
528282d
IGNITE-28819 Move ClientNotificationType to ignite-thin-client-impl
nizhikov Jun 25, 2026
58a2476
IGNITE-28819 Move ClientProtocolError to ignite-thin-client-impl
nizhikov Jun 25, 2026
9c1e1d9
IGNITE-28819 Move ClientRetryPolicyContextImpl to ignite-thin-client-…
nizhikov Jun 25, 2026
55a5be7
IGNITE-28819 Move IgniteClientFutureImpl to ignite-thin-client-impl
nizhikov Jun 25, 2026
a1a6890
IGNITE-28819 Move NotificationListener to ignite-thin-client-impl
nizhikov Jun 25, 2026
e757926
IGNITE-28819 Move ProtocolVersionFeature to ignite-thin-client-impl
nizhikov Jun 25, 2026
988771f
IGNITE-28819 Move QueryPager to ignite-thin-client-impl
nizhikov Jun 25, 2026
5addab3
IGNITE-28819 Move ClientConnectionMultiplexer to ignite-thin-client-impl
nizhikov Jun 25, 2026
7ca591e
IGNITE-28819 Move ClientInternalBinaryConfiguration to ignite-thin-cl…
nizhikov Jun 25, 2026
c42651e
IGNITE-28819 Move ClientOperation to ignite-thin-client-impl
nizhikov Jun 25, 2026
42004c8
IGNITE-28819 Move ClientQueryCursor to ignite-thin-client-impl
nizhikov Jun 25, 2026
83ce436
IGNITE-28819 Move FieldsQueryPager to ignite-thin-client-impl
nizhikov Jun 25, 2026
ad76265
IGNITE-28819 Move ProtocolContext to ignite-thin-client-impl
nizhikov Jun 25, 2026
ca73b2e
IGNITE-28819 Move ClientFieldsQueryCursor to ignite-thin-client-impl
nizhikov Jun 25, 2026
0333a7a
IGNITE-28819 Move ClientServiceDescriptorImpl to ignite-thin-client-impl
nizhikov Jun 25, 2026
218ffc5
IGNITE-28819 Move ClusterNodeFunc to ignite-commons
nizhikov Jun 25, 2026
2853b05
IGNITE-28819 Move ClientClusterNodeImpl to ignite-thin-client-impl
nizhikov Jun 25, 2026
473befd
IGNITE-28819 Move org.apache.ignite.ssl package to ignite-commons
nizhikov Jun 25, 2026
a7b57cc
IGNITE-28819 Move ClientSslUtils to ignite-thin-client-impl
nizhikov Jun 25, 2026
e5ba9db
IGNITE-28819 Move AffinityTopologyVersion to ignite-commons
nizhikov Jun 25, 2026
fddee49
IGNITE-28819 Move ClientChannel and Payload channels to ignite-thin-c…
nizhikov Jun 25, 2026
e2a7d9e
IGNITE-28819 Move ReliableChannelEx to ignite-thin-client-impl
nizhikov Jun 25, 2026
94b5b0c
IGNITE-28819 Move NullLogger to ignite-commons
nizhikov Jun 25, 2026
d3ba465
IGNITE-28819 Move BinaryContext creation helpers to BinaryUtils
nizhikov Jun 25, 2026
3ae7dd5
IGNITE-28819 Move ClientBinaryMarshaller to ignite-thin-client-impl
nizhikov Jun 25, 2026
3beb0d4
IGNITE-28819 Move ClientBinary to ignite-thin-client-impl
nizhikov Jun 26, 2026
59e64aa
IGNITE-28819 Move EventListenerDemultiplexer to ignite-thin-client-impl
nizhikov Jun 26, 2026
92ffdcc
IGNITE-28819 Move PlatformExpiryPolicy to ignite-commons
nizhikov Jun 26, 2026
5a0b430
IGNITE-28819 Move ClientUtils to ignite-thin-client-impl
nizhikov Jun 26, 2026
4a1e184
IGNITE-28819 Move IgniteUtils.cast/unwrap to CommonUtils
nizhikov Jun 26, 2026
dac6a50
IGNITE-28819 Move GridFutureAdapter and related futures to ignite-com…
nizhikov Jun 26, 2026
0b30de5
IGNITE-28819 Move IgniteUtils.closeQuiet/addSuppressed to CommonUtils
nizhikov Jun 26, 2026
87671a6
IGNITE-28819 Move ClientStatus and ClientFlag to ignite-commons
nizhikov Jun 26, 2026
6f04a77
IGNITE-28819 Move ClientConnectionNodeRecoveryException to ignite-com…
nizhikov Jun 26, 2026
c24c4d3
IGNITE-28819 Extract ClientListenerProtocol constants to ignite-commons
nizhikov Jun 26, 2026
dbc7017
IGNITE-28819 Add BinaryUtils.binaryContext(BinaryMarshaller) overload
nizhikov Jun 26, 2026
d58cb27
IGNITE-28819 Move TcpClientChannel and ClientChannelConfiguration to …
nizhikov Jun 26, 2026
ba8653f
IGNITE-28819 Move TcpClientTransactions to ignite-thin-client-impl
nizhikov Jun 29, 2026
79e9b8d
IGNITE-28819 Repoint thin client U usages to CommonUtils
nizhikov Jun 29, 2026
3c4636c
IGNITE-28819 Move ClientClusterGroupImpl to ignite-thin-client-impl
nizhikov Jun 29, 2026
664e2e2
IGNITE-28819 Move ClientClusterImpl to ignite-thin-client-impl
nizhikov Jun 29, 2026
a6873a8
IGNITE-28819 Move ClientComputeImpl to ignite-thin-client-impl
nizhikov Jun 29, 2026
96c82df
IGNITE-28819 Move GenericQueryPager to ignite-thin-client-impl
nizhikov Jun 29, 2026
3cd7562
IGNITE-28819 Move ClientFieldsQueryPager to ignite-thin-client-impl
nizhikov Jun 29, 2026
9a13972
IGNITE-28819 Move ClientQueryPager to ignite-thin-client-impl
nizhikov Jun 29, 2026
8508b74
IGNITE-28819 Extract data structures constants to ignite-commons
nizhikov Jun 29, 2026
516ac36
IGNITE-28819 Move ClientAtomicLongImpl to ignite-thin-client-impl
nizhikov Jun 29, 2026
2a3a473
IGNITE-28819 Move IgniteClientException to ignite-commons
nizhikov Jun 29, 2026
84041f2
IGNITE-28819 Move ClientIgniteSetImpl to ignite-thin-client-impl
nizhikov Jun 29, 2026
5ed0ab7
IGNITE-28819 Move partition/safeAbs helpers to CommonUtils
nizhikov Jun 29, 2026
8b44367
IGNITE-28819 Move ClientCacheAffinityMapping to ignite-thin-client-impl
nizhikov Jun 29, 2026
e51c379
IGNITE-28819 Move ClientCacheAffinityContext to ignite-thin-client-impl
nizhikov Jun 29, 2026
37fb19f
IGNITE-28819 Move HostAndPortRange to ignite-commons
nizhikov Jun 29, 2026
b52e2dd
IGNITE-28819 Move client connector default port constants to CommonUtils
nizhikov Jun 29, 2026
33a65ee
IGNITE-28819 Move ClientDiscoveryContext to ignite-thin-client-impl
nizhikov Jun 29, 2026
d0d24a3
IGNITE-28819 Move IGNITE_DATA_CENTER_ID system property to IgniteComm…
nizhikov Jun 29, 2026
be476b3
IGNITE-28819 Split plugin handling out of MarshallerUtils.processSyst…
nizhikov Jun 29, 2026
f97fdf5
IGNITE-28819 Move marshaller system properties to IgniteCommonsSystem…
nizhikov Jun 29, 2026
ff2ff40
IGNITE-28819 Move ClassSet to ignite-commons
nizhikov Jun 29, 2026
fa750f1
IGNITE-28819 Move MarshallerUtils and marshaller class filters to ign…
nizhikov Jun 29, 2026
fd6d210
IGNITE-28819 Move PlatformServiceMethod to ignite-commons
nizhikov Jun 29, 2026
00b6cd2
IGNITE-28819 Repoint TcpIgniteClient from U to CommonUtils
nizhikov Jun 29, 2026
756c681
IGNITE-28819 Move CacheEntryEventAdapter to ignite-commons
nizhikov Jun 29, 2026
67c4d49
IGNITE-28819 Move IndexQuery stack to ignite-commons
nizhikov Jun 29, 2026
436c554
IGNITE-28819 Move QueryUtils.typeName to CommonUtils
nizhikov Jun 29, 2026
e5188c2
IGNITE-28819 Move SqlQuery to ignite-commons
nizhikov Jun 29, 2026
a1b76d7
IGNITE-28819 Move Message and UnknownMessageException to ignite-commons
nizhikov Jun 29, 2026
0c5aab0
IGNITE-28819 Move Order annotation to ignite-commons
nizhikov Jun 29, 2026
3bb68fb
IGNITE-28819 Move CacheEntryVersion to ignite-commons
nizhikov Jun 29, 2026
75c48dc
IGNITE-28819 Move GridCacheVersion to ignite-commons; extract asIgnit…
nizhikov Jun 29, 2026
26963bc
IGNITE-28819 Move CacheInvokeResult to ignite-commons
nizhikov Jun 29, 2026
20d1b05
IGNITE-28819 Scaffold ignite-nio module
nizhikov Jun 29, 2026
ec55d37
IGNITE-28819 Move FastSizeDeque to ignite-commons
nizhikov Jun 29, 2026
b1d30b9
IGNITE-28819 Move GridWorker, GridWorkerListener, WorkProgressDispatc…
nizhikov Jun 29, 2026
6bba873
IGNITE-28819 Move tracing classes used by GridNioServer to ignite-com…
nizhikov Jun 30, 2026
4005186
IGNITE-28819 Add SpanManager.traceName(Message) to decouple GridNioSe…
nizhikov Jun 30, 2026
aba9976
IGNITE-28819 Move GridWorker/thread util methods to CommonUtils; Grid…
nizhikov Jun 30, 2026
d37b213
IGNITE-28819 Move IGNITE_NO_SELECTOR_OPTS, IGNITE_IO_BALANCE_PERIOD a…
nizhikov Jun 30, 2026
083a509
IGNITE-28819 Move DFLT_IDLE_TIMEOUT to GridNioServer; ConnectorConfig…
nizhikov Jun 30, 2026
bf33799
IGNITE-28819 Move FailureType to ignite-commons
nizhikov Jun 30, 2026
5f33419
IGNITE-28819 Move GridCompoundFuture and NodeStoppingException to ign…
nizhikov Jun 30, 2026
c92fea4
IGNITE-28819 GridNioServer uses LongConsumer/LongSupplier instead of …
nizhikov Jun 30, 2026
d4b4e7c
IGNITE-28819 GridSelectorNioSessionImpl takes LongConsumer metrics in…
nizhikov Jun 30, 2026
cf4954e
IGNITE-28819 Read outbound messages queue size from the metric regist…
nizhikov Jun 30, 2026
45ca158
IGNITE-28819 Hoist per-session queue-size metric consumers into GridN…
nizhikov Jun 30, 2026
ded2874
IGNITE-28819 Eliminate MetricRegistryImpl from GridNioServer
nizhikov Jun 30, 2026
d7037f5
IGNITE-28819 Move communication Message API interfaces to ignite-bina…
nizhikov Jun 30, 2026
62b6f5a
IGNITE-28819 ignite-nio depends on ignite-binary-api
nizhikov Jun 30, 2026
ed52c0a
IGNITE-28819 Decouple GridNioServer from GridIoMessage and ClientMess…
nizhikov Jun 30, 2026
3635025
IGNITE-28819 Move IGNITE_NIO_RECOVERY_DESCRIPTOR_RESERVATION_TIMEOUT …
nizhikov Jun 30, 2026
48e842c
IGNITE-28819 NIO classes use CommonUtils instead of U; move IGNITE_HE…
nizhikov Jun 30, 2026
01f89b4
IGNITE-28819 Move IgniteInClosure2X to ignite-commons
nizhikov Jun 30, 2026
6238557
IGNITE-28819 Move GridWorkerPool and ComputeExecutionRejectedExceptio…
nizhikov Jun 30, 2026
de3e6b1
IGNITE-28819 Move SpanTransport to ignite-commons; GridNioTracerFilte…
nizhikov Jun 30, 2026
1cbefdc
IGNITE-28819 GridSelectorNioSessionImpl resolves trace names via Span…
nizhikov Jun 30, 2026
ce24921
IGNITE-28819 GridNioSslFilter takes functional metrics instead of Met…
nizhikov Jun 30, 2026
81db8c8
IGNITE-28819 Decouple GridDirectParser from DirectMessageReader and T…
nizhikov Jun 30, 2026
ef6995f
IGNITE-28819 Move the internal.util.nio package to the ignite-nio module
nizhikov Jun 30, 2026
43c13b9
IGNITE-28819 Move remaining thin-client implementation classes to ign…
nizhikov Jun 30, 2026
05387cd
IGNITE-28819 Fix github checks after modules edits
nizhikov Jul 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:

- name: Check javadocs.
run : |
./mvnw -DskipTests install -pl modules/tools,modules/codegen -B -V && ./mvnw initialize -Pjavadoc -B -V
./mvnw -DskipTests install -pl modules/tools,modules/commons,modules/codegen -B -V && ./mvnw initialize -Pjavadoc -B -V

check-dotnet:
name: Сheck .NET code
Expand Down
2 changes: 2 additions & 0 deletions assembly/dependencies-apache-ignite-lgpl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
<exclude>${project.groupId}:ignite-binary-api</exclude>
<exclude>${project.groupId}:ignite-binary-impl</exclude>
<exclude>${project.groupId}:ignite-thin-client-api</exclude>
<exclude>${project.groupId}:ignite-thin-client-impl</exclude>
<exclude>${project.groupId}:ignite-nio</exclude>
<exclude>${project.groupId}:ignite-clients</exclude>
<exclude>${project.groupId}:ignite-spring</exclude>
<exclude>${project.groupId}:ignite-tools</exclude>
Expand Down
2 changes: 2 additions & 0 deletions assembly/dependencies-apache-ignite-slim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
<exclude>${project.groupId}:ignite-binary-api</exclude>
<exclude>${project.groupId}:ignite-binary-impl</exclude>
<exclude>${project.groupId}:ignite-thin-client-api</exclude>
<exclude>${project.groupId}:ignite-thin-client-impl</exclude>
<exclude>${project.groupId}:ignite-nio</exclude>
<exclude>${project.groupId}:ignite-clients</exclude>
<exclude>${project.groupId}:ignite-spring</exclude>
<exclude>${project.groupId}:ignite-tools</exclude>
Expand Down
2 changes: 2 additions & 0 deletions assembly/dependencies-apache-ignite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
<exclude>${project.groupId}:ignite-binary-api</exclude>
<exclude>${project.groupId}:ignite-binary-impl</exclude>
<exclude>${project.groupId}:ignite-thin-client-api</exclude>
<exclude>${project.groupId}:ignite-thin-client-impl</exclude>
<exclude>${project.groupId}:ignite-nio</exclude>
<exclude>${project.groupId}:ignite-clients</exclude>
<exclude>${project.groupId}:ignite-spring</exclude>
<exclude>${project.groupId}:ignite-tools</exclude>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
Expand Down Expand Up @@ -62,22 +63,31 @@
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteCommonsSystemProperties;
import org.apache.ignite.IgniteException;
import org.apache.ignite.IgniteLogger;
import org.apache.ignite.binary.BinaryCollectionFactory;
import org.apache.ignite.binary.BinaryIdMapper;
import org.apache.ignite.binary.BinaryInvalidTypeException;
import org.apache.ignite.binary.BinaryMapFactory;
import org.apache.ignite.binary.BinaryNameMapper;
import org.apache.ignite.binary.BinaryObject;
import org.apache.ignite.binary.BinaryObjectException;
import org.apache.ignite.binary.BinarySerializer;
import org.apache.ignite.binary.BinaryType;
import org.apache.ignite.binary.BinaryTypeConfiguration;
import org.apache.ignite.binary.Binarylizable;
import org.apache.ignite.cache.affinity.AffinityKeyMapped;
import org.apache.ignite.configuration.BinaryConfiguration;
import org.apache.ignite.internal.binary.streams.BinaryInputStream;
import org.apache.ignite.internal.binary.streams.BinaryOutputStream;
import org.apache.ignite.internal.processors.cache.version.GridCacheVersion;
import org.apache.ignite.internal.util.CommonUtils;
import org.apache.ignite.internal.util.MutableSingletonList;
import org.apache.ignite.internal.util.typedef.F;
import org.apache.ignite.internal.util.typedef.T2;
import org.apache.ignite.internal.util.typedef.internal.A;
import org.apache.ignite.lang.IgniteBiTuple;
import org.apache.ignite.lang.IgniteUuid;
import org.apache.ignite.logger.NullLogger;
import org.apache.ignite.marshaller.Marshallers;
import org.apache.ignite.platform.PlatformType;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -167,6 +177,10 @@ TreeSet.class, new BinaryTreeSetWriteReplacer()
public static boolean FIELDS_SORTED_ORDER =
IgniteCommonsSystemProperties.getBoolean(IgniteCommonsSystemProperties.IGNITE_BINARY_SORT_OBJECT_FIELDS);

/** For tests. */
@SuppressWarnings("PublicField")
public static boolean useTestBinaryCtx;

/** Field type names. */
private static final String[] FIELD_TYPE_NAMES;

Expand Down Expand Up @@ -3091,4 +3105,193 @@ public EnumType(int typeId, @Nullable String clsName) {
this.clsName = clsName;
}
}

/**
* @param cls Class to get affinity field for.
* @return Affinity field name or {@code null} if field name was not found.
*/
public static String affinityFieldName(Class cls) {
for (; cls != Object.class && cls != null; cls = cls.getSuperclass()) {
for (Field f : cls.getDeclaredFields()) {
if (f.getAnnotation(AffinityKeyMapped.class) != null)
return f.getName();
}
}

return null;
}

/**
* Creates a binary context with default (empty) configuration for the given marshaller.
*
* @param marsh Binary marshaller (may be {@code null}).
* @return Binary context instance.
*/
public static BinaryContext binaryContext(BinaryMarshaller marsh) {
return binaryContext(
cachingMetadataHandler(),
marsh,
null,
null,
new BinaryConfiguration(),
Collections.emptyMap(),
BinaryUtils::affinityFieldName,
NullLogger.INSTANCE
);
}

/**
* Creates a binary context from explicit values.
*
* @param metaHnd Binary metadata handler.
* @param marsh Binary marshaller.
* @param igniteInstanceName Ignite instance name.
* @param classLoader Class loader.
* @param binCfg Binary configuration.
* @param affFlds Affinity fields by type name.
* @param affFldNameProvider Affinity field name provider.
* @param log Logger.
* @return Binary context instance.
*/
public static BinaryContext binaryContext(
BinaryMetadataHandler metaHnd,
BinaryMarshaller marsh,
@Nullable String igniteInstanceName,
@Nullable ClassLoader classLoader,
BinaryConfiguration binCfg,
Map<String, String> affFlds,
Function<Class<?>, String> affFldNameProvider,
IgniteLogger log
) {
return useTestBinaryCtx
? new TestBinaryContext(
metaHnd,
marsh,
igniteInstanceName,
classLoader,
binCfg.getSerializer(),
binCfg.getIdMapper(),
binCfg.getNameMapper(),
binCfg.getTypeConfigurations(),
affFlds,
binCfg.isCompactFooter(),
affFldNameProvider,
log
)
: new BinaryContext(
metaHnd,
marsh,
igniteInstanceName,
classLoader,
binCfg.getSerializer(),
binCfg.getIdMapper(),
binCfg.getNameMapper(),
binCfg.getTypeConfigurations(),
affFlds,
binCfg.isCompactFooter(),
affFldNameProvider,
log
);
}

/** */
@SuppressWarnings("PublicInnerClass")
public static class TestBinaryContext extends BinaryContext {
/** */
private List<TestBinaryContextListener> listeners;

/** */
public TestBinaryContext(
BinaryMetadataHandler metaHnd,
@Nullable BinaryMarshaller marsh,
@Nullable String igniteInstanceName,
@Nullable ClassLoader clsLdr,
@Nullable BinarySerializer dfltSerializer,
@Nullable BinaryIdMapper idMapper,
@Nullable BinaryNameMapper nameMapper,
@Nullable Collection<BinaryTypeConfiguration> typeCfgs,
Map<String, String> affFlds,
boolean compactFooter,
Function<Class<?>, String> affFldNameProvider,
IgniteLogger log
) {
super(
metaHnd,
marsh,
igniteInstanceName,
clsLdr,
dfltSerializer,
idMapper,
nameMapper,
typeCfgs,
affFlds,
compactFooter,
affFldNameProvider,
log
);
}


/** {@inheritDoc} */
@Nullable @Override public BinaryType metadata(int typeId) throws BinaryObjectException {
BinaryType metadata = super.metadata(typeId);

if (listeners != null) {
for (TestBinaryContextListener listener : listeners)
listener.onAfterMetadataRequest(typeId, metadata);
}

return metadata;
}

/** {@inheritDoc} */
@Override public void updateMetadata(int typeId, BinaryMetadata meta, boolean failIfUnregistered) throws BinaryObjectException {
if (listeners != null) {
for (TestBinaryContextListener listener : listeners)
listener.onBeforeMetadataUpdate(typeId, meta);
}

super.updateMetadata(typeId, meta, failIfUnregistered);
}

/** */
public interface TestBinaryContextListener {
/**
* @param typeId Type id.
* @param type Type.
*/
void onAfterMetadataRequest(int typeId, BinaryType type);

/**
* @param typeId Type id.
* @param metadata Metadata.
*/
void onBeforeMetadataUpdate(int typeId, BinaryMetadata metadata);
}

/** @param lsnr Listener. */
public void addListener(TestBinaryContextListener lsnr) {
if (listeners == null)
listeners = new ArrayList<>();

if (!listeners.contains(lsnr))
listeners.add(lsnr);
}

/** */
public void clearAllListener() {
if (listeners != null)
listeners.clear();
}
}

/**
* Represents the given cache version as an {@link IgniteUuid}.
*
* @param ver Cache version.
* @return Version represented as {@code IgniteUuid}.
*/
public static IgniteUuid asIgniteUuid(GridCacheVersion ver) {
return new IgniteUuid(new UUID(ver.topologyVersion(), ver.nodeOrderAndDrIdRaw()), ver.order());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@
import java.io.InputStreamReader;
import java.io.ObjectInputFilter;
import java.net.URL;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Objects;
import java.util.function.Consumer;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteCommonsSystemProperties;
import org.apache.ignite.IgniteException;
import org.apache.ignite.IgniteSystemProperties;
import org.apache.ignite.internal.ClassSet;
import org.apache.ignite.plugin.PluginProvider;
import org.jetbrains.annotations.Nullable;

import static org.apache.ignite.IgniteSystemProperties.IGNITE_ENABLE_OBJECT_INPUT_FILTER_AUTOCONFIGURATION;
import static org.apache.ignite.IgniteSystemProperties.IGNITE_MARSHALLER_BLACKLIST;
import static org.apache.ignite.IgniteCommonsSystemProperties.IGNITE_ENABLE_OBJECT_INPUT_FILTER_AUTOCONFIGURATION;
import static org.apache.ignite.IgniteCommonsSystemProperties.IGNITE_MARSHALLER_BLACKLIST;

/**
* Utility marshaller methods.
Expand Down Expand Up @@ -81,7 +78,7 @@ public static IgniteMarshallerClassFilter classNameFilter(ClassLoader clsLdr) th
* @throws IgniteCheckedException if autoconfiguration failed.
*/
public static void autoconfigureObjectInputFilter(IgniteMarshallerClassFilter clsFilter) throws IgniteCheckedException {
if (!IgniteSystemProperties.getBoolean(IGNITE_ENABLE_OBJECT_INPUT_FILTER_AUTOCONFIGURATION, true))
if (!IgniteCommonsSystemProperties.getBoolean(IGNITE_ENABLE_OBJECT_INPUT_FILTER_AUTOCONFIGURATION, true))
return;

synchronized (MUX) {
Expand Down Expand Up @@ -116,7 +113,7 @@ else if (objFilter instanceof IgniteObjectInputFilter) {
private static ClassSet classWhiteList(ClassLoader clsLdr) throws IgniteCheckedException {
ClassSet clsSet = null;

String fileName = IgniteSystemProperties.getString(IgniteSystemProperties.IGNITE_MARSHALLER_WHITELIST);
String fileName = IgniteCommonsSystemProperties.getString(IgniteCommonsSystemProperties.IGNITE_MARSHALLER_WHITELIST);

if (fileName != null) {
clsSet = new ClassSet();
Expand All @@ -139,7 +136,7 @@ private static ClassSet classBlackList(ClassLoader clsLdr) throws IgniteCheckedE

addClassNames(DEFAULT_BLACKLIST_CLS_NAMES_FILE, clsSet, clsLdr);

String blackListFileName = IgniteSystemProperties.getString(IGNITE_MARSHALLER_BLACKLIST);
String blackListFileName = IgniteCommonsSystemProperties.getString(IGNITE_MARSHALLER_BLACKLIST);

if (blackListFileName != null)
addClassNames(blackListFileName, clsSet, clsLdr);
Expand Down Expand Up @@ -197,11 +194,9 @@ private static void addClassNames(
* Find all system class names (for JDK or Ignite classes) and process them with a given consumer.
*
* @param ldr Class loader.
* @param plugins Plugins.
* @param proc Class processor (class name consumer).
*/
public static void processSystemClasses(ClassLoader ldr, @Nullable Collection<PluginProvider> plugins,
Consumer<String> proc) throws IOException {
public static void processSystemClasses(ClassLoader ldr, Consumer<String> proc) throws IOException {
Enumeration<URL> urls = ldr.getResources(CLS_NAMES_FILE);

boolean foundClsNames = false;
Expand All @@ -223,16 +218,6 @@ public static void processSystemClasses(ClassLoader ldr, @Nullable Collection<Pl
"[file=" + JDK_CLS_NAMES_FILE + ", ldr=" + ldr + ']');

processResource(jdkClsNames, proc);

if (plugins != null && !plugins.isEmpty()) {
for (PluginProvider plugin : plugins) {
Enumeration<URL> pluginUrls = ldr.getResources("META-INF/" + plugin.name().toLowerCase()
+ ".classnames.properties");

while (pluginUrls.hasMoreElements())
processResource(pluginUrls.nextElement(), proc);
}
}
}

/**
Expand All @@ -242,7 +227,7 @@ public static void processSystemClasses(ClassLoader ldr, @Nullable Collection<Pl
* @param proc Class processor (class name consumer).
* @throws IOException In case of error.
*/
private static void processResource(URL url, Consumer<String> proc) throws IOException {
public static void processResource(URL url, Consumer<String> proc) throws IOException {
try (BufferedReader rdr = new BufferedReader(new InputStreamReader(url.openStream()))) {
String line;

Expand Down
10 changes: 10 additions & 0 deletions modules/bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@
<artifactId>ignite-thin-client-api</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ignite-thin-client-impl</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ignite-nio</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ignite-codegen</artifactId>
Expand Down
Loading
Loading