接口 SpringApplicationAdminMXBean
public interface SpringApplicationAdminMXBean
An MBean contract to control and monitor a runningSpringApplication
via JMX. Intended for internal use only.- 从以下版本开始:
- 1.3.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
getProperty(String key)
Return the value of the specified key from the applicationEnvironment
.boolean
isEmbeddedWebApplication()
Specify if the application runs in an embedded web container.boolean
isReady()
Specify if the application has fully started and is now ready.void
shutdown()
Shutdown the application.
方法详细资料
isReady
boolean isReady()
Specify if the application has fully started and is now ready.- 返回:
true
if the application is ready- 另请参阅:
ApplicationReadyEvent
isEmbeddedWebApplication
boolean isEmbeddedWebApplication()
Specify if the application runs in an embedded web container. Returnfalse
on a web application that hasn't fully started yet, so it is preferable to wait for the application to beready
.- 返回:
true
if the application runs in an embedded web container- 另请参阅:
isReady()
getProperty
String getProperty(String key)
Return the value of the specified key from the applicationEnvironment
.- 参数:
key
- the property key- 返回:
- the property value or
null
if it does not exist
shutdown
void shutdown()
Shutdown the application.- 另请参阅:
ConfigurableApplicationContext.close()