io.leopard.topnb.service
Class PerformanceServiceImpl

java.lang.Object
  extended by io.leopard.topnb.service.PerformanceServiceImpl
All Implemented Interfaces:
PerformanceService

public class PerformanceServiceImpl
extends java.lang.Object
implements PerformanceService


Constructor Summary
PerformanceServiceImpl()
           
 
Method Summary
 boolean add(java.lang.String methodName, long time)
           
protected  void filterIgnoreMethod(java.util.List<Performance> performanceList)
           
protected  BaseData getBaseData(java.lang.String entryName)
           
protected  long getCount(java.lang.String entryName)
           
 java.lang.String getTypeName(java.lang.String entryName)
           
protected  boolean isIgnoreMethod(java.lang.String methodName)
           
 java.util.List<Performance> listAll(java.lang.String entryName)
           
 java.util.List<java.lang.String> listAllEntryName()
           
protected  void sortEntryName(java.util.List<java.lang.String> entryNameList)
           
static
<T> java.util.List<T>
sub(java.util.List<T> list, int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceServiceImpl

public PerformanceServiceImpl()
Method Detail

add

public boolean add(java.lang.String methodName,
                   long time)
Specified by:
add in interface PerformanceService

listAll

public java.util.List<Performance> listAll(java.lang.String entryName)
Specified by:
listAll in interface PerformanceService

getBaseData

protected BaseData getBaseData(java.lang.String entryName)

filterIgnoreMethod

protected void filterIgnoreMethod(java.util.List<Performance> performanceList)

isIgnoreMethod

protected boolean isIgnoreMethod(java.lang.String methodName)

listAllEntryName

public java.util.List<java.lang.String> listAllEntryName()
Specified by:
listAllEntryName in interface PerformanceService

sub

public static <T> java.util.List<T> sub(java.util.List<T> list,
                                        int max)

sortEntryName

protected void sortEntryName(java.util.List<java.lang.String> entryNameList)

getCount

protected long getCount(java.lang.String entryName)

getTypeName

public java.lang.String getTypeName(java.lang.String entryName)
Specified by:
getTypeName in interface PerformanceService


Copyright © 2014. All Rights Reserved.