public interface MetadataService
MetadataService| Modifier and Type | Method and Description |
|---|---|
Feature<Action<Location>> |
disposeMetadataCache()
If supported by the
ToolingRuntimeClient implementation it will return a Feature
to do the dispose of Metadata cache on Mule Runtime side for the given location. |
MetadataResult<MetadataKeysContainer> |
getMetadataKeys(MetadataKeysRequest metadataKeysRequest)
Returns a
MetadataResult of MetadataKeysContainer described by MetadataKeysContainer.getKeys(String)} of the associated
MetadataKeyProvider component identified by the given MetadataKeysRequest. |
MetadataResult<MetadataKeysContainer> getMetadataKeys(MetadataKeysRequest metadataKeysRequest) throws ServiceUnavailableException
MetadataResult of MetadataKeysContainer described by MetadataKeysContainer.getKeys(String)} of the associated
MetadataKeyProvider component identified by the given MetadataKeysRequest.metadataKeysRequest - request to get the MetadataKeysContainerMetadataResult if the keys are successfully resolved Failure MetadataResult if there is an error while resolving the keys.ServiceUnavailableException - if a connection exception happens when trying to connect to Mule Agent REST API.ToolingException - if an unexpected error happens.Feature<Action<Location>> disposeMetadataCache()
ToolingRuntimeClient implementation it will return a Feature
to do the dispose of Metadata cache on Mule Runtime side for the given location.
This should be called when external changes on remote system are made and metadata has to be recalculated from scratch.
The location could be at component level or configuration, in any case all metadata resources in cache associated to the configuration referenced
by the component will be disposed.Feature to execute an Action for the location of the component to be cleared, could be a configuration or a component.
Either one or the other all the metadata cache entries associated to the configuration would be disposed.Copyright © 2019 MuleSoft, Inc.. All rights reserved.