Package org.openiam.srvc.search
Class ElasticSearchWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.search.ElasticSearchWebServiceImpl
-
- All Implemented Interfaces:
ElasticSearchWebService
@Service("elasticSearchWS") public class ElasticSearchWebServiceImpl extends AbstractApiService implements ElasticSearchWebService
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchWebServiceImpl(EsReindexQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Class<?>>indexedClasses()Retrieve list of indexed classes.Responsereindex(Class<?> entityClass)Asynchronously Reindex elasticsearch index for given entity classResponsereindexAsynchronously(Class<?> entityClass)ResponsereindexSynchronously(Class<?> entityClass)Synchronously Reindex elasticsearch index for given entity class-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
ElasticSearchWebServiceImpl
@Autowired public ElasticSearchWebServiceImpl(EsReindexQueue queue)
-
-
Method Detail
-
reindex
public Response reindex(Class<?> entityClass)
Description copied from interface:ElasticSearchWebServiceAsynchronously Reindex elasticsearch index for given entity class- Specified by:
reindexin interfaceElasticSearchWebService- Parameters:
entityClass- Class for which to do re indexing.- Returns:
- Response.
-
indexedClasses
public List<Class<?>> indexedClasses()
Description copied from interface:ElasticSearchWebServiceRetrieve list of indexed classes.- Specified by:
indexedClassesin interfaceElasticSearchWebService- Returns:
- List of indexed classes.
-
reindexSynchronously
public Response reindexSynchronously(Class<?> entityClass)
Description copied from interface:ElasticSearchWebServiceSynchronously Reindex elasticsearch index for given entity class- Specified by:
reindexSynchronouslyin interfaceElasticSearchWebService- Parameters:
entityClass- Class for which to do re indexing.- Returns:
- Response.
-
reindexAsynchronously
public Response reindexAsynchronously(Class<?> entityClass)
- Specified by:
reindexAsynchronouslyin interfaceElasticSearchWebService
-
-