Java AtomicLong getMethodExecuteCount()

Here you can find the source of getMethodExecuteCount()

Description

get Method Execute Count

License

GNU General Public License

Declaration

public static String getMethodExecuteCount() 

Method Source Code

//package com.java2s;
/**//from   w w w.j  ava  2  s.c  o  m
 * ?????????????????????????.<br>
 *
 * @author T.Okuyama
 * @license GPL(Lv3)
 */

import java.util.concurrent.atomic.AtomicLong;

public class Main {
    private static AtomicLong[] accessCountList = new AtomicLong[24];

    public static String getMethodExecuteCount() {
        StringBuffer strBuf = new StringBuffer(100);
        for (int i = 0; i < 24; i++) {
            strBuf.append("Hour=");
            strBuf.append(i);
            strBuf.append("");

            strBuf.append(" Count=[");
            strBuf.append(((AtomicLong) accessCountList[i]).toString());
            strBuf.append("], ");
        }
        return strBuf.toString();
    }
}

Related

  1. getDateSafe()
  2. getForeverUniqueID()
  3. getGlobalTimeStamp()
  4. getList(AtomicLongArray atomicLongArray)
  5. getMessageId()
  6. getMeUniqueString(Calendar cal)
  7. getMmapBufferUsage()
  8. getNativeSeed(Random rand)
  9. getNextTestIndexName()