|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.web.ui.ViewUtil
Utility methods used by InfraRED web GUI.
| Constructor Summary | |
ViewUtil()
|
|
| Method Summary | |
static String |
extractMethodName(String name)
|
static AggregateApiTime[] |
getAggregateJDBCSummary(AggregateOperationTree tree)
|
static ContextApiTime[] |
getComponentSummary(HttpSession session,
String apiType)
|
static String |
getFormattedTime(double time)
Gets the String format of the given double with two places after decimal point |
static String |
getFormattedTime(double time,
int precision)
Gets the String format of the given double with the given number of integers after the decimal point. |
static String |
getFormattedTime(String time,
int precision)
|
static AggregateApiTime[] |
getJDBCSummary(AggregateOperationTree tree)
Gets the summary of JDBC APIs for this operation. |
static AggregateApiTime[] |
getJDBCSummary(AggregateOperationTree[] trees)
Gets the aggregate of JDBC AIP executions across an array of operations. |
protected static void |
getJDBCSummary(TreeNode node,
List list)
|
static String |
getSortByHrefInLayer(String sortBy,
String sortDir,
String currentSortBy,
String apiType,
String exclusiveInclusiveMode)
|
static String |
getSortByHrefInSummary(String sortBy,
String sortDir,
String currentSortBy)
|
static String |
getSortByIconInLayer(String sortBy,
String sortDir,
String currentSortBy,
String exclusiveInclusiveMode)
|
static String |
getSortByIconInSummary(String sortBy,
String sortDir,
String currentSortBy)
|
static String |
getSqlLog(PerformanceDataSnapShot pefData,
AggregateOperationTree tree)
|
static SqlStatistics[] |
getSqlStatistics(AggregateApiTime[] apiTimes)
|
static AggregateApiTime[] |
getSummaryForALayer(HttpServletRequest request,
HttpSession session,
String apiType)
|
static AggregateApiTime[] |
getSummaryForALayer(PerformanceDataSnapShot perfData,
String layer)
|
static ContextApiTime[] |
getSummaryOfAllComponents(HttpSession session)
|
static SqlStatistics[] |
getTopNQueriesByCount(SqlStatistics[] sqlStatistics,
int n)
|
static SqlStatistics[] |
getTopNQueriesByExecutionTime(SqlStatistics[] sqlStatistics,
int n)
|
static void |
sort(AggregateApiTime[] arr,
HttpServletRequest request)
Sorts an array of TimeVo object in-place. |
static void |
sort(LayerTime[] layerTimes,
String fieldName,
boolean ascending)
|
static void |
sort(String sortBy,
boolean ascending,
AggregateApiTime[] arr)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ViewUtil()
| Method Detail |
public static String getFormattedTime(double time)
time -
public static String getFormattedTime(double time,
int precision)
time - precision - the number of places after the decimal point.
public static String getFormattedTime(String time,
int precision)
public static AggregateApiTime[] getJDBCSummary(AggregateOperationTree[] trees)
trees -
public static AggregateApiTime[] getAggregateJDBCSummary(AggregateOperationTree tree)
public static AggregateApiTime[] getJDBCSummary(AggregateOperationTree tree)
tree -
public static void sort(AggregateApiTime[] arr,
HttpServletRequest request)
arr - request -
public static void sort(String sortBy,
boolean ascending,
AggregateApiTime[] arr)
public static void sort(LayerTime[] layerTimes,
String fieldName,
boolean ascending)
public static AggregateApiTime[] getSummaryForALayer(PerformanceDataSnapShot perfData,
String layer)
public static AggregateApiTime[] getSummaryForALayer(HttpServletRequest request,
HttpSession session,
String apiType)
public static ContextApiTime[] getSummaryOfAllComponents(HttpSession session)
public static ContextApiTime[] getComponentSummary(HttpSession session,
String apiType)
protected static void getJDBCSummary(TreeNode node,
List list)
public static SqlStatistics[] getTopNQueriesByExecutionTime(SqlStatistics[] sqlStatistics,
int n)
public static SqlStatistics[] getTopNQueriesByCount(SqlStatistics[] sqlStatistics,
int n)
public static SqlStatistics[] getSqlStatistics(AggregateApiTime[] apiTimes)
public static String extractMethodName(String name)
public static String getSqlLog(PerformanceDataSnapShot pefData,
AggregateOperationTree tree)
public static String getSortByHrefInLayer(String sortBy,
String sortDir,
String currentSortBy,
String apiType,
String exclusiveInclusiveMode)
public static String getSortByHrefInSummary(String sortBy,
String sortDir,
String currentSortBy)
public static String getSortByIconInLayer(String sortBy,
String sortDir,
String currentSortBy,
String exclusiveInclusiveMode)
public static String getSortByIconInSummary(String sortBy,
String sortDir,
String currentSortBy)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||