use of org.openkilda.model.Status in project open-kilda by telstra.
the class FlowService method getAllStatus.
/**
* Gets the all status list.
*
* @return the all status list
*/
public Set<String> getAllStatus() {
LinkStoreConfigDto linkStoreConfigDto = storeService.getLinkStoreConfig();
boolean isLinkStoreConfig = linkStoreConfigDto.getUrls().isEmpty();
Status status = Status.INSTANCE;
if (!isLinkStoreConfig) {
if (CollectionUtil.isEmpty(status.getStatuses())) {
status.setStatuses(new HashSet<String>(flowStoreService.getAllStatus()));
}
} else {
LOGGER.info("Link store is not configured. ");
}
return status.getStatuses() != null ? status.getStatuses() : new HashSet<String>();
}
use of org.openkilda.model.Status in project open-kilda by telstra.
the class FlowController method getAllStatusWithCron.
/**
* Get statuses exists in the system with cron.
*/
@Scheduled(fixedDelayString = "${status.cron.time}")
public void getAllStatusWithCron() {
LOGGER.info("Get all status cron. ");
Status statuses = Status.INSTANCE;
statuses.setStatuses(flowService.getAllStatus());
}
Aggregations