static void printTaskDescription(TaskDescription td) { ElementDescription[] methodInfos = td.getMethodInfo(); System.out.println("\n***Method descriptions:" + methodInfos.length); printElementDescriptions(methodInfos); System.out.println("\n***Reason descriptions:"); TypeDescription[] reasons = td.getReason(); for(int i=0; reasons!=null && i<reasons.length; i++) { System.out.println("\nKey:" + reasons[i].getKey()); System.out.println("Label:" + reasons[i].getLabel()); System.out.println("Summary:" + reasons[i].getSummary()); } System.out.println("\n***Task state enum descriptions:"); ElementDescription[] states = td.getState(); printElementDescriptions(states); }
static void printDescriptions(ElementDescription[] eds) { for(int i=0; eds!=null && i< eds.length; i++) { System.out.println("\nKey:" + eds[i].getKey()); System.out.println("Label:" + eds[i].getLabel()); System.out.println("Summary:" + eds[i].getSummary()); } }
static void printPerfDescription(PerformanceDescription pd) { ElementDescription[] eds = pd.getCounterType(); printElementDescriptions(eds); ElementDescription[] statsTypes = pd.getStatsType(); printElementDescriptions(statsTypes); }
static void printElementDescriptions(ElementDescription[] eds) { for(int i=0; eds!=null && i<eds.length; i++) { printElementDescription(eds[i]); } }
static void printElementDescription(ElementDescription ed) { System.out.println("\nKey:" + ed.getKey()); System.out.println("Label:" + ed.getLabel()); System.out.println("Summary:" + ed.getSummary()); }