public abstract class AbstractTransactionalAlgorithmRepository extends Object implements ListenableTransactionalAlgorithmRepository
ListenableTransactionalAlgorithmRepository.| Constructor and Description |
|---|
AbstractTransactionalAlgorithmRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TransactionalAlgorithmRepositoryListener listener)
Adds a listener to this repository.
|
boolean |
containsAlgorithm(org.n52.shetland.ogc.ows.OwsCode id) |
protected abstract IAlgorithm |
createAlgorithm(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
Create the algorithm from the
ApplicationPackage. |
protected abstract TypedProcessDescription |
createProcessDescription(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
Create the typed process description from the
ApplicationPackage. |
Optional<IAlgorithm> |
getAlgorithm(org.n52.shetland.ogc.ows.OwsCode id) |
Set<org.n52.shetland.ogc.ows.OwsCode> |
getAlgorithmNames() |
Optional<org.n52.shetland.ogc.wps.ap.ApplicationPackage> |
getApplicationPackage(org.n52.shetland.ogc.ows.OwsCode id)
Get the
ApplicationPackage with the specified id. |
Optional<TypedProcessDescription> |
getProcessDescription(org.n52.shetland.ogc.ows.OwsCode id) |
org.n52.shetland.ogc.ows.OwsCode |
register(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
Registers the
ApplicationPackage in this repository. |
void |
removeListener(TransactionalAlgorithmRepositoryListener listener)
Removes the listener from this repository.
|
void |
unregister(org.n52.shetland.ogc.ows.OwsCode id)
Unregisters the
ApplicationPackage with the specified id. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationPackage, isSupported, unregistercontainsAlgorithm, destroy, getAlgorithm, getProcessDescription, initpublic AbstractTransactionalAlgorithmRepository()
public void addListener(TransactionalAlgorithmRepositoryListener listener)
ListenableTransactionalAlgorithmRepositoryaddListener in interface ListenableTransactionalAlgorithmRepositorylistener - The listenerpublic void removeListener(TransactionalAlgorithmRepositoryListener listener)
ListenableTransactionalAlgorithmRepositoryremoveListener in interface ListenableTransactionalAlgorithmRepositorylistener - The TransactionalAlgorithmRepositoryListenerpublic Set<org.n52.shetland.ogc.ows.OwsCode> getAlgorithmNames()
getAlgorithmNames in interface AlgorithmRepositorypublic Optional<TypedProcessDescription> getProcessDescription(org.n52.shetland.ogc.ows.OwsCode id)
getProcessDescription in interface AlgorithmRepositorygetProcessDescription in interface TransactionalAlgorithmRepositorypublic boolean containsAlgorithm(org.n52.shetland.ogc.ows.OwsCode id)
containsAlgorithm in interface AlgorithmRepositorycontainsAlgorithm in interface TransactionalAlgorithmRepositorypublic Optional<IAlgorithm> getAlgorithm(org.n52.shetland.ogc.ows.OwsCode id)
getAlgorithm in interface AlgorithmRepositorypublic Optional<org.n52.shetland.ogc.wps.ap.ApplicationPackage> getApplicationPackage(org.n52.shetland.ogc.ows.OwsCode id)
TransactionalAlgorithmRepositoryApplicationPackage with the specified id.getApplicationPackage in interface TransactionalAlgorithmRepositoryid - The identifier of the ApplicationPackage.ApplicationPackage or Optional.empty() if the identifier is unknown.public org.n52.shetland.ogc.ows.OwsCode register(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
throws DuplicateProcessException,
UnsupportedProcessException
TransactionalAlgorithmRepositoryApplicationPackage in this repository.register in interface TransactionalAlgorithmRepositoryapplicationPackage - The ApplicationPackage.ApplicationPackage.DuplicateProcessException - If the identifier of the ApplicationPackage already exists within
this repository.UnsupportedProcessException - If The ApplicationPackage is not supported.TransactionalAlgorithmRepository.isSupported(ApplicationPackage)public void unregister(org.n52.shetland.ogc.ows.OwsCode id)
throws ProcessNotFoundException,
UndeletableProcessException
TransactionalAlgorithmRepositoryApplicationPackage with the specified id.unregister in interface TransactionalAlgorithmRepositoryid - The identifier of the ApplicationPackageProcessNotFoundException - If the id is not associated with an registered ApplicationPackage.UndeletableProcessException - If the ApplicationPackage cannot be deleted.protected abstract IAlgorithm createAlgorithm(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
ApplicationPackage.applicationPackage - The ApplicationPackageprotected abstract TypedProcessDescription createProcessDescription(org.n52.shetland.ogc.wps.ap.ApplicationPackage applicationPackage)
ApplicationPackage.applicationPackage - The ApplicationPackageCopyright © 2016–2021 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.