@WebListener public class ErpEndpointMonitor extends JmxMonitor implements ErpEndpointMonitorMXBean
Constructor and Description |
---|
ErpEndpointMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Unregistering JMX bean for
ErpEndpointMonitor . |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Register JMX bean for
ErpEndpointMonitor . |
Map<String,Long> |
getErpQueryCounts()
Gets number of calls per query.
|
static ErpEndpointMonitor |
getInstance() |
List<String> |
getLongRunningRequests()
Gets a list of long running S/4HANA queries.
|
int |
getLongRunningRequestsLast1h()
Gets a number of long running S/4HANA queries in the last hour.
|
<QueryT extends Query<QueryT,?>> |
incrementErpQueryCount(QueryT query)
Increments the counter for a given query.
|
void |
trackLongRunningRequest(Duration duration,
String requestLine,
String requestBody,
String responseLine,
List<Header> responseHeaders,
int responseLength)
Adds tracking for a long running request with all related information.
|
registerJmxBean, unregisterJmxBean
public <QueryT extends Query<QueryT,?>> void incrementErpQueryCount(QueryT query)
public Map<String,Long> getErpQueryCounts()
getErpQueryCounts
in interface ErpEndpointMonitorMXBean
public int getLongRunningRequestsLast1h()
getLongRunningRequestsLast1h
in interface ErpEndpointMonitorMXBean
public List<String> getLongRunningRequests()
getLongRunningRequests
in interface ErpEndpointMonitorMXBean
public void trackLongRunningRequest(Duration duration, String requestLine, String requestBody, String responseLine, List<Header> responseHeaders, int responseLength)
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
ErpEndpointMonitor
.contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
ErpEndpointMonitor
.contextDestroyed
in interface javax.servlet.ServletContextListener
public static ErpEndpointMonitor getInstance()
Copyright © 2018 SAP SE. All rights reserved.