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> |
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
|
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 policyName)
PolicyDeploymentTrackerpolicyRemoved in interface PolicyDeploymentTrackerapiKey - the api owner of the policypolicyName - name 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 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> findByName(String policyName)
PolicyDeploymentTrackerfindByName in interface PolicyDeploymentTrackerpolicyName - name of the policy to look forpublic boolean hasDeployments(String policyName)
PolicyDeploymentTrackerhasDeployments in interface PolicyDeploymentTrackerpolicyName - the policy nameCopyright © 2014–2022 MuleSoft, Inc.. All rights reserved.