org.gcube.textextraction
Class TextExtractionJobController

java.lang.Object
  extended by org.gcube.textextraction.TextExtractionJobController

public class TextExtractionJobController
extends java.lang.Object

OpenSearchService implements the functionality needed to query a collection using the OpenSearchOp OpenSearch operator Each TextExtractionJobControllerResource of this stateful service associates a collection with an OpenSearch provider, which is described by an OpenSearchResource generic resource. While querying, all generic resources and description documents retrieved are stored in a cache contained in each TextExtractionJobControllerResource The cache can be refreshed either on demand or periodically, or both ways to allow the service to update its state in the event of generic resource update or modifications in the description documents of providers. The cache purging time interval as well as whether the service should clear the cache on startup are configurable parameters

Version:
1.2
Author:
Vassilis Verroios, NKUA, gerasimos.farantatos, NKUA

Constructor Summary
TextExtractionJobController()
          Constructor - sets up some variables and creates a logging instance
 
Method Summary
 CancelResponse cancel(Cancel cancel)
          Performs a query on the OpenSearch provider associated with the WS resource used and described by the corresponding generic resource
static void ready()
           
 StartResponse start(Start start)
          Performs a query on the OpenSearch provider associated with the WS resource used and described by the corresponding generic resource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextExtractionJobController

public TextExtractionJobController()
                            throws java.rmi.RemoteException
Constructor - sets up some variables and creates a logging instance

Throws:
java.rmi.RemoteException
Method Detail

start

public StartResponse start(Start start)
                    throws java.rmi.RemoteException
Performs a query on the OpenSearch provider associated with the WS resource used and described by the corresponding generic resource

Parameters:
queryString - String - the query to be performed (using the query syntax of the OpenSearch operator - space separated <(URLEncodedParameterNamespace|config):parameterName> strings)
Returns:
String - representation of the EPR for a resultset service which holds the results of the query.
Throws:
java.rmi.RemoteException - In case of error

cancel

public CancelResponse cancel(Cancel cancel)
                      throws java.rmi.RemoteException
Performs a query on the OpenSearch provider associated with the WS resource used and described by the corresponding generic resource

Parameters:
queryString - String - the query to be performed (using the query syntax of the OpenSearch operator - space separated <(URLEncodedParameterNamespace|config):parameterName> strings)
Returns:
String - representation of the EPR for a resultset service which holds the results of the query.
Throws:
java.rmi.RemoteException - In case of error

ready

public static void ready()