class CheckUserQuoteScheduler implements Job {

	@Override
	public void execute(JobExecutionContext context) {
		environmentService.getUsers()
				.stream()
				.map(UserDTO::getName)
				.filter(billingDAO::isUserQuoteReached)
				.peek(u -> log.warn("Stopping {} user env because of reaching user billing quote", u))
				.forEach(environmentService::stopEnvironmentWithServiceAccount);
	}

}