Sonic ESB API

com.sonicsw.esb.service.common.metrics
Interface MetricsCapable


public interface MetricsCapable

Optional interface that can be implemented if a service needs to register custom metrics. This interface provides hooks for registering container- and service-metrics via a metrics handler. Services implementing this interface are expected to keep a reference to the appropriate metrics handler(s) and update the metric values as needed.


Method Summary
 void initializeContainerMetrics(MetricsBuilder builder, MetricsHandler metricsHandler)
          Hook for registering ESB container metrics.
 void initializeServiceMetrics(MetricsBuilder builder, MetricsHandler metricsHandler)
          Hook for registering ESB service metrics.
 

Method Detail

initializeContainerMetrics

void initializeContainerMetrics(MetricsBuilder builder,
                                MetricsHandler metricsHandler)
Hook for registering ESB container metrics. This will be called at the appropriate time during initialization so the service can register custom metrics.


initializeServiceMetrics

void initializeServiceMetrics(MetricsBuilder builder,
                              MetricsHandler metricsHandler)
Hook for registering ESB service metrics. This will be called at the appropriate time during initialization so the service can register custom metrics. NoteIn this release, service metrics are implemented as container metrics with a qualified name. This will be updated if/when the underlying ESB API is updated to support 'instance metrics', which would better usability from the SMC.


Sonic ESB API

Copyright © 2001-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.