@ SuppressWarnings ( "deprecation" ) private static void emitTraceParamsTable ( TraceParams params , PrintWriter out ) { out . write ( "<b class=\"title\">Active tracing parameters:</b><br>\n" + "<table class=\"small\" rules=\"all\">\n" + " <tr>\n" + " <td class=\"col_headR\">Name</td>\n" + " <td class=\"col_head\">Value</td>\n" + " </tr>\n" ) ; out . printf ( " <tr>%n <td>Sampler</td>%n <td>%s</td>%n </tr>%n" , params . getSampler ( ) . getDescription ( ) ) ; out . printf ( " <tr>%n <td>MaxNumberOfAttributes</td>%n <td>%d</td>%n </tr>%n" , params . getMaxNumberOfAttributes ( ) ) ; out . printf ( " <tr>%n <td>MaxNumberOfAnnotations</td>%n <td>%d</td>%n </tr>%n" , params . getMaxNumberOfAnnotations ( ) ) ; out . printf ( " <tr>%n <td>MaxNumberOfNetworkEvents</td>%n <td>%d</td>%n </tr>%n" , params . getMaxNumberOfNetworkEvents ( ) ) ; out . printf ( " <tr>%n <td>MaxNumberOfLinks</td>%n <td>%d</td>%n </tr>%n" , params . getMaxNumberOfLinks ( ) ) ; out . write ( "</table>\n" ) ; }
Prints a table to a PrintWriter that shows existing trace parameters .