@@ -577,6 +577,8 @@ public final static synchronized Configure getInstance() {
577577 public long counter_recentuser_valid_ms = DateUtil .MILLIS_PER_FIVE_MINUTE ;
578578 @ ConfigDesc ("Path to file creation directory of process ID file" )
579579 public String counter_object_registry_path = "/tmp/scouter" ;
580+ @ ConfigDesc ("Activating custom jmx" )
581+ public boolean counter_custom_jmx_enabled = false ;
580582
581583 // SFA(Stack Frequency Analyzer)
582584 @ ConfigDesc ("Activating period threaddump function" )
@@ -639,6 +641,7 @@ public final static synchronized Configure getInstance() {
639641 private int hook_signature ;
640642 private StringSet _hook_method_ignore_classes = new StringSet ();
641643 private int enduser_perf_endpoint_hash = HashUtil .hash (enduser_trace_endpoint_url );
644+ private StringSet custom_jmx_set = new StringSet ();
642645
643646 /**
644647 * sometimes call by sample application, at that time normally set some
@@ -914,6 +917,8 @@ private void apply() {
914917
915918 this .counter_recentuser_valid_ms = getLong ("counter_recentuser_valid_ms" , DateUtil .MILLIS_PER_FIVE_MINUTE );
916919 this .counter_object_registry_path = getValue ("counter_object_registry_path" , "/tmp/scouter" );
920+ this .counter_custom_jmx_enabled = getBoolean ("counter_custom_jmx_enabled" , false );
921+ this .custom_jmx_set = getStringSet ("custom_jmx_set" , "||" );
917922 this .sfa_dump_enabled = getBoolean ("sfa_dump_enabled" , false );
918923 this .sfa_dump_interval_ms = getInt ("sfa_dump_interval_ms" , 10000 );
919924
@@ -1092,6 +1097,10 @@ public boolean isIgnoreMethodPrefix(String name) {
10921097 return false ;
10931098 }
10941099
1100+ public StringSet getCustomJmxSet () {
1101+ return this .custom_jmx_set ;
1102+ }
1103+
10951104 public boolean isIgnoreMethodClass (String classname ) {
10961105 return _hook_method_ignore_classes .hasKey (classname );
10971106 }
0 commit comments