232232import org .apache .ignite .lang .IgniteProductVersion ;
233233import org .apache .ignite .marshaller .Marshaller ;
234234import org .apache .ignite .marshaller .jdk .JdkMarshaller ;
235- import org .apache .ignite .plugin .extensions .communication .MarshallableMessage ;
236235import org .apache .ignite .plugin .extensions .communication .Message ;
237236import org .apache .ignite .plugin .extensions .communication .MessageFactory ;
238237import org .apache .ignite .plugin .extensions .communication .MessageFactoryProvider ;
256255import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryClientPingRequest ;
257256import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryClientPingResponse ;
258257import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryClientReconnectMessage ;
259- import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryCollectionMessage ;
260258import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryConnectionCheckMessage ;
261259import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryCustomEventMessage ;
262260import org .apache .ignite .spi .discovery .tcp .messages .TcpDiscoveryDiscardMessage ;
@@ -317,7 +315,7 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
317315 this .resolvedClsLdr = resolvedClsLdr ;
318316 }
319317
320- /** {@inheritDoc} */
318+ /** The order is important. If wish to remove a message, put 'msgIdx++' on its place. */
321319 @ Override public void registerAll (MessageFactory factory ) {
322320 assert this .factory == null ;
323321
@@ -342,9 +340,6 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
342340 withNoSchema (GridCacheVersion .class );
343341 withNoSchema (GridCacheVersionEx .class );
344342
345- msgIdx = 5500 ;
346- withNoSchema (TcpDiscoveryCollectionMessage .class );
347-
348343 // [5700 - 5900]: Discovery originated messages.
349344 msgIdx = 5700 ;
350345 withNoSchema (TcpDiscoveryHandshakeRequest .class );
@@ -395,7 +390,7 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
395390 // [6300 - 6400]: Services messages. Most of them originally come from Discovery.
396391 msgIdx = 6300 ;
397392 withNoSchema (ServiceDeploymentProcessId .class );
398- withNoSchema (ServiceSingleNodeDeploymentResult .class );
393+ withSchema (ServiceSingleNodeDeploymentResult .class );
399394 withNoSchema (ServiceClusterDeploymentResult .class );
400395 withNoSchema (ServiceDeploymentRequest .class );
401396 withNoSchema (ServiceUndeploymentRequest .class );
@@ -435,73 +430,73 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
435430 withNoSchema (ClientCacheChangeDummyDiscoveryMessage .class );
436431 withNoSchemaResolvedClassLoader (DynamicCacheChangeBatch .class );
437432
438- // [10000 - 10200]: Transaction and lock related messages. Most of the originally comes from Communication.
433+ // [10000 - 10200]: Transaction and lock related messages. Most of them originally comes from Communication.
439434 msgIdx = 10000 ;
440435 withNoSchema (TxInfo .class );
441- withNoSchema (TxEntriesInfo .class );
436+ withSchema (TxEntriesInfo .class );
442437 withNoSchema (TxLock .class );
443- withNoSchema (TxLocksRequest .class );
444- withNoSchema (TxLocksResponse .class );
445- withNoSchema (IgniteTxKey .class );
446- withNoSchema (IgniteTxEntry .class );
447- withNoSchema (TxEntryValueHolder .class );
438+ withSchema (TxLocksRequest .class );
439+ withSchema (TxLocksResponse .class );
440+ withSchema (IgniteTxKey .class );
441+ withSchema (IgniteTxEntry .class );
442+ withSchema (TxEntryValueHolder .class );
448443 withNoSchema (GridCacheTxRecoveryRequest .class );
449444 withNoSchema (GridCacheTxRecoveryResponse .class );
450445 withNoSchema (GridDistributedTxFinishRequest .class );
451446 withNoSchema (GridDistributedTxFinishResponse .class );
452- withNoSchema (GridDistributedTxPrepareRequest .class );
447+ withSchema (GridDistributedTxPrepareRequest .class );
453448 withNoSchema (GridDistributedTxPrepareResponse .class );
454449 withNoSchema (GridDhtTxFinishRequest .class );
455- withNoSchema (GridDhtTxFinishResponse .class );
456- withNoSchema (GridDhtTxPrepareRequest .class );
457- withNoSchema (GridDhtTxPrepareResponse .class );
450+ withSchema (GridDhtTxFinishResponse .class );
451+ withSchema (GridDhtTxPrepareRequest .class );
452+ withSchema (GridDhtTxPrepareResponse .class );
458453 withNoSchema (GridNearTxFinishRequest .class );
459454 withNoSchema (GridNearTxFinishResponse .class );
460455 withNoSchema (GridNearTxPrepareRequest .class );
461- withNoSchema (GridNearTxPrepareResponse .class );
462- withNoSchema (GridDhtLockRequest .class );
463- withNoSchema (GridDhtLockResponse .class );
464- withNoSchema (GridDhtUnlockRequest .class );
456+ withSchema (GridNearTxPrepareResponse .class );
457+ withSchema (GridDhtLockRequest .class );
458+ withSchema (GridDhtLockResponse .class );
459+ withSchema (GridDhtUnlockRequest .class );
465460 withNoSchema (GridNearLockRequest .class );
466461 withNoSchema (GridNearLockResponse .class );
467- withNoSchema (GridNearUnlockRequest .class );
468- withNoSchema (GridDistributedLockRequest .class );
469- withNoSchema (GridDistributedLockResponse .class );
462+ withSchema (GridNearUnlockRequest .class );
463+ withSchema (GridDistributedLockRequest .class );
464+ withSchema (GridDistributedLockResponse .class );
470465 withNoSchema (GridDhtTxOnePhaseCommitAckRequest .class );
471- withNoSchema (TransactionAttributesAwareRequest .class );
466+ withSchema (TransactionAttributesAwareRequest .class );
472467
473468 // [10300 - 10500]: Cache, DHT messages.
474469 msgIdx = 10300 ;
475- withNoSchema (GridDhtForceKeysRequest .class );
476- withNoSchema (GridDhtForceKeysResponse .class );
470+ withSchema (GridDhtForceKeysRequest .class );
471+ withSchema (GridDhtForceKeysResponse .class );
477472 withNoSchema (GridDhtAtomicDeferredUpdateResponse .class );
478- withNoSchema (GridDhtAtomicUpdateRequest .class );
479- withNoSchema (GridDhtAtomicUpdateResponse .class );
480- withNoSchema (GridNearAtomicFullUpdateRequest .class );
481- withNoSchema (GridDhtAtomicSingleUpdateRequest .class );
482- withNoSchema (GridNearAtomicUpdateResponse .class );
483- withNoSchema (GridNearAtomicSingleUpdateRequest .class );
484- withNoSchema (GridNearAtomicSingleUpdateInvokeRequest .class );
485- withNoSchema (GridNearAtomicSingleUpdateFilterRequest .class );
473+ withSchema (GridDhtAtomicUpdateRequest .class );
474+ withSchema (GridDhtAtomicUpdateResponse .class );
475+ withSchema (GridNearAtomicFullUpdateRequest .class );
476+ withSchema (GridDhtAtomicSingleUpdateRequest .class );
477+ withSchema (GridNearAtomicUpdateResponse .class );
478+ withSchema (GridNearAtomicSingleUpdateRequest .class );
479+ withSchema (GridNearAtomicSingleUpdateInvokeRequest .class );
480+ withSchema (GridNearAtomicSingleUpdateFilterRequest .class );
486481 withNoSchema (GridNearAtomicCheckUpdateRequest .class );
487- withNoSchema (NearCacheUpdates .class );
488- withNoSchema (GridNearGetRequest .class );
489- withNoSchema (GridNearGetResponse .class );
490- withNoSchema (GridNearSingleGetRequest .class );
491- withNoSchema (GridNearSingleGetResponse .class );
482+ withSchema (NearCacheUpdates .class );
483+ withSchema (GridNearGetRequest .class );
484+ withSchema (GridNearGetResponse .class );
485+ withSchema (GridNearSingleGetRequest .class );
486+ withSchema (GridNearSingleGetResponse .class );
492487 withNoSchema (GridDhtAtomicNearResponse .class );
493- withNoSchema (GridCacheTtlUpdateRequest .class );
494- withNoSchema (GridCacheReturn .class );
495- withNoSchema (GridCacheEntryInfo .class );
496- withNoSchema (CacheInvokeDirectResult .class );
488+ withSchema (GridCacheTtlUpdateRequest .class );
489+ withSchema (GridCacheReturn .class );
490+ withSchema (GridCacheEntryInfo .class );
491+ withSchema (CacheInvokeDirectResult .class );
497492 withNoSchema (GridCacheRawVersionedEntry .class );
498- withNoSchema (CacheEvictionEntry .class );
499- withNoSchema (CacheEntryPredicateAdapter .class );
493+ withSchema (CacheEvictionEntry .class );
494+ withSchema (CacheEntryPredicateAdapter .class );
500495 withNoSchema (GridContinuousMessage .class );
501496 withNoSchema (ContinuousRoutineStartResultMessage .class );
502- withNoSchema (UpdateErrors .class );
497+ withSchema (UpdateErrors .class );
503498 withNoSchema (LatchAckMessage .class );
504- withNoSchema (AtomicApplicationAttributesAwareRequest .class );
499+ withSchema (AtomicApplicationAttributesAwareRequest .class );
505500 withNoSchema (StartRequestData .class );
506501 withNoSchema (StartRoutineDiscoveryMessage .class );
507502 withNoSchema (StartRoutineAckDiscoveryMessage .class );
@@ -524,7 +519,7 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
524519 withNoSchema (GridDhtPartitionExchangeId .class );
525520 withNoSchema (GridCheckpointRequest .class );
526521 withNoSchema (GridDhtPartitionDemandMessage .class );
527- withNoSchema (GridDhtPartitionSupplyMessage .class );
522+ withSchema (GridDhtPartitionSupplyMessage .class );
528523 withNoSchema (GridDhtPartitionsFullMessage .class );
529524 withNoSchema (GridDhtPartitionsSingleMessage .class );
530525 withNoSchema (GridDhtPartitionsSingleRequest .class );
@@ -541,8 +536,8 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
541536 withNoSchema (SchemaFinishDiscoveryMessage .class );
542537 withNoSchema (QueryField .class );
543538 withNoSchema (GridCacheSqlQuery .class );
544- withNoSchema (GridCacheQueryRequest .class );
545- withNoSchema (GridCacheQueryResponse .class );
539+ withSchema (GridCacheQueryRequest .class );
540+ withSchema (GridCacheQueryResponse .class );
546541 withNoSchema (GridQueryCancelRequest .class );
547542 withNoSchema (GridQueryFailResponse .class );
548543 withNoSchema (GridQueryNextPageRequest .class );
@@ -559,7 +554,7 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
559554 withNoSchema (StatisticsRequest .class );
560555 withNoSchema (StatisticsResponse .class );
561556 withNoSchema (CacheContinuousQueryBatchAck .class );
562- withNoSchema (CacheContinuousQueryEntry .class );
557+ withSchema (CacheContinuousQueryEntry .class );
563558
564559 // [11200 - 11300]: Compute, distributed process messages.
565560 msgIdx = 11200 ;
@@ -580,18 +575,18 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
580575 withNoSchema (NodeIdMessage .class );
581576 withNoSchema (HandshakeMessage .class );
582577 withNoSchema (HandshakeWaitMessage .class );
583- withNoSchema (GridIoMessage .class );
578+ withSchema (GridIoMessage .class );
584579 withNoSchema (IgniteIoTestMessage .class );
585- withNoSchema (GridIoUserMessage .class );
586- withNoSchema (GridIoSecurityAwareMessage .class );
580+ withSchema (GridIoUserMessage .class );
581+ withSchema (GridIoSecurityAwareMessage .class );
587582 withNoSchema (RecoveryLastReceivedMessage .class );
588583 withNoSchema (TcpInverseConnectionResponseMessage .class );
589584 withNoSchema (SessionChannelMessage .class );
590585
591586 // [11700 - 11800]: Datastreamer messages.
592587 msgIdx = 11700 ;
593588 withNoSchema (DataStreamerUpdatesHandlerResult .class );
594- withNoSchema (DataStreamerEntry .class );
589+ withSchema (DataStreamerEntry .class );
595590 withNoSchema (DataStreamerRequest .class );
596591 withNoSchema (DataStreamerResponse .class );
597592
@@ -638,7 +633,7 @@ public CoreMessagesProvider(Marshaller schemaAwareMarhaller, Marshaller schemaLe
638633 withSchema (GridEventStorageMessage .class );
639634 withNoSchema (ChangeGlobalStateMessage .class );
640635 withNoSchema (GridChangeGlobalStateMessageResponse .class );
641- withNoSchema (IgniteDiagnosticRequest .class );
636+ withSchema (IgniteDiagnosticRequest .class );
642637 withNoSchema (IgniteDiagnosticResponse .class );
643638 withNoSchema (WalStateAckMessage .class );
644639
0 commit comments