Package overit.geocall.scheduler
Class JobsUtility
java.lang.Object
overit.geocall.scheduler.JobsUtility
Utility class used to register and retrieve the information about the jobs enqueued phase by the companies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareCompaniesRegistered(List<Company> companiesIds) Gets if the list of company passed as parameters has enqueued all their jobsbooleanisCompanyRegistered(Long companyId) Gets if a specific company has enqueued all its jobsvoidregisterCompany(Long companyId) Register that a specific company has enqueued all its jobs
-
Constructor Details
-
JobsUtility
public JobsUtility()
-
-
Method Details
-
registerCompany
Register that a specific company has enqueued all its jobs- Parameters:
companyId- The id of the company
-
isCompanyRegistered
Gets if a specific company has enqueued all its jobs- Parameters:
companyId- The id of the company- Returns:
trueif a company has enqueued all its jobs and it has been registered,falseotherwise
-
areCompaniesRegistered
Gets if the list of company passed as parameters has enqueued all their jobs- Parameters:
companiesIds- The ids of the companies- Returns:
trueif the list of company passed as parameters has enqueued all their jobs,falseotherwise
-