Skip to content

Commit

Permalink
Prevent booking frames on hosts with full MCP
Browse files Browse the repository at this point in the history
- Use correct Logger imports
  • Loading branch information
ramonfigueiredo committed Jul 18, 2023
1 parent 91e06b2 commit 59c978e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
import java.util.Map;
import java.util.concurrent.ThreadPoolExecutor;

import org.apache.log4j.Logger;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.core.task.TaskRejectedException;
Expand Down Expand Up @@ -68,7 +69,7 @@

public class HostReportHandler {

private static final Logger logger = Logger.getLogger(HostReportHandler.class);
private static final Logger logger = LogManager.getLogger(HostReportHandler.class);

private BookingManager bookingManager;
private HostManager hostManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@
import java.util.concurrent.atomic.AtomicBoolean;

import com.imageworks.spcue.grpc.report.HostReport;
import org.apache.log4j.Logger;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;

import com.imageworks.spcue.dispatcher.commands.DispatchHandleHostReport;
import com.imageworks.spcue.util.CueUtil;

public class HostReportQueue extends ThreadPoolExecutor {

private static final Logger logger = Logger.getLogger(HostReportQueue.class);
private static final Logger logger = LogManager.getLogger(HostReportQueue.class);
private QueueRejectCounter rejectCounter = new QueueRejectCounter();
private AtomicBoolean isShutdown = new AtomicBoolean(false);
private int queueCapacity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
import java.sql.Timestamp;
import java.util.List;

import org.apache.log4j.Logger;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -57,7 +58,7 @@

@Transactional
public class HostManagerService implements HostManager {
private static final Logger logger = Logger.getLogger(HostManagerService.class);
private static final Logger logger = LogManager.getLogger(HostManagerService.class);

private HostDao hostDao;
private RqdClient rqdClient;
Expand Down

0 comments on commit 59c978e

Please sign in to comment.