org.gcube.opensearch.opensearchdatasource
Class OpenSearchDataSourceFactory
java.lang.Object
org.gcube.common.core.porttypes.GCUBEPortType
org.gcube.opensearch.opensearchdatasource.OpenSearchDataSourceFactory
- All Implemented Interfaces:
- javax.xml.rpc.server.ServiceLifecycle
public class OpenSearchDataSourceFactory
- extends org.gcube.common.core.porttypes.GCUBEPortType
OpenSearchDataSourceFactory creates OpenSearchDatasourceResource instances and returns
references to the created objects.
- Author:
- gerasimos.farantatos, NKUA
| Fields inherited from class org.gcube.common.core.porttypes.GCUBEPortType |
initialized |
|
Method Summary |
org.gcube.opensearch.opensearchdatasource.stubs.CreateResourceResponse |
createResource(org.gcube.opensearch.opensearchdatasource.stubs.CreateResourceParams request)
Creates an instance of the OpenSearchDataSourceResource class and returns a reference to it |
protected org.gcube.common.core.contexts.GCUBEServiceContext |
getServiceContext()
|
| Methods inherited from class org.gcube.common.core.porttypes.GCUBEPortType |
destroy, init, onFailure, onInitialisation, onReady, onStateChange, onUpdate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenSearchDataSourceFactory
public OpenSearchDataSourceFactory()
createResource
public org.gcube.opensearch.opensearchdatasource.stubs.CreateResourceResponse createResource(org.gcube.opensearch.opensearchdatasource.stubs.CreateResourceParams request)
throws org.gcube.common.core.faults.GCUBEFault
- Creates an instance of the OpenSearchDataSourceResource class and returns a reference to it
- Parameters:
request - CreateResource - Object containing the set of searchable and presentable fields to be published and the set of OpenSearch
and a set of OpenSearch providers that will be handled by the DataSource. Each provider is tied to a collection id, a generic resource id and
possibly some fixed parameters that will be used while querying the first-level broker OpenSearch provider
- Returns:
CreateResourceResponse - object containing the epr of the created OpenSearchDataSourceResource instance. The created resource will expose
a number of query templates which can be used to query an OpenSearch Provider
- Throws:
org.gcube.common.core.faults.GCUBEFault - In case of error- See Also:
org.gcube.opensearch.opensearchserice.stubs.OpenSearchDataSourceFactoryPortType}
getServiceContext
protected org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
- Specified by:
getServiceContext in class org.gcube.common.core.porttypes.GCUBEPortType
Copyright © 2013. All Rights Reserved.