Package net.minecraft.server.dedicated
Class ServerInfoMBean
- java.lang.Object
-
- net.minecraft.server.dedicated.ServerInfoMBean
-
- All Implemented Interfaces:
javax.management.DynamicMBean
public final class ServerInfoMBean extends java.lang.Object implements javax.management.DynamicMBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ServerInfoMBean.Attribute
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,ServerInfoMBean.Attribute>
attributeDescriptionByName
private static org.apache.logging.log4j.Logger
LOGGER
private javax.management.MBeanInfo
mBeanInfo
private MinecraftServer
server
-
Constructor Summary
Constructors Modifier Constructor Description private
ServerInfoMBean(MinecraftServer p_i231479_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getAttribute(java.lang.String p_getAttribute_1_)
javax.management.AttributeList
getAttributes(java.lang.String[] p_getAttributes_1_)
private float
getAverageTickTime()
javax.management.MBeanInfo
getMBeanInfo()
private long[]
getTickTimes()
java.lang.Object
invoke(java.lang.String p_invoke_1_, java.lang.Object[] p_invoke_2_, java.lang.String[] p_invoke_3_)
static void
registerJmxMonitoring(MinecraftServer p_233490_0_)
void
setAttribute(javax.management.Attribute p_setAttribute_1_)
javax.management.AttributeList
setAttributes(javax.management.AttributeList p_setAttributes_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
server
private final MinecraftServer server
-
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 interfacejavax.management.DynamicMBean
-
setAttribute
public void setAttribute(javax.management.Attribute p_setAttribute_1_)
- Specified by:
setAttribute
in interfacejavax.management.DynamicMBean
-
getAttributes
public javax.management.AttributeList getAttributes(java.lang.String[] p_getAttributes_1_)
- Specified by:
getAttributes
in interfacejavax.management.DynamicMBean
-
setAttributes
public javax.management.AttributeList setAttributes(javax.management.AttributeList p_setAttributes_1_)
- Specified by:
setAttributes
in interfacejavax.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 interfacejavax.management.DynamicMBean
-
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interfacejavax.management.DynamicMBean
-
-