public interface IEngine
| Modifier and Type | Method and Description |
|---|---|
IServiceRequestExecutor |
executor(io.apiman.gateway.engine.beans.ServiceRequest request,
IAsyncResultHandler<IEngineResult> resultHandler)
Executes an asynchronous request for a managed service, with the provided
handler being passed an
EngineResultImpl with the status and result
of the policy chain invocation. |
String |
getVersion() |
void |
publishService(io.apiman.gateway.engine.beans.Service service)
Publishes a new
Service. |
void |
registerApplication(io.apiman.gateway.engine.beans.Application application)
Registers a new
Application. |
void |
retireService(String organizationId,
String serviceId,
String version)
Retires (removes) a
Service from the registry. |
void |
unregisterApplication(String organizationId,
String applicationId,
String version)
Removes an
Application from the registry. |
String getVersion()
IServiceRequestExecutor executor(io.apiman.gateway.engine.beans.ServiceRequest request, IAsyncResultHandler<IEngineResult> resultHandler)
EngineResultImpl with the status and result
of the policy chain invocation.request - a request for a managed servicehandler - an async handler called when a response is returned or an
exception is captured.void publishService(io.apiman.gateway.engine.beans.Service service)
throws io.apiman.gateway.engine.beans.exceptions.PublishingException
Service.service - the service being publishedio.apiman.gateway.engine.beans.exceptions.PublishingExceptionvoid retireService(String organizationId, String serviceId, String version) throws io.apiman.gateway.engine.beans.exceptions.PublishingException
Service from the registry.organizationId - serviceId - version - io.apiman.gateway.engine.beans.exceptions.PublishingExceptionvoid registerApplication(io.apiman.gateway.engine.beans.Application application)
throws io.apiman.gateway.engine.beans.exceptions.RegistrationException
Application. An application is ultimately a collection of
contracts to managed services.application - the application being registeredio.apiman.gateway.engine.beans.exceptions.PublishingExceptionio.apiman.gateway.engine.beans.exceptions.RegistrationExceptionvoid unregisterApplication(String organizationId, String applicationId, String version) throws io.apiman.gateway.engine.beans.exceptions.RegistrationException
Application from the registry.organizationId - applicationId - version - io.apiman.gateway.engine.beans.exceptions.RegistrationExceptionCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.