public class PublisherUtils extends Object
| Constructor and Description |
|---|
PublisherUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createAsynDataPublisher()
Creates an async data publisher using the existing data publisher object
|
static void |
createDataPublisher() |
static void |
defineUsageEventStream() |
static org.wso2.carbon.utils.ConfigurationContextService |
getConfigurationContextService()
method to get configurationContextService
|
static String |
getServerUrl(int tenantId) |
static void |
publish(APIManagerRequestStats statistics,
int tenantId) |
static void |
publish(BandwidthUsage usage)
this method get the event payload, construct the SOAP envelop and call the publish method in
EventBrokerService.
|
static void |
publish(org.wso2.carbon.statistics.services.util.SystemStatistics statistics,
int tenantId) |
static void |
setConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService configurationContextService)
method to setConfigurationContextService
|
static String |
updateServerName(int tenantId)
method to update server name
|
public static String updateServerName(int tenantId) throws UsageException
tenantId - tenant idUsageExceptionpublic static String getServerUrl(int tenantId)
public static void defineUsageEventStream()
throws Exception
Exceptionpublic static void createDataPublisher()
public static void createAsynDataPublisher()
public static void publish(BandwidthUsage usage) throws UsageException
usage - BandwidthUsageUsageExceptionpublic static void publish(org.wso2.carbon.statistics.services.util.SystemStatistics statistics,
int tenantId)
throws Exception
Exceptionpublic static void publish(APIManagerRequestStats statistics, int tenantId) throws Exception
statistics - APIManagerRequestStats which contains usage datatenantId - Tenant id of tenant associated with usage statException - UsageException when error in usage stat publishingpublic static org.wso2.carbon.utils.ConfigurationContextService getConfigurationContextService()
public static void setConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService configurationContextService)
configurationContextService - Copyright © 2019 WSO2. All rights reserved.