Class ServerInfoMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean

    public final class ServerInfoMBean
    extends java.lang.Object
    implements javax.management.DynamicMBean
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • mBeanInfo

        private final javax.management.MBeanInfo mBeanInfo
      • attributeDescriptionByName

        private final java.util.Map<java.lang.String,​ServerInfoMBean.Attribute> attributeDescriptionByName
    • Constructor Detail

      • ServerInfoMBean

        private ServerInfoMBean​(MinecraftServer p_i231479_1_)
    • Method Detail

      • registerJmxMonitoring

        public static void registerJmxMonitoring​(MinecraftServer p_233490_0_)
      • getAverageTickTime

        private float getAverageTickTime()
      • getTickTimes

        private long[] getTickTimes()
      • getAttribute

        @Nullable
        public java.lang.Object getAttribute​(java.lang.String p_getAttribute_1_)
        Specified by:
        getAttribute in interface javax.management.DynamicMBean
      • setAttribute

        public void setAttribute​(javax.management.Attribute p_setAttribute_1_)
        Specified by:
        setAttribute in interface javax.management.DynamicMBean
      • getAttributes

        public javax.management.AttributeList getAttributes​(java.lang.String[] p_getAttributes_1_)
        Specified by:
        getAttributes in interface javax.management.DynamicMBean
      • setAttributes

        public javax.management.AttributeList setAttributes​(javax.management.AttributeList p_setAttributes_1_)
        Specified by:
        setAttributes in interface javax.management.DynamicMBean
      • invoke

        @Nullable
        public java.lang.Object invoke​(java.lang.String p_invoke_1_,
                                       java.lang.Object[] p_invoke_2_,
                                       java.lang.String[] p_invoke_3_)
        Specified by:
        invoke in interface javax.management.DynamicMBean
      • getMBeanInfo

        public javax.management.MBeanInfo getMBeanInfo()
        Specified by:
        getMBeanInfo in interface javax.management.DynamicMBean