com.fasterxml.clustermate.servlet.ServletWithMetricsBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-servlet Show documentation
Show all versions of clustermate-servlet Show documentation
Servlets that expose ClusterMate(-based) service
package com.fasterxml.clustermate.servlet;
import com.fasterxml.clustermate.service.SharedServiceStuff;
import com.fasterxml.clustermate.service.cluster.ClusterViewByServer;
import com.fasterxml.clustermate.service.metrics.AllOperationMetrics;
/**
* Intermediate class we use to denote servlets that are to provide
* metrics information.
*/
@SuppressWarnings("serial")
public abstract class ServletWithMetricsBase
extends ServletBase
implements AllOperationMetrics.Provider
{
protected ServletWithMetricsBase(SharedServiceStuff stuff,
ClusterViewByServer clusterView, String servletPathBase)
{
super(stuff, clusterView, servletPathBase);
}
@Override
public abstract void fillOperationMetrics(AllOperationMetrics metrics);
}