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.Response
reindex(Class<?> entityClass)
Asynchronously Reindex elasticsearch index for given entity classResponse
reindexAsynchronously(Class<?> entityClass)
Response
reindexSynchronously(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:ElasticSearchWebService
Asynchronously Reindex elasticsearch index for given entity class- Specified by:
reindex
in interfaceElasticSearchWebService
- Parameters:
entityClass
- Class for which to do re indexing.- Returns:
- Response.
-
indexedClasses
public List<Class<?>> indexedClasses()
Description copied from interface:ElasticSearchWebService
Retrieve list of indexed classes.- Specified by:
indexedClasses
in interfaceElasticSearchWebService
- Returns:
- List of indexed classes.
-
reindexSynchronously
public Response reindexSynchronously(Class<?> entityClass)
Description copied from interface:ElasticSearchWebService
Synchronously Reindex elasticsearch index for given entity class- Specified by:
reindexSynchronously
in interfaceElasticSearchWebService
- Parameters:
entityClass
- Class for which to do re indexing.- Returns:
- Response.
-
reindexAsynchronously
public Response reindexAsynchronously(Class<?> entityClass)
- Specified by:
reindexAsynchronously
in interfaceElasticSearchWebService
-
-