Search in sources :

Example 16 with CancelCriterion

use of org.apache.geode.CancelCriterion in project geode by apache.

the class SimpleStatSamplerIntegrationTest method initStatisticsFactory.

private void initStatisticsFactory() {
    CancelCriterion stopper = new CancelCriterion() {

        public String cancelInProgress() {
            return null;
        }

        public RuntimeException generateCancelledException(Throwable e) {
            return null;
        }
    };
    this.statisticsFactory = new LocalStatisticsFactory(stopper);
}
Also used : CancelCriterion(org.apache.geode.CancelCriterion)

Aggregations

CancelCriterion (org.apache.geode.CancelCriterion)16 InternalDistributedMember (org.apache.geode.distributed.internal.membership.InternalDistributedMember)4 Before (org.junit.Before)4 InputStream (java.io.InputStream)3 DistributedMember (org.apache.geode.distributed.DistributedMember)3 Test (org.junit.Test)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 DataInputStream (java.io.DataInputStream)2 DataOutputStream (java.io.DataOutputStream)2 File (java.io.File)2 FileInputStream (java.io.FileInputStream)2 IOException (java.io.IOException)2 Socket (java.net.Socket)2 Iterator (java.util.Iterator)2 SSLSocket (javax.net.ssl.SSLSocket)2 Statistics (org.apache.geode.Statistics)2 RegionAttributes (org.apache.geode.cache.RegionAttributes)2 DM (org.apache.geode.distributed.internal.DM)2 InternalDistributedSystem (org.apache.geode.distributed.internal.InternalDistributedSystem)2 UnitTest (org.apache.geode.test.junit.categories.UnitTest)2