Authored by jack

修改 monitor 解析

... ... @@ -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));
}
... ...
... ... @@ -39,6 +39,7 @@
<bean id="stringConverter" class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/xml</value>
<value>text/plain;charset=UTF-8</value>
<value>text/html;charset=UTF-8</value>
</list>
... ...