src/java.management/share/classes/sun/management/ConnectorAddressLink.java

Print this page
rev 13432 : 8146736: Move sun.misc performance counters to jdk.internal.perf
Reviewed-by: alanb, mchung, rriggs


  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.management;
  27 
  28 import java.io.IOException;
  29 import java.nio.ByteBuffer;
  30 import java.nio.ByteOrder;
  31 import java.util.HashMap;
  32 import java.util.Iterator;
  33 import java.util.List;
  34 import java.util.Map;
  35 import java.util.concurrent.atomic.AtomicInteger;
  36 
  37 import sun.misc.Perf;
  38 import sun.management.counter.Units;
  39 import sun.management.counter.Counter;
  40 import sun.management.counter.perf.PerfInstrumentation;
  41 
  42 /**
  43  * A utility class to support the exporting and importing of the address
  44  * of a connector server using the instrumentation buffer.
  45  *
  46  * @since 1.5
  47  */
  48 public class ConnectorAddressLink {
  49     /**
  50      * A simple wrapper for the perf-counter backing {@linkplain ByteBuffer}
  51      */
  52     private static final class PerfHandle {
  53         private ByteBuffer bb;
  54 
  55         private PerfHandle(ByteBuffer bb) {
  56             this.bb = bb.order(ByteOrder.nativeOrder());
  57         }




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.management;
  27 
  28 import java.io.IOException;
  29 import java.nio.ByteBuffer;
  30 import java.nio.ByteOrder;
  31 import java.util.HashMap;
  32 import java.util.Iterator;
  33 import java.util.List;
  34 import java.util.Map;
  35 import java.util.concurrent.atomic.AtomicInteger;
  36 
  37 import jdk.internal.perf.Perf;
  38 import sun.management.counter.Units;
  39 import sun.management.counter.Counter;
  40 import sun.management.counter.perf.PerfInstrumentation;
  41 
  42 /**
  43  * A utility class to support the exporting and importing of the address
  44  * of a connector server using the instrumentation buffer.
  45  *
  46  * @since 1.5
  47  */
  48 public class ConnectorAddressLink {
  49     /**
  50      * A simple wrapper for the perf-counter backing {@linkplain ByteBuffer}
  51      */
  52     private static final class PerfHandle {
  53         private ByteBuffer bb;
  54 
  55         private PerfHandle(ByteBuffer bb) {
  56             this.bb = bb.order(ByteOrder.nativeOrder());
  57         }