Search in sources :

Example 1 with DistributedTombstoneOperation

use of org.apache.geode.internal.cache.DistributedTombstoneOperation in project geode by apache.

the class CqQueryDUnitTest method performGC.

private void performGC(VM server, final String regionName) {
    SerializableRunnable task = new CacheSerializableRunnable("perform GC") {

        public void run2() throws CacheException {
            Region subregion = getCache().getRegion("root/" + regionName);
            DistributedTombstoneOperation gc = DistributedTombstoneOperation.gc((DistributedRegion) subregion, new EventID(getCache().getDistributedSystem()));
            gc.distribute();
        }
    };
    server.invoke(task);
}
Also used : CacheSerializableRunnable(org.apache.geode.cache30.CacheSerializableRunnable) DistributedTombstoneOperation(org.apache.geode.internal.cache.DistributedTombstoneOperation) SerializableRunnable(org.apache.geode.test.dunit.SerializableRunnable) CacheSerializableRunnable(org.apache.geode.cache30.CacheSerializableRunnable) DistributedRegion(org.apache.geode.internal.cache.DistributedRegion) Region(org.apache.geode.cache.Region) EventID(org.apache.geode.internal.cache.EventID)

Aggregations

Region (org.apache.geode.cache.Region)1 CacheSerializableRunnable (org.apache.geode.cache30.CacheSerializableRunnable)1 DistributedRegion (org.apache.geode.internal.cache.DistributedRegion)1 DistributedTombstoneOperation (org.apache.geode.internal.cache.DistributedTombstoneOperation)1 EventID (org.apache.geode.internal.cache.EventID)1 SerializableRunnable (org.apache.geode.test.dunit.SerializableRunnable)1