Class MetricsServer
java.lang.Object
org.apache.tika.server.core.metrics.MetricsServer
- All Implemented Interfaces:
AutoCloseable
Minimal standalone Jetty answering only
GET /metrics. Separate from the CXF
server so the parse endpoints are unreachable here and a slow parse cannot starve a scrape.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PATH
- See Also:
-
-
Constructor Details
-
MetricsServer
-
-
Method Details
-
start
- Throws:
Exception
-
getHost
-
getPort
public int getPort()The bound port; meaningful afterstart()(port 0 picks a free one). -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-