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> |
findById(String policyId)
Looks for a policy through the existing deployments
|
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
|
boolean |
policyHasDeployments(String policyId)
Whether a policy has existing deployments or not
|
void |
policyRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
String policyId)
Removes the deployment status of the specified policy
|
Optional<PolicyDeploymentStatus> |
policyStatus(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
String policyId)
Gets 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 policyId)
apiKey - the api owner of the policypolicyId - id 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 statusOptional<PolicyDeploymentStatus> policyStatus(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, String policyId)
apiKey - the api owner of the policypolicyId - the id of the policyList<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> findById(String policyId)
policyId - id of the policy to look forboolean policyHasDeployments(String policyId)
policyId - the policy idCopyright © 2014–2025 MuleSoft, Inc.. All rights reserved.