public class JMXMediationFlowObserver extends Object implements StatisticCollectionViewMXBean, MessageFlowObserver, TenantInformation
| Modifier and Type | Field and Description |
|---|---|
static String |
MBEAN_CATEGORY |
static String |
MBEAN_ID |
| Constructor and Description |
|---|
JMXMediationFlowObserver(int tenantId) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Clean up this observer and prepare for shutdown
|
StatisticsCompositeObject |
getApiJmxStatistics(String apiName)
Returns statistics related to a API.
|
StatisticsCompositeObject |
getEndpointJmxStatistics(String endpointName)
Returns statistics related to a Endpoint.
|
StatisticsCompositeObject |
getInboundEndpointJmxStatistics(String inboundEndpointName)
Returns statistics related to a Inbound Endpoint.
|
StatisticsCompositeObject |
getProxyServiceJmxStatistics(String proxyName)
Returns statistics related to a Proxy Service.
|
StatisticsCompositeObject |
getSequenceJmxStatistics(String sequenceName)
Returns statistics related to a Sequence.
|
int |
getTenantId()
Get the tenant id for the observer
|
void |
resetAllStatistics()
Reset all JMX statistics.
|
void |
resetAPIStatistics()
Reset JMX API statistic collection.
|
void |
resetEndpointStatistics()
Reset JMX Endpoint statistic collection.
|
void |
resetInboundEndpointStatistics()
Reset JMX Inbound Endpoint statistic collection.
|
void |
resetProxyStatistics()
Reset JMX Proxy statistic collection.
|
void |
resetSequenceStatistics()
Reset JMX Sequence statistic collection.
|
void |
setTenantId(int i)
Set the tenantId for the observer
|
void |
updateStatistics(org.apache.synapse.aspects.flow.statistics.publishing.PublishingFlow snapshot)
Receive a statistics update from the statistics store/provider.
|
public static final String MBEAN_CATEGORY
public static final String MBEAN_ID
public void resetAPIStatistics()
StatisticCollectionViewMXBeanresetAPIStatistics in interface StatisticCollectionViewMXBeanpublic void resetProxyStatistics()
StatisticCollectionViewMXBeanresetProxyStatistics in interface StatisticCollectionViewMXBeanpublic void resetSequenceStatistics()
StatisticCollectionViewMXBeanresetSequenceStatistics in interface StatisticCollectionViewMXBeanpublic void resetInboundEndpointStatistics()
StatisticCollectionViewMXBeanresetInboundEndpointStatistics in interface StatisticCollectionViewMXBeanpublic void resetEndpointStatistics()
StatisticCollectionViewMXBeanresetEndpointStatistics in interface StatisticCollectionViewMXBeanpublic void resetAllStatistics()
StatisticCollectionViewMXBeanresetAllStatistics in interface StatisticCollectionViewMXBeanpublic StatisticsCompositeObject getProxyServiceJmxStatistics(String proxyName)
StatisticCollectionViewMXBeangetProxyServiceJmxStatistics in interface StatisticCollectionViewMXBeanproxyName - Name of the proxy service.public StatisticsCompositeObject getSequenceJmxStatistics(String sequenceName)
StatisticCollectionViewMXBeangetSequenceJmxStatistics in interface StatisticCollectionViewMXBeansequenceName - Name of the Sequence.public StatisticsCompositeObject getApiJmxStatistics(String apiName)
StatisticCollectionViewMXBeangetApiJmxStatistics in interface StatisticCollectionViewMXBeanapiName - Name of the API.public StatisticsCompositeObject getInboundEndpointJmxStatistics(String inboundEndpointName)
StatisticCollectionViewMXBeangetInboundEndpointJmxStatistics in interface StatisticCollectionViewMXBeaninboundEndpointName - Name of the Inbound Endpoint.public StatisticsCompositeObject getEndpointJmxStatistics(String endpointName)
StatisticCollectionViewMXBeangetEndpointJmxStatistics in interface StatisticCollectionViewMXBeanendpointName - Name of the Endpoint.public void destroy()
MessageFlowObserverdestroy in interface MessageFlowObserverpublic void updateStatistics(org.apache.synapse.aspects.flow.statistics.publishing.PublishingFlow snapshot)
MessageFlowObserverupdateStatistics in interface MessageFlowObserversnapshot - Current latest update containing resource specific data, category specific
data, cumulative data and error logspublic int getTenantId()
TenantInformationgetTenantId in interface TenantInformationpublic void setTenantId(int i)
TenantInformationsetTenantId in interface TenantInformationi - tenantId of the observerCopyright © 2019 WSO2. All rights reserved.