@@ -44,7 +44,6 @@ public class RangerMetricsUtil {
4444 private static final Logger LOG = LoggerFactory .getLogger (RangerMetricsUtil .class );
4545 private static final OperatingSystemMXBean OS ;
4646 private static final MemoryMXBean MEM_BEAN ;
47- public static final String NL = System .getProperty ("line.separator" );
4847
4948 static {
5049 OS = ManagementFactory .getOperatingSystemMXBean ();
@@ -53,7 +52,7 @@ public class RangerMetricsUtil {
5352
5453 public Map <String , Object > getValues () {
5554 if (LOG .isDebugEnabled ()) {
56- LOG .debug ("==> RangerJVMMetricUtil .getValues()" );
55+ LOG .debug ("==> RangerMetricsUtil .getValues()" );
5756 }
5857
5958 Map <String , Object > values = new LinkedHashMap <>();
@@ -62,7 +61,7 @@ public Map<String, Object> getValues() {
6261 values .put ("memory" , addMemoryDetails ());
6362
6463 if (LOG .isDebugEnabled ()) {
65- LOG .debug ("<== RangerJVMMetricUtil .getValues()" + values );
64+ LOG .debug ("<== RangerMetricsUtil .getValues()" + values );
6665 }
6766
6867 return values ;
@@ -73,7 +72,7 @@ public Map<String, Object> getValues() {
7372 */
7473 protected Map <String , Object > getPoolDivision () {
7574 if (LOG .isDebugEnabled ()) {
76- LOG .debug ("==> RangerJVMMetricUtil .getPoolDivision()" );
75+ LOG .debug ("==> RangerMetricsUtil .getPoolDivision()" );
7776 }
7877
7978 Map <String , Object > poolDivisionValues = new LinkedHashMap <>();
@@ -84,7 +83,7 @@ protected Map<String, Object> getPoolDivision() {
8483 }
8584
8685 if (LOG .isDebugEnabled ()) {
87- LOG .debug ("<== RangerJVMMetricUtil .getPoolDivision()" + poolDivisionValues );
86+ LOG .debug ("<== RangerMetricsUtil .getPoolDivision()" + poolDivisionValues );
8887 }
8988
9089 return poolDivisionValues ;
@@ -95,7 +94,7 @@ protected Map<String, Object> getPoolDivision() {
9594 */
9695 protected Map <String , Object > addMemoryDetails () {
9796 if (LOG .isDebugEnabled ()) {
98- LOG .debug ("==> RangerJVMMetricUtil .addMemoryDetails()" );
97+ LOG .debug ("==> RangerMetricsUtil .addMemoryDetails()" );
9998 }
10099
101100 Map <String , Object > memory = new LinkedHashMap <>();
@@ -112,7 +111,7 @@ protected Map<String, Object> addMemoryDetails() {
112111 memory .put ("memory_pool_usages" , getPoolDivision ());
113112
114113 if (LOG .isDebugEnabled ()) {
115- LOG .debug ("<== RangerJVMMetricUtil .addMemoryDetails()" + memory );
114+ LOG .debug ("<== RangerMetricsUtil .addMemoryDetails()" + memory );
116115 }
117116
118117 return memory ;
@@ -123,12 +122,12 @@ protected Map<String, Object> addMemoryDetails() {
123122 */
124123 protected String [] addSystemInfo () {
125124 if (LOG .isDebugEnabled ()) {
126- LOG .debug ("==> RangerJVMMetricUtil .addSystemInfo()" );
125+ LOG .debug ("==> RangerMetricsUtil .addSystemInfo()" );
127126 }
128127
129128 String [] osInfo = { OS .getName (), OS .getArch (), OS .getVersion () };
130129 if (LOG .isDebugEnabled ()) {
131- LOG .debug ("<== RangerJVMMetricUtil .addSystemInfo()" + osInfo );
130+ LOG .debug ("<== RangerMetricsUtil .addSystemInfo()" + osInfo );
132131 }
133132
134133 return osInfo ;
0 commit comments