Class ResolverMappingReplicator

  • All Implemented Interfaces:
    AutoCloseable

    @API(EXPERIMENTAL)
    public class ResolverMappingReplicator
    extends Object
    implements AutoCloseable
    Copies the contents of one LocatableResolver to another. This can be useful for migrating between different underlying LocatableResolver implementations. The copy operation is not transactional so the resulting copy will not be a consistent snapshot of the original. It is the responsibility of the caller to ensure that the copied snapshot is consistent by, for example, preventing any writes to the resolver (see LocatableResolver.enableWriteLock()). After copying, the allocation window on the replica will be set to the largest value seen during the copy operation. This means that all allocations in the replica will be larger than any value present in the original. Note, copying to ScopedDirectoryLayer is not supported.