@Component public class TransactionalAlgorithmRegistryImpl extends Object implements TransactionalAlgorithmConfiguration, TransactionalAlgorithmRegistry, org.n52.janmayen.lifecycle.Constructable, org.n52.janmayen.lifecycle.Destroyable
| Constructor and Description |
|---|
TransactionalAlgorithmRegistryImpl(Engine engine,
ResourceAlgorithmProviderFactory resourceAlgorithmProviderFactory) |
| Modifier and Type | Method and Description |
|---|---|
TransactionalAlgorithmConfiguration |
addAlgorithmFromResource(String resource,
boolean deletable) |
TransactionalAlgorithmConfiguration |
addListener(TransactionalAlgorithmRepositoryListener listener) |
void |
destroy() |
void |
init() |
org.n52.shetland.ogc.ows.OwsCode |
register(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
Adds a new process to this service.
|
void |
setConfigurers(Set<TransactionalAlgorithmConfigurer> configurers)
Set the configurers.
|
void |
setListeners(Set<TransactionalAlgorithmRepositoryListener> listeners)
The listeners to register.
|
void |
setRepositories(Set<TransactionalAlgorithmRepository> repositories)
Set the transactional algorithm repositories.
|
void |
unregister(org.n52.shetland.ogc.ows.OwsCode id)
Deletes the process with the specified id.
|
void |
update(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
Updates the process specified in the
ApplicationPackage. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAlgorithmFromResourceunregister, unregister@Autowired public TransactionalAlgorithmRegistryImpl(Engine engine, ResourceAlgorithmProviderFactory resourceAlgorithmProviderFactory)
@Autowired(required=false) public void setListeners(Set<TransactionalAlgorithmRepositoryListener> listeners)
listeners - The listeners@Autowired(required=false) public void setRepositories(Set<TransactionalAlgorithmRepository> repositories)
repositories - The transactional algorithm repositories.@Autowired(required=false) public void setConfigurers(Set<TransactionalAlgorithmConfigurer> configurers)
configurers - The configurers.public TransactionalAlgorithmConfiguration addAlgorithmFromResource(String resource, boolean deletable)
addAlgorithmFromResource in interface TransactionalAlgorithmConfigurationpublic TransactionalAlgorithmConfiguration addListener(TransactionalAlgorithmRepositoryListener listener)
addListener in interface TransactionalAlgorithmConfigurationpublic void init()
init in interface org.n52.janmayen.lifecycle.Constructablepublic void destroy()
destroy in interface org.n52.janmayen.lifecycle.Destroyablepublic void update(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
throws UndeletableProcessException,
ProcessNotFoundException,
UnsupportedProcessException
TransactionalAlgorithmRegistryApplicationPackage.update in interface TransactionalAlgorithmRegistryapplicationPackage - The description of the new process, a ApplicationPackageUndeletableProcessException - If the process cannot be updated.ProcessNotFoundException - If the process could not be found.UnsupportedProcessException - If the process is not supported.public void unregister(org.n52.shetland.ogc.ows.OwsCode id)
throws ProcessNotFoundException,
UndeletableProcessException
TransactionalAlgorithmRegistryunregister in interface TransactionalAlgorithmRegistryid - The identifier of the process.ProcessNotFoundException - If the process could not be found.UndeletableProcessException - If the process is not deletable.public org.n52.shetland.ogc.ows.OwsCode register(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
throws DuplicateProcessException,
UnsupportedProcessException
TransactionalAlgorithmRegistryregister in interface TransactionalAlgorithmRegistryapplicationPackage - The description of the new process, a ApplicationPackage.DuplicateProcessException - If a process with the same identifier already exists.UnsupportedProcessException - If the process is not supported.Copyright © 2016–2021 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.