Remove java.desktop dependency
[controller.git] / opendaylight / md-sal / sal-common-util / src / main / java / org / opendaylight / controller / md / sal / common / util / jmx / ThreadExecutorStats.java
index 0a766c0..2e8b837 100644 (file)
@@ -8,7 +8,7 @@
 
 package org.opendaylight.controller.md.sal.common.util.jmx;
 
-import java.beans.ConstructorProperties;
+import javax.management.ConstructorParameters;
 
 /**
  * A bean class that holds various thread executor statistic metrics. This class is suitable for
@@ -33,7 +33,7 @@ public class ThreadExecutorStats {
     private final Long largestQueueSize;
     private final Long rejectedTaskCount;
 
-    @ConstructorProperties({"activeThreadCount","currentThreadPoolSize","largestThreadPoolSize",
+    @ConstructorParameters({"activeThreadCount","currentThreadPoolSize","largestThreadPoolSize",
         "maxThreadPoolSize","currentQueueSize","largestQueueSize","maxQueueSize",
         "completedTaskCount","totalTaskCount","rejectedTaskCount"})
     public ThreadExecutorStats(long activeThreadCount, long currentThreadPoolSize,

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.