public class DefaultApiTrackingService extends Object implements ApiTrackingService
| Constructor and Description |
|---|
DefaultApiTrackingService(ApiService apiService,
PolicySetDeploymentService policySetDeploymentService,
ApiConfigurationCache apiConfigurationCache,
ContractSnapshots contractSnapshots,
com.mulesoft.mule.runtime.gw.api.service.ContractService contractService,
com.mulesoft.mule.runtime.gw.api.config.OnApiDeletedConfiguration onApiDeletedConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
apiTracked(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
TrackingInfo trackingInfo,
PolicySet policySet,
List<com.mulesoft.mule.runtime.gw.api.contract.Sla> slas)
Indicates that an API was successfully tracked against API Platform
|
void |
apiTrackingFailed(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Indicates that there was an error while trying to track an API against API Platform
|
void |
apiUntracked(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Indicates that an API does not exist in API Platform
|
void |
clientsPolling(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
List<PlatformContractAdapter> contracts,
String contractsEntityTag)
Indicates that a successful polling of API's clients happened
|
List<Api> |
getFailedTrackingApis()
Returns the deployed APIs in this runtime that are not still tracked because there was a previous error while doing it.
|
List<Api> |
getTrackedApis()
Returns the deployed APIs in this runtime that were successfully tracked
|
List<Api> |
getTrackedApisRequiringContracts()
Returns the deployed APIs in this runtime that were successfully tracked and requires
Contracts to be fetched |
public DefaultApiTrackingService(ApiService apiService, PolicySetDeploymentService policySetDeploymentService, ApiConfigurationCache apiConfigurationCache, ContractSnapshots contractSnapshots, com.mulesoft.mule.runtime.gw.api.service.ContractService contractService, com.mulesoft.mule.runtime.gw.api.config.OnApiDeletedConfiguration onApiDeletedConfiguration)
public void apiTracked(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, TrackingInfo trackingInfo, PolicySet policySet, List<com.mulesoft.mule.runtime.gw.api.contract.Sla> slas)
ApiTrackingServiceapiTracked in interface ApiTrackingServiceapiKey - the key of the APItrackingInfo - the tracking information containing API datapolicySet - the policy set present in the response of the polling processslas - the collection of tiers present in the response of the polling processpublic void apiUntracked(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
ApiTrackingServiceapiUntracked in interface ApiTrackingServiceapiKey - the key of the API deployed in the runtimepublic void apiTrackingFailed(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
ApiTrackingServiceapiTrackingFailed in interface ApiTrackingServiceapiKey - the key of the APIpublic List<Api> getTrackedApis()
ApiTrackingServicegetTrackedApis in interface ApiTrackingServicepublic List<Api> getFailedTrackingApis()
ApiTrackingServicegetFailedTrackingApis in interface ApiTrackingServicepublic List<Api> getTrackedApisRequiringContracts()
ApiTrackingServiceContracts to be fetchedgetTrackedApisRequiringContracts in interface ApiTrackingServiceContracts or empty if there are nonepublic void clientsPolling(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, List<PlatformContractAdapter> contracts, String contractsEntityTag)
ApiTrackingServiceclientsPolling in interface ApiTrackingServiceapiKey - the key of the APIcontracts - the new polled contractsCopyright © 2014–2025 MuleSoft, Inc.. All rights reserved.