public class DefaultPolicyDeploymentTracker extends Object implements PolicyDeploymentTracker
| Constructor and Description |
|---|
DefaultPolicyDeploymentTracker() |
| 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
|
public List<PolicyDefinition> apiRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
PolicyDeploymentTrackerapiRemoved in interface PolicyDeploymentTrackerapiKey - apipublic void addPolicyDeploymentListener(PolicyDeploymentListener listener)
addPolicyDeploymentListener in interface PolicyDeploymentTrackerpublic void policyRemoved(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, String policyId)
PolicyDeploymentTrackerpolicyRemoved in interface PolicyDeploymentTrackerapiKey - the api owner of the policypolicyId - id of the policy that was removedpublic void policyDeployed(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, PolicyDeploymentStatus policyDeploymentStatus)
PolicyDeploymentTrackerpolicyDeployed in interface PolicyDeploymentTrackerapiKey - the api owner of the policypolicyDeploymentStatus - the deployment statuspublic Optional<PolicyDeploymentStatus> policyStatus(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, String policyId)
PolicyDeploymentTrackerpolicyStatus in interface PolicyDeploymentTrackerapiKey - the api owner of the policypolicyId - the id of the policypublic List<PolicyDeploymentStatus> onlinePolicyStatuses(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
PolicyDeploymentTrackeronlinePolicyStatuses in interface PolicyDeploymentTrackerapiKey - the api of the policies to returnpublic List<PolicyDeploymentStatus> policyStatuses(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
PolicyDeploymentTrackerpolicyStatuses in interface PolicyDeploymentTrackerapiKey - the api of the policies to returnpublic Optional<PolicyDefinition> findById(String policyId)
PolicyDeploymentTrackerfindById in interface PolicyDeploymentTrackerpolicyId - id of the policy to look forpublic boolean policyHasDeployments(String policyId)
PolicyDeploymentTrackerpolicyHasDeployments in interface PolicyDeploymentTrackerpolicyId - the policy idCopyright © 2014–2025 MuleSoft, Inc.. All rights reserved.