Search in sources :

Example 56 with Manager

use of org.apache.catalina.Manager in project spring-boot by spring-projects.

the class TomcatMetricsBinder method onApplicationEvent.

@Override
public void onApplicationEvent(ApplicationStartedEvent event) {
    ApplicationContext applicationContext = event.getApplicationContext();
    Manager manager = findManager(applicationContext);
    this.tomcatMetrics = new TomcatMetrics(manager, this.tags);
    this.tomcatMetrics.bindTo(this.meterRegistry);
}
Also used : ApplicationContext(org.springframework.context.ApplicationContext) WebServerApplicationContext(org.springframework.boot.web.context.WebServerApplicationContext) Manager(org.apache.catalina.Manager) TomcatMetrics(io.micrometer.core.instrument.binder.tomcat.TomcatMetrics)

Aggregations

Manager (org.apache.catalina.Manager)56 StringManager (org.apache.tomcat.util.res.StringManager)26 IOException (java.io.IOException)24 Session (org.apache.catalina.Session)24 Context (org.apache.catalina.Context)19 Container (org.apache.catalina.Container)13 LifecycleException (org.apache.catalina.LifecycleException)12 Lifecycle (org.apache.catalina.Lifecycle)11 Loader (org.apache.catalina.Loader)11 InstanceManager (org.apache.tomcat.InstanceManager)11 StandardManager (org.apache.catalina.session.StandardManager)10 Realm (org.apache.catalina.Realm)9 HttpSession (javax.servlet.http.HttpSession)8 ServletException (javax.servlet.ServletException)7 ArrayList (java.util.ArrayList)6 NamingException (javax.naming.NamingException)6 Cluster (org.apache.catalina.Cluster)6 DistributedManager (org.apache.catalina.DistributedManager)6 StandardContext (org.apache.catalina.core.StandardContext)6 WebappLoader (org.apache.catalina.loader.WebappLoader)6