@ManagedResource(objectName="AppStatus:bean=ServicesStatusChecker") public class StatusJmx extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
StatusJmx() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatCodeDisplay(int code)
Human readable code format.
|
Map<String,List<String>> |
getFullStatus() |
Map<String,Map<String,String>> |
getServicesProperties() |
Map<String,String> |
getStatus() |
void |
init()
Load configuration from /status-jmx-conf.properties file.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext springApplicationContext) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAware@ManagedAttribute(description="Status list",
currencyTimeLimit=15)
public Map<String,String> getStatus()
@ManagedAttribute(description="Full status list : display return code, description and resolution steps.",
currencyTimeLimit=15)
public Map<String,List<String>> getFullStatus()
@ManagedAttribute(description="The services properties") public Map<String,Map<String,String>> getServicesProperties()
protected String formatCodeDisplay(int code)
code - ICheckResult or the int code if not foundpublic void init()
public void setApplicationContext(org.springframework.context.ApplicationContext springApplicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010–2016. All rights reserved.