Skip to content

Commit

Permalink
Merge 4e0adbd into 1824122
Browse files Browse the repository at this point in the history
  • Loading branch information
wlodarcp committed May 25, 2020
2 parents 1824122 + 4e0adbd commit 0962125
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 250 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.hltech.contracts.judged.agent;

import com.hltech.contracts.judged.agent.JudgeDPublisher.ServiceForm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
Expand All @@ -11,11 +10,10 @@
import java.util.Set;
import java.util.stream.Collectors;

@Slf4j
@Component
public class UpdateServicesTask {

private static final Logger LOGGER = LoggerFactory.getLogger(UpdateServicesTask.class);

private String environment;
private String space;
private ServiceLocator serviceLocator;
Expand All @@ -36,9 +34,9 @@ public UpdateServicesTask(

@Scheduled(fixedDelay = 5_000, initialDelay = 10_000)
public void updateServices() {
LOGGER.debug("Searching for available services...");
log.debug("Searching for available services...");
Set<ServiceLocator.Service> serviceForms = serviceLocator.locateServices();
LOGGER.debug("Done - found following services: " + serviceForms);
log.debug("Done - found following services: " + serviceForms);
publisher.publish(
environment,
space,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import feign.Retryer;
import feign.Target;
import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
Expand All @@ -34,8 +32,6 @@
@EnableScheduling
public class BeanFactory {

private static final Logger LOGGER = LoggerFactory.getLogger(BeanFactory.class);

@Bean
public ObjectMapper objectMapper() {
return new ObjectMapper();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 0962125

Please sign in to comment.