...
|
...
|
@@ -8,7 +8,6 @@ import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -20,11 +19,11 @@ public class SCollectorService extends AbstractService { |
|
|
private static final Logger DEBUG = LoggerFactory.getLogger(SCollectorService.class);
|
|
|
|
|
|
@RequestMapping(value = "/collector", method = RequestMethod.POST)
|
|
|
public void doHandle(@RequestBody String info, @RequestHeader Map<String, String> headerInfo) {
|
|
|
|
|
|
DEBUG.debug("Received collector msg {} form host {}", info, headerInfo.get("Host"));
|
|
|
public void doHandle(@RequestBody String info) {
|
|
|
|
|
|
/* DEBUG.debug("Received collector msg {} form host {}", info, headerInfo.get("Host"));*/
|
|
|
//2s timeout
|
|
|
|
|
|
service.submit(new OneJob(new CollectorJob(info), MConstants.HTTPTIMEOUT * 1000));
|
|
|
|
|
|
}
|
...
|
...
|
|