Package org.infinispan.stats.container

Examples of org.infinispan.stats.container.ExtendedStatistic


      final ConcurrentGlobalContainer globalContainer = new ConcurrentGlobalContainer(TIME_SERVICE);
      final List<StatisticsSnapshot> snapshots = new ArrayList<StatisticsSnapshot>(4);
      snapshots.add(globalContainer.getSnapshot());

      //two random stats, one local and one remote
      final ExtendedStatistic localStat = ExtendedStatistic.PREPARE_COMMAND_SIZE;
      final ExtendedStatistic remoteStat = ExtendedStatistic.NUM_COMMITTED_WR_TX;

      Assert.assertTrue(localStat.isLocal());
      Assert.assertTrue(remoteStat.isRemote());

      globalContainer.add(localStat, 10, true);

      snapshots.add(globalContainer.getSnapshot());
View Full Code Here


      final ConcurrentGlobalContainer globalContainer = new ConcurrentGlobalContainer(TIME_SERVICE);
      final List<StatisticsSnapshot> snapshots = new ArrayList<StatisticsSnapshot>(4);
      snapshots.add(globalContainer.getSnapshot());

      //two random stats, one local and one remote
      final ExtendedStatistic localStat = ExtendedStatistic.PREPARE_COMMAND_SIZE;
      final ExtendedStatistic remoteStat = ExtendedStatistic.NUM_COMMITTED_WR_TX;

      Assert.assertTrue(localStat.isLocal());
      Assert.assertTrue(remoteStat.isRemote());

      globalContainer.add(localStat, 10, true);
      globalContainer.add(remoteStat, 20, false);

      snapshots.add(globalContainer.getSnapshot());
View Full Code Here

      final ConcurrentGlobalContainer globalContainer = new ConcurrentGlobalContainer(TIME_SERVICE);
      final List<StatisticsSnapshot> snapshots = new ArrayList<StatisticsSnapshot>(4);
      snapshots.add(globalContainer.getSnapshot());

      //two random stats, one local and one remote
      final ExtendedStatistic localStat = ExtendedStatistic.PREPARE_COMMAND_SIZE;
      final ExtendedStatistic remoteStat = ExtendedStatistic.NUM_COMMITTED_WR_TX;

      Assert.assertTrue(localStat.isLocal());
      Assert.assertTrue(remoteStat.isRemote());

      globalContainer.flushing().set(true);

      globalContainer.add(localStat, 10, true);
      globalContainer.add(remoteStat, 20, false);
View Full Code Here

            cacheStatisticManager.increment(NUM_WRITE_SKEW, globalTransaction, ctx.isOriginLocal());
         }
         throw e;
      } catch (RemoteException remote) {
         if (ctx.isOriginLocal()) {
            ExtendedStatistic stat = null;
            Throwable cause = remote.getCause();
            while (cause != null) {
               if (cause instanceof TimeoutException) {
                  stat = NUM_LOCK_FAILED_TIMEOUT;
                  break;
View Full Code Here

               cacheStatisticManager.increment(NUM_WRITE_SKEW, getGlobalTransaction(ctx), ctx.isOriginLocal());
            }
            throw e;
         } catch (RemoteException remote) {
            if (ctx.isOriginLocal()) {
               ExtendedStatistic stat = null;
               Throwable cause = remote.getCause();
               while (cause != null) {
                  if (cause instanceof TimeoutException) {
                     stat = NUM_LOCK_FAILED_TIMEOUT;
                     break;
View Full Code Here

            cacheStatisticManager.increment(NUM_WRITE_SKEW, globalTransaction, ctx.isOriginLocal());
         }
         throw e;
      } catch (RemoteException remote) {
         if (ctx.isOriginLocal()) {
            ExtendedStatistic stat = null;
            Throwable cause = remote.getCause();
            while (cause != null) {
               if (cause instanceof TimeoutException) {
                  stat = NUM_LOCK_FAILED_TIMEOUT;
                  break;
View Full Code Here

               cacheStatisticManager.increment(NUM_WRITE_SKEW, getGlobalTransaction(ctx), ctx.isOriginLocal());
            }
            throw e;
         } catch (RemoteException remote) {
            if (ctx.isOriginLocal()) {
               ExtendedStatistic stat = null;
               Throwable cause = remote.getCause();
               while (cause != null) {
                  if (cause instanceof TimeoutException) {
                     stat = NUM_LOCK_FAILED_TIMEOUT;
                     break;
View Full Code Here

TOP

Related Classes of org.infinispan.stats.container.ExtendedStatistic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.