src/jdk.internal.vm.compiler.management/share/classes/org.graalvm.compiler.hotspot.management/src/org/graalvm/compiler/hotspot/management/HotSpotGraalRuntimeMBean.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54328 37648a9c4a6a
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    55 import jdk.vm.ci.services.Services;
    55 import jdk.vm.ci.services.Services;
    56 
    56 
    57 /**
    57 /**
    58  * MBean used to access properties and operations of a {@link HotSpotGraalRuntime} instance.
    58  * MBean used to access properties and operations of a {@link HotSpotGraalRuntime} instance.
    59  */
    59  */
    60 final class HotSpotGraalRuntimeMBean implements DynamicMBean {
    60 public final class HotSpotGraalRuntimeMBean implements DynamicMBean {
    61 
    61 
    62     /**
    62     /**
    63      * The runtime instance to which this bean provides a management connection.
    63      * The runtime instance to which this bean provides a management connection.
    64      */
    64      */
    65     private final HotSpotGraalRuntime runtime;
    65     private final HotSpotGraalRuntime runtime;
    67     /**
    67     /**
    68      * The object name under which the bean is registered.
    68      * The object name under which the bean is registered.
    69      */
    69      */
    70     private final ObjectName objectName;
    70     private final ObjectName objectName;
    71 
    71 
    72     HotSpotGraalRuntimeMBean(ObjectName objectName, HotSpotGraalRuntime runtime) {
    72     public HotSpotGraalRuntimeMBean(ObjectName objectName, HotSpotGraalRuntime runtime) {
    73         this.objectName = objectName;
    73         this.objectName = objectName;
    74         this.runtime = runtime;
    74         this.runtime = runtime;
    75     }
    75     }
    76 
    76 
    77     ObjectName getObjectName() {
    77     public ObjectName getObjectName() {
    78         return objectName;
    78         return objectName;
    79     }
    79     }
    80 
    80 
    81     HotSpotGraalRuntime getRuntime() {
    81     public HotSpotGraalRuntime getRuntime() {
    82         return runtime;
    82         return runtime;
    83     }
    83     }
    84 
    84 
    85     private static final boolean DEBUG = initDebug();
    85     private static final boolean DEBUG = initDebug();
    86 
    86