File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 5252 * printed to stdout.
5353 */
5454public class Tracer implements Runnable {
55+ private static boolean property (String property ){
56+ return Boolean .parseBoolean (System .getProperty (
57+ "com.rabbitmq.tools.Tracer." + property ));
58+ }
59+
5560 public static final boolean WITHHOLD_INBOUND_HEARTBEATS =
56- Boolean . parseBoolean ( System . getProperty ( "com.rabbitmq.tools.Tracer. WITHHOLD_INBOUND_HEARTBEATS") );
61+ property ( " WITHHOLD_INBOUND_HEARTBEATS" );
5762 public static final boolean WITHHOLD_OUTBOUND_HEARTBEATS =
58- Boolean . parseBoolean ( System . getProperty ( "com.rabbitmq.tools.Tracer. WITHHOLD_OUTBOUND_HEARTBEATS") );
63+ property ( " WITHHOLD_OUTBOUND_HEARTBEATS" );
5964 public static final boolean NO_ASSEMBLE_FRAMES =
60- Boolean . parseBoolean ( System . getProperty ( "com.rabbitmq.tools.Tracer. NO_ASSEMBLE_FRAMES") );
65+ property ( " NO_ASSEMBLE_FRAMES" );
6166 public static final boolean NO_DECODE_FRAMES =
62- Boolean . parseBoolean ( System . getProperty ( "com.rabbitmq.tools.Tracer. NO_DECODE_FRAMES") );
67+ property ( " NO_DECODE_FRAMES" );
6368 public static final boolean SUPPRESS_COMMAND_BODIES =
64- Boolean .parseBoolean (System .getProperty ("com.rabbitmq.tools.Tracer.SUPPRESS_COMMAND_BODIES" ));
65-
69+ property ("SUPPRESS_COMMAND_BODIES" );
6670 public static final boolean SILENT_MODE =
67- Boolean . parseBoolean ( System . getProperty ( "com.rabbitmq.tools.Tracer. SILENT_MODE") );
71+ property ( " SILENT_MODE" );
6872
6973 final static int LOG_QUEUE_SIZE = 1024 * 1024 ;
7074 final static int BUFFER_SIZE = 10 * 1024 * 1024 ;
You can’t perform that action at this time.
0 commit comments