public class ESRegistry extends AbstractESComponent implements io.apiman.gateway.engine.IRegistry
| Constructor and Description |
|---|
ESRegistry(Map<String,String> config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkService(io.apiman.gateway.engine.beans.ServiceContract contract,
io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
Ensure that the service still exists.
|
void |
getContract(io.apiman.gateway.engine.beans.ServiceRequest request,
io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler) |
protected String |
getIndexName()
Gets the configured index name.
|
protected void |
getService(String id,
io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
Asynchronously gets a service.
|
void |
getService(String organizationId,
String serviceId,
String serviceVersion,
io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler) |
void |
publishService(io.apiman.gateway.engine.beans.Service service,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler) |
void |
registerApplication(io.apiman.gateway.engine.beans.Application application,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler) |
void |
retireService(io.apiman.gateway.engine.beans.Service service,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler) |
void |
unregisterApplication(io.apiman.gateway.engine.beans.Application application,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler) |
protected void |
unregisterServiceContracts(io.apiman.gateway.engine.beans.Application application,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler)
Removes all of the service contracts from ES.
|
getClientpublic void publishService(io.apiman.gateway.engine.beans.Service service,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler)
publishService in interface io.apiman.gateway.engine.IRegistryIRegistry.publishService(io.apiman.gateway.engine.beans.Service, io.apiman.gateway.engine.async.IAsyncResultHandler)public void retireService(io.apiman.gateway.engine.beans.Service service,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler)
retireService in interface io.apiman.gateway.engine.IRegistryIRegistry.retireService(io.apiman.gateway.engine.beans.Service, io.apiman.gateway.engine.async.IAsyncResultHandler)public void registerApplication(io.apiman.gateway.engine.beans.Application application,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler)
registerApplication in interface io.apiman.gateway.engine.IRegistryIRegistry.registerApplication(io.apiman.gateway.engine.beans.Application, io.apiman.gateway.engine.async.IAsyncResultHandler)public void unregisterApplication(io.apiman.gateway.engine.beans.Application application,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler)
unregisterApplication in interface io.apiman.gateway.engine.IRegistryIRegistry.unregisterApplication(io.apiman.gateway.engine.beans.Application, io.apiman.gateway.engine.async.IAsyncResultHandler)protected void unregisterServiceContracts(io.apiman.gateway.engine.beans.Application application,
io.apiman.gateway.engine.async.IAsyncResultHandler<Void> handler)
application - handler - public void getContract(io.apiman.gateway.engine.beans.ServiceRequest request,
io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
getContract in interface io.apiman.gateway.engine.IRegistryIRegistry.getContract(io.apiman.gateway.engine.beans.ServiceRequest, io.apiman.gateway.engine.async.IAsyncResultHandler)protected void checkService(io.apiman.gateway.engine.beans.ServiceContract contract,
io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
contract - handler - public void getService(String organizationId, String serviceId, String serviceVersion, io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
getService in interface io.apiman.gateway.engine.IRegistryIRegistry.getService(java.lang.String, java.lang.String, java.lang.String, io.apiman.gateway.engine.async.IAsyncResultHandler)protected void getService(String id, io.apiman.gateway.engine.async.IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
id - handler - protected String getIndexName()
AbstractESComponentgetIndexName in class AbstractESComponentAbstractESComponent.getIndexName()Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.