public void init() {
int port = config.getControllerPort();
agentControllerServerDaemon = new AgentControllerServerDaemon(config.getCurrentIP(), port);
agentControllerServerDaemon.start();
agentControllerServerDaemon.setAgentDownloadRequestListener(this);
agentControllerServerDaemon.addLogArrivedListener(new LogArrivedListener() {
@Override
public void logArrived(String testId, AgentAddress agentAddress, byte[] logs) {
AgentControllerIdentityImplementation agentIdentity = convert(agentAddress.getIdentity());
if (ArrayUtils.isEmpty(logs)) {
LOGGER.error("Log is arrived from {} but no log content", agentIdentity.getIp());