Examples of incr()


Examples of org.apache.oozie.util.Instrumentation.incr()

                }
            }
        }
        catch(PreconditionException pex){
            LOG.warn(pex.getMessage().toString() + ", Error Code: " + pex.getErrorCode().toString());
            instrumentation.incr(INSTRUMENTATION_GROUP, getName() + ".preconditionfailed", 1);
            return null;
        }
        catch (XException ex) {
            LOG.error("XException, ", ex);
            instrumentation.incr(INSTRUMENTATION_GROUP, getName() + ".xexceptions", 1);
View Full Code Here

Examples of org.apache.oozie.util.Instrumentation.incr()

            instrumentation.incr(INSTRUMENTATION_GROUP, getName() + ".preconditionfailed", 1);
            return null;
        }
        catch (XException ex) {
            LOG.error("XException, ", ex);
            instrumentation.incr(INSTRUMENTATION_GROUP, getName() + ".xexceptions", 1);
            if (ex instanceof CommandException) {
                throw (CommandException) ex;
            }
            else {
                throw new CommandException(ex);
View Full Code Here

Examples of org.apache.oozie.util.Instrumentation.incr()

                throw new CommandException(ex);
            }
        }
        catch (Exception ex) {
            LOG.error("Exception, ", ex);
            instrumentation.incr(INSTRUMENTATION_GROUP, getName() + ".exceptions", 1);
            throw new CommandException(ErrorCode.E0607, getName(), ex.getMessage(), ex);
        }
        catch (Error er) {
            LOG.error("Error, ", er);
            throw er;
View Full Code Here

Examples of org.jredis.JRedis.incr()

   
    for(;;){
      Long counter = null;
      long start = System.nanoTime();
      for(int i=0;i<iters; i++){
        counter = jredis.incr(key);
      }
      long delta_ns = System.nanoTime() - start;
      long delta_ms = TimeUnit.MILLISECONDS.convert(delta_ns, TimeUnit.NANOSECONDS);
      float opsrate = iters/delta_ms;
      System.out.format("counter: %d  msec:%d ops/msecs:%f  [delta:%d]\n", counter, delta_ms, opsrate, delta_ns);
View Full Code Here

Examples of org.jredis.JRedisFuture.incr()

   
    for(;;){
      Future<Long> frCounter = null;
      long start = System.nanoTime();
      for(int i=0;i<iters; i++){
        frCounter = jredis.incr(key);
      }
      long queued = System.nanoTime() - start;
      try {
        jredis.flush();
        long counter = frCounter.get()// NOTE: excellent place to put implicit flush()
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisAsyncClient.incr()

   
    for(;;){
      Future<Long> frCounter = null;
      long start = System.nanoTime();
      for(int i=0;i<iters; i++){
        frCounter = jredis.incr(key);
      }
      long queued = System.nanoTime() - start;
      try {
        long counter = frCounter.get();
        long delta_ns = System.nanoTime() - start;
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisChunkedPipeline.incr()

   
    for(;;){
      Future<Long> frCounter = null;
      long start = System.nanoTime();
      for(int i=0;i<iters; i++){
        frCounter = jredis.incr(key);
      }
      long queued = System.nanoTime() - start;
      try {
        jredis.flush();
        long counter = frCounter.get()// NOTE: excellent place to put implicit flush()
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisClient.incr()

   
    for(;;){
      Long counter = null;
      long start = System.nanoTime();
      for(int i=0;i<iters; i++){
        counter = jredis.incr(key);
      }
      long delta_ns = System.nanoTime() - start;
      long delta_ms = TimeUnit.MILLISECONDS.convert(delta_ns, TimeUnit.NANOSECONDS);
      float opsrate = iters/delta_ms;
      System.out.format("counter: %d  msec:%d ops/msecs:%f  [delta:%d]\n", counter, delta_ms, opsrate, delta_ns);
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisPipeline.incr()

   
    for(;;){
      Future<Long> frCounter = null;
      long start = System.nanoTime();
      for(int i=0;i<iters; i++){
        frCounter = jredis.incr(key);
      }
      long queued = System.nanoTime() - start;
      try {
        long counter = frCounter.get();
        long delta_ns = System.nanoTime() - start;
View Full Code Here

Examples of org.openstreetmap.osmosis.osmbinary.StringTable.incr()

        public void addStringsToStringtable() {
            StringTable stable = getStringTable();
            for (T i : contents) {
                Collection<Tag> tags = i.getTags();
                for (Tag tag : tags) {
                    stable.incr(tag.getKey());
                    stable.incr(tag.getValue());
                }
                if (!omit_metadata) {
                    stable.incr(i.getUser().getName());
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.