You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

The guide contains a list APIs that were deprecated or removed in Apache Ignite 2.0 and provides alternate APIs which you can use to migrate to from the deprecated or removed ones. 

TcpDiscoveryS3IpFinder
  • TcpDiscoveryS3IpFinder.setAwsCredentials(AWSCredentialsProvider) renamed to TcpDiscoveryS3IpFinder.setAwsCredentialsProvider(AWSCredentialsProvider)

Eviction Policies

  • Existing eviction mechanism based on EvictionPolicy is now supported only in near and onheap caches.
  • To enable eviction in regular cache, choose one of page-based eviction algorithms with MemoryPolicyConfiguration#setPageEvictionMode. More info about page-based eviction can be found in javadocs of MemoryPolicyConfiguration and DataPageEvictionMode.

Cache Memory Modes:

  • All the cache memory modes, previously defined by CacheMemoryMode, are no longer supported. Off-heap mode that is a basis of the new page memory is used by default.
  • CachePeekMode.SWAP is no longer supported as well as SwapSpaceSPI.

Memory Policies

Managing of memory regions where caches store their data is done via MemoryConfiguration and MemoryPolicyConfiguration entities; detailed information is presented in javadocs of these classes. Also MemoryPoliciesExample provides some sample configurations on this topic.

IgniteConfiguration

getGridName/setGridName declared deprecated and getIgniteInstanceName/setIgniteInstanceName should be used instead.

Cache and Memory Metrics

The following methods were removed from CacheMetrics interface as part of migrating to new memory management architecture: getOverflowSize, getOffHeapMaxSize, getSwapGets, getSwapPuts, getSwapRemovals, getSwapHits, getSwapMisses, getSwapEntriesCount, getSwapSize, getSwapHitPercentage, getSwapMissPercentage.

New MemoryMetrics interface was introduced to monitor off-heap memory consumption and usage. More information about its usage is available in javadoc on this class.

Redis Integration

Default Redis cache name was changed from 'null' to 'redis_cache'.

Ignite.NET

  • CompiledQuery class removed, CompiledQuery2 class renamed to CompiledQuery. If you have used CompiledQuery class, there is nothing to change. Existing code should compile. If you have used CompiledQuery2 class, rename usages to CompiledQuery.
  • CacheEvent.LockId has been removed. It was always null previously.
  • BinaryConfiguration properties renamed: DefaultNameMapper -> NameMapper, DefaultIdMapper -> IdMapper, DefaultKeepDeserialized -> KeepDeserialized
  • ILifecycleBean renamed to ILifecycleHandler, IgniteConfiguration.LifecycleBeans -> IgniteConfiguration.LifecycleHandlers

Dynamic Type Registration, Serializable Types

BinaryConfiguration is no longer required: any type can be used in Cache and Compute straight away. All objects are written in Ignite binary format (which means IBinary and SQL APIs always work).

Serializable types (including those which implement ISerializable) are also written using Ignite binary format.

  • No labels