VMware GemFire Java API Reference
Package org.apache.geode.metrics
Class PublishingService
- java.lang.Object
-
- org.apache.geode.metrics.PublishingService
-
- All Implemented Interfaces:
MetricsPublishingService
public class PublishingService extends java.lang.Object implements MetricsPublishingService
-
-
Constructor Summary
Constructors Constructor Description PublishingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.net.URL>getUrl()voidstart(MetricsSession session)Invoked when a metrics session starts.voidstop(MetricsSession session)Invoked when a metrics session stops.
-
-
-
Field Detail
-
HTTPS
public static final java.lang.String HTTPS
- See Also:
- Constant Field Values
-
HTTP
public static final java.lang.String HTTP
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start(MetricsSession session)
Description copied from interface:MetricsPublishingServiceInvoked when a metrics session starts. A typical implementation will create a meter registry that can publish to an external monitoring system, and callMetricsSession.addSubregistry(MeterRegistry)to add that registry to the session.- Specified by:
startin interfaceMetricsPublishingService- Parameters:
session- the metrics session whose metrics this publishing service will publish
-
stop
public void stop(MetricsSession session)
Description copied from interface:MetricsPublishingServiceInvoked when a metrics session stops. The implementation should callMetricsSession.removeSubregistry(MeterRegistry)to remove each meter registry it added to the session. The implementation should also clean up any other resources it allocated during- Specified by:
stopin interfaceMetricsPublishingService- Parameters:
session- the metrics session whose metrics this publishing service was publishingMetricsPublishingService.start(MetricsSession).
-
getUrl
public java.util.Optional<java.net.URL> getUrl()
- Specified by:
getUrlin interfaceMetricsPublishingService
-
-