Search in sources :

Example 1 with ReadOnlySegmentAwareMap

use of org.infinispan.distribution.util.ReadOnlySegmentAwareMap in project infinispan by infinispan.

the class PutMapHelper method copyForBackup.

@Override
public PutMapCommand copyForBackup(PutMapCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
    PutMapCommand copy = new PutMapCommand(cmd).withMap(new ReadOnlySegmentAwareMap(cmd.getMap(), topology, segments));
    copy.setForwarded(true);
    return copy;
}
Also used : PutMapCommand(org.infinispan.commands.write.PutMapCommand) ReadOnlySegmentAwareMap(org.infinispan.distribution.util.ReadOnlySegmentAwareMap)

Example 2 with ReadOnlySegmentAwareMap

use of org.infinispan.distribution.util.ReadOnlySegmentAwareMap in project infinispan by infinispan.

the class ReadWriteManyEntriesHelper method copyForBackup.

@Override
public ReadWriteManyEntriesCommand copyForBackup(ReadWriteManyEntriesCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
    ReadWriteManyEntriesCommand copy = new ReadWriteManyEntriesCommand(cmd).withArguments(new ReadOnlySegmentAwareMap(cmd.getArguments(), topology, segments));
    copy.setForwarded(true);
    return copy;
}
Also used : ReadWriteManyEntriesCommand(org.infinispan.commands.functional.ReadWriteManyEntriesCommand) ReadOnlySegmentAwareMap(org.infinispan.distribution.util.ReadOnlySegmentAwareMap)

Example 3 with ReadOnlySegmentAwareMap

use of org.infinispan.distribution.util.ReadOnlySegmentAwareMap in project infinispan by infinispan.

the class WriteOnlyManyEntriesHelper method copyForBackup.

@Override
public WriteOnlyManyEntriesCommand copyForBackup(WriteOnlyManyEntriesCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
    WriteOnlyManyEntriesCommand copy = new WriteOnlyManyEntriesCommand(cmd).withArguments(new ReadOnlySegmentAwareMap(cmd.getArguments(), topology, segments));
    copy.setForwarded(true);
    return copy;
}
Also used : WriteOnlyManyEntriesCommand(org.infinispan.commands.functional.WriteOnlyManyEntriesCommand) ReadOnlySegmentAwareMap(org.infinispan.distribution.util.ReadOnlySegmentAwareMap)

Aggregations

ReadOnlySegmentAwareMap (org.infinispan.distribution.util.ReadOnlySegmentAwareMap)3 ReadWriteManyEntriesCommand (org.infinispan.commands.functional.ReadWriteManyEntriesCommand)1 WriteOnlyManyEntriesCommand (org.infinispan.commands.functional.WriteOnlyManyEntriesCommand)1 PutMapCommand (org.infinispan.commands.write.PutMapCommand)1