public interface PolicyDeploymentTracker
| Modifier and Type | Method and Description |
|---|---|
void |
addPolicyDeploymentListener(PolicyDeploymentListener listener) |
List<PolicyDefinition> |
apiRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Removes every deployment status of the specified api
|
Optional<PolicyDefinition> |
findByName(String policyName)
Looks for a policy through the existing deployments
|
boolean |
hasDeployments(String policyName)
Whether a policy has existing deployments or not
|
List<PolicyDeploymentStatus> |
onlinePolicyStatuses(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Returns the statuses of the online policies that are being tracked
|
void |
policyDeployed(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
PolicyDeploymentStatus policyDeploymentStatus)
Updates the deployment status of the specified policy
|
void |
policyRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
String policyName)
Removes the deployment status of the specified policy
|
List<PolicyDeploymentStatus> |
policyStatuses(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Returns the statuses of the policies that are being tracked
|
void addPolicyDeploymentListener(PolicyDeploymentListener listener)
List<PolicyDefinition> apiRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
apiKey - apivoid policyRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, String policyName)
apiKey - the api owner of the policypolicyName - name of the policy that was removedvoid policyDeployed(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, PolicyDeploymentStatus policyDeploymentStatus)
apiKey - the api owner of the policypolicyDeploymentStatus - the deployment statusList<PolicyDeploymentStatus> onlinePolicyStatuses(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
apiKey - the api of the policies to returnList<PolicyDeploymentStatus> policyStatuses(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
apiKey - the api of the policies to returnOptional<PolicyDefinition> findByName(String policyName)
policyName - name of the policy to look forboolean hasDeployments(String policyName)
policyName - the policy nameCopyright © 2014–2022 MuleSoft, Inc.. All rights reserved.