| Constructor and Description |
|---|
EngineImpl(IRegistry registry,
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() |
protected Object |
getPolicyConfig(IPolicy policyImpl,
io.apiman.gateway.engine.beans.Policy policy)
Gets the policy config object for the given policy.
|
IPolicyFactory |
getPolicyFactory() |
IRegistry |
getRegistry() |
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 |
setPolicyFactory(IPolicyFactory policyFactory) |
void |
setRegistry(IRegistry registry) |
void |
unregisterApplication(String organizationId,
String applicationId,
String version)
Removes an
Application from the registry. |
public EngineImpl(IRegistry registry, IComponentRegistry componentRegistry, IConnectorFactory connectorFactory, IPolicyFactory policyFactory)
registry - 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.public 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)protected Object getPolicyConfig(IPolicy policyImpl, io.apiman.gateway.engine.beans.Policy policy)
policyImpl - policy - 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 setCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.