Package org.openiam.srvc.batch
Class BatchDataServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.batch.BatchDataServiceImpl
-
- All Implemented Interfaces:
BatchDataService
@Service("batchDataService") public class BatchDataServiceImpl extends AbstractApiService implements BatchDataService
Implementation for BatchDataService that will allow you to access and manage batch tasks.- Author:
- suneet
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description BatchDataServiceImpl(BatchTaskQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count(BatchTaskSearchBean searchBean)
Response
deleteScheduledTask(String id)
List<BatchTask>
findBeans(BatchTaskSearchBean searchBean, int from, int size)
BatchTask
getBatchTask(String taskId)
int
getNumOfSchedulesForTask(BatchTaskScheduleSearchBean searchBean)
List<BatchTaskSchedule>
getSchedulesForTask(BatchTaskScheduleSearchBean searchBean, int from, int size)
Response
removeBatchTask(String taskId)
Response
run(String id, boolean synchronous)
Response
save(BatchTask task)
Response
schedule(String id, Date when)
-
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
-
BatchDataServiceImpl
@Autowired public BatchDataServiceImpl(BatchTaskQueue queue)
-
-
Method Detail
-
save
public Response save(BatchTask task)
- Specified by:
save
in interfaceBatchDataService
-
getBatchTask
public BatchTask getBatchTask(String taskId)
- Specified by:
getBatchTask
in interfaceBatchDataService
-
removeBatchTask
public Response removeBatchTask(String taskId)
- Specified by:
removeBatchTask
in interfaceBatchDataService
-
findBeans
@Transactional(readOnly=true) public List<BatchTask> findBeans(BatchTaskSearchBean searchBean, int from, int size)
- Specified by:
findBeans
in interfaceBatchDataService
-
count
public int count(BatchTaskSearchBean searchBean)
- Specified by:
count
in interfaceBatchDataService
-
run
public Response run(String id, boolean synchronous)
- Specified by:
run
in interfaceBatchDataService
-
schedule
public Response schedule(String id, Date when)
- Specified by:
schedule
in interfaceBatchDataService
-
getSchedulesForTask
public List<BatchTaskSchedule> getSchedulesForTask(BatchTaskScheduleSearchBean searchBean, int from, int size)
- Specified by:
getSchedulesForTask
in interfaceBatchDataService
-
getNumOfSchedulesForTask
public int getNumOfSchedulesForTask(BatchTaskScheduleSearchBean searchBean)
- Specified by:
getNumOfSchedulesForTask
in interfaceBatchDataService
-
deleteScheduledTask
public Response deleteScheduledTask(String id)
- Specified by:
deleteScheduledTask
in interfaceBatchDataService
-
-