Class URILoadingRegistry
- java.lang.Object
-
- io.apiman.gateway.engine.impl.InMemoryRegistry
-
- io.apiman.gateway.engine.vertx.polling.URILoadingRegistry
-
- All Implemented Interfaces:
AsyncInitialize,IRegistry
public class URILoadingRegistry extends InMemoryRegistry implements AsyncInitialize
URI loading registry that pulls configuration from a specified JSON file.- configUri: apiman policy config to load from JSON via file
(
FileResourceFetcher) or HTTP/S (HttpResourceFetcher). See the corresponding fetcher for additional options.
- Author:
- Marc Savy <marc@rhymewithgravy.com>
- See Also:
FileResourceFetcher,HttpResourceFetcher
-
-
Constructor Summary
Constructors Constructor Description URILoadingRegistry(io.vertx.core.Vertx vertx, IEngineConfig vxConfig, Map<String,String> options)URILoadingRegistry(Map<String,String> options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(IAsyncResultHandler<Void> resultHandler)voidpublishApi(Api api, IAsyncResultHandler<Void> handler)protected voidpublishApiInternal(Api api, IAsyncResultHandler<Void> handler)voidregisterClient(Client client, IAsyncResultHandler<Void> handler)protected voidregisterClientInternal(Client client, IAsyncResultHandler<Void> handler)static voidreloadData(IAsyncHandler<Void> doneHandler)static voidreset()voidretireApi(Api api, IAsyncResultHandler<Void> handler)voidunregisterClient(Client client, IAsyncResultHandler<Void> handler)-
Methods inherited from class io.apiman.gateway.engine.impl.InMemoryRegistry
getApi, getApiIndex, getClient, getClient, getClientIndex, getClientInternal, getContract, getMap, listApis, listApiVersions, listClients, listClientVersions, listOrgs, unregisterClientInternal
-
-
-
-
Method Detail
-
initialize
public void initialize(IAsyncResultHandler<Void> resultHandler)
- Specified by:
initializein interfaceAsyncInitialize
-
reloadData
public static void reloadData(IAsyncHandler<Void> doneHandler)
-
reset
public static void reset()
-
publishApi
public void publishApi(Api api, IAsyncResultHandler<Void> handler)
- Specified by:
publishApiin interfaceIRegistry- Overrides:
publishApiin classInMemoryRegistry
-
retireApi
public void retireApi(Api api, IAsyncResultHandler<Void> handler)
- Specified by:
retireApiin interfaceIRegistry- Overrides:
retireApiin classInMemoryRegistry
-
registerClient
public void registerClient(Client client, IAsyncResultHandler<Void> handler)
- Specified by:
registerClientin interfaceIRegistry- Overrides:
registerClientin classInMemoryRegistry
-
unregisterClient
public void unregisterClient(Client client, IAsyncResultHandler<Void> handler)
- Specified by:
unregisterClientin interfaceIRegistry- Overrides:
unregisterClientin classInMemoryRegistry
-
publishApiInternal
protected void publishApiInternal(Api api, IAsyncResultHandler<Void> handler)
-
registerClientInternal
protected void registerClientInternal(Client client, IAsyncResultHandler<Void> handler)
-
-