Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jaxrs-dev] Monitoring Statistics

Monitoring-Statistics gathering using jersey defined ways (Event Listeners, MonitoringStatistics, MXBeans with JConsole) is quite complex and hard to find what you are looking for easily.

My suggestion would be to add a feature that allows developers to annotate their resource classes and resource methods with @MStatistics("URI") annotation where the URI is a relative URI to the resource's URI and would correspond to the resources statistics after being invoked using a browser (or any other client type).


example:


@MStatistics("stats")
@Path("resource")
public class MyResource
{
	@GET
	public String getResource()
	{
		return "Hello World";
	}
}



then the statistics would be available at URI: http://{host}:{port}/resource/stats

Back to the top