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()
StatisticCollectionViewMXBean
resetAPIStatistics
in interface StatisticCollectionViewMXBean
public void resetProxyStatistics()
StatisticCollectionViewMXBean
resetProxyStatistics
in interface StatisticCollectionViewMXBean
public void resetSequenceStatistics()
StatisticCollectionViewMXBean
resetSequenceStatistics
in interface StatisticCollectionViewMXBean
public void resetInboundEndpointStatistics()
StatisticCollectionViewMXBean
resetInboundEndpointStatistics
in interface StatisticCollectionViewMXBean
public void resetEndpointStatistics()
StatisticCollectionViewMXBean
resetEndpointStatistics
in interface StatisticCollectionViewMXBean
public void resetAllStatistics()
StatisticCollectionViewMXBean
resetAllStatistics
in interface StatisticCollectionViewMXBean
public StatisticsCompositeObject getProxyServiceJmxStatistics(String proxyName)
StatisticCollectionViewMXBean
getProxyServiceJmxStatistics
in interface StatisticCollectionViewMXBean
proxyName
- Name of the proxy service.public StatisticsCompositeObject getSequenceJmxStatistics(String sequenceName)
StatisticCollectionViewMXBean
getSequenceJmxStatistics
in interface StatisticCollectionViewMXBean
sequenceName
- Name of the Sequence.public StatisticsCompositeObject getApiJmxStatistics(String apiName)
StatisticCollectionViewMXBean
getApiJmxStatistics
in interface StatisticCollectionViewMXBean
apiName
- Name of the API.public StatisticsCompositeObject getInboundEndpointJmxStatistics(String inboundEndpointName)
StatisticCollectionViewMXBean
getInboundEndpointJmxStatistics
in interface StatisticCollectionViewMXBean
inboundEndpointName
- Name of the Inbound Endpoint.public StatisticsCompositeObject getEndpointJmxStatistics(String endpointName)
StatisticCollectionViewMXBean
getEndpointJmxStatistics
in interface StatisticCollectionViewMXBean
endpointName
- Name of the Endpoint.public void destroy()
MessageFlowObserver
destroy
in interface MessageFlowObserver
public void updateStatistics(org.apache.synapse.aspects.flow.statistics.publishing.PublishingFlow snapshot)
MessageFlowObserver
updateStatistics
in interface MessageFlowObserver
snapshot
- Current latest update containing resource specific data, category specific
data, cumulative data and error logspublic int getTenantId()
TenantInformation
getTenantId
in interface TenantInformation
public void setTenantId(int i)
TenantInformation
setTenantId
in interface TenantInformation
i
- tenantId of the observerCopyright © 2018 WSO2. All rights reserved.