| Constructor and Description |
|---|
EngineImpl(IRegistry registry,
IPluginRegistry pluginRegistry,
IComponentRegistry componentRegistry,
IConnectorFactory connectorFactory,
IPolicyFactory policyFactory)
Constructor.
|
| 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. |
IComponentRegistry |
getComponentRegistry() |
IConnectorFactory |
getConnectorFactory() |
IPluginRegistry |
getPluginRegistry() |
IPolicyFactory |
getPolicyFactory() |
IRegistry |
getRegistry() |
protected io.apiman.gateway.engine.beans.Service |
getService(String serviceOrgId,
String serviceId,
String serviceVersion)
Gets a published service by its service coordinates.
|
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 |
setComponentRegistry(IComponentRegistry componentRegistry) |
void |
setConnectorFactory(IConnectorFactory connectorFactory) |
void |
setPluginRegistry(IPluginRegistry pluginRegistry) |
void |
setPolicyFactory(IPolicyFactory policyFactory) |
void |
setRegistry(IRegistry registry) |
void |
unregisterApplication(String organizationId,
String applicationId,
String version)
Removes an
Application from the registry. |
protected void |
validateRequest(io.apiman.gateway.engine.beans.ServiceRequest request)
Validates that the contract being used for the request is valid against the
service information included in the request.
|
public EngineImpl(IRegistry registry, IPluginRegistry pluginRegistry, IComponentRegistry componentRegistry, IConnectorFactory connectorFactory, IPolicyFactory policyFactory)
registry - pluginRegistry - componentRegistry - connectorFactory - policyFactory - public String getVersion()
getVersion in interface IEngineIEngine.getVersion()public IServiceRequestExecutor executor(io.apiman.gateway.engine.beans.ServiceRequest request, IAsyncResultHandler<IEngineResult> resultHandler)
IEngineEngineResultImpl with the status and result
of the policy chain invocation.protected io.apiman.gateway.engine.beans.Service getService(String serviceOrgId, String serviceId, String serviceVersion)
serviceOrgId - serviceId - serviceVersion - protected void validateRequest(io.apiman.gateway.engine.beans.ServiceRequest request)
throws io.apiman.gateway.engine.beans.exceptions.InvalidContractException
request - io.apiman.gateway.engine.beans.exceptions.InvalidContractExceptionpublic void publishService(io.apiman.gateway.engine.beans.Service service)
throws io.apiman.gateway.engine.beans.exceptions.PublishingException
IEngineService.publishService in interface IEngineservice - the service being publishedio.apiman.gateway.engine.beans.exceptions.PublishingExceptionIEngine.publishService(io.apiman.gateway.engine.beans.Service)public void retireService(String organizationId, String serviceId, String version) throws io.apiman.gateway.engine.beans.exceptions.PublishingException
IEngineService from the registry.retireService in interface IEngineio.apiman.gateway.engine.beans.exceptions.PublishingExceptionIEngine.retireService(java.lang.String, java.lang.String, java.lang.String)public void registerApplication(io.apiman.gateway.engine.beans.Application application)
throws io.apiman.gateway.engine.beans.exceptions.RegistrationException
IEngineApplication. An application is ultimately a collection of
contracts to managed services.registerApplication in interface IEngineapplication - the application being registeredio.apiman.gateway.engine.beans.exceptions.RegistrationExceptionIEngine.registerApplication(io.apiman.gateway.engine.beans.Application)public void unregisterApplication(String organizationId, String applicationId, String version) throws io.apiman.gateway.engine.beans.exceptions.RegistrationException
IEngineApplication from the registry.unregisterApplication in interface IEngineio.apiman.gateway.engine.beans.exceptions.RegistrationExceptionIEngine.unregisterApplication(java.lang.String, java.lang.String, java.lang.String)public IRegistry getRegistry()
public void setRegistry(IRegistry registry)
registry - the registry to setpublic IConnectorFactory getConnectorFactory()
public void setConnectorFactory(IConnectorFactory connectorFactory)
connectorFactory - the connectorFactory to setpublic IPolicyFactory getPolicyFactory()
public void setPolicyFactory(IPolicyFactory policyFactory)
policyFactory - the policyFactory to setpublic IComponentRegistry getComponentRegistry()
public void setComponentRegistry(IComponentRegistry componentRegistry)
componentRegistry - the componentRegistry to setpublic IPluginRegistry getPluginRegistry()
public void setPluginRegistry(IPluginRegistry pluginRegistry)
pluginRegistry - the pluginRegistry to setCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.