public interface IRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
getContract(io.apiman.gateway.engine.beans.ServiceRequest request,
IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
Gets the
Contract to use based on information included in the inbound
service request. |
void |
getService(String organizationId,
String serviceId,
String serviceVersion,
IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
Gets a service by its service coordinates.
|
void |
publishService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Publishes a new
Service into the registry. |
void |
registerApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Registers a new
Application with the registry. |
void |
retireService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Retires (removes) a
Service from the registry. |
void |
unregisterApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Removes an
Application from the registry. |
void getContract(io.apiman.gateway.engine.beans.ServiceRequest request,
IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
Contract to use based on information included in the inbound
service request.request - an inbound service requesthandler - the result handlerio.apiman.gateway.engine.beans.exceptions.InvalidContractException - when contract is invalidvoid publishService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Service into the registry.service - the service being publishedhandler - the result handlerio.apiman.gateway.engine.beans.exceptions.PublishingException - when unable to publish servicevoid retireService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Service from the registry.service - the servicehandler - the result handlerio.apiman.gateway.engine.beans.exceptions.PublishingException - when unable to retire servicevoid registerApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Application with the registry.application - the application being registeredhandler - the result handlerio.apiman.gateway.engine.beans.exceptions.RegistrationException - when unable to register entityvoid unregisterApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Application from the registry.application - the application to removehandler - the result handlerio.apiman.gateway.engine.beans.exceptions.RegistrationException - when unable to register entityvoid getService(String organizationId, String serviceId, String serviceVersion, IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
organizationId - the org idserviceId - the service idserviceVersion - the service versionhandler - the result handlerCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.