Search in sources :

Example 21 with Value

use of org.springframework.beans.factory.annotation.Value in project pinpoint by naver.

the class WebClusterConfig method validation.

@PostConstruct
public void validation() {
    if (isClusterEnable()) {
        // assertPort(clusterTcpPort);
        final String zookeeperAddress = clusterConfiguration.getAddress();
        if (StringUtils.isEmpty(zookeeperAddress)) {
            throw new IllegalArgumentException("clusterZookeeperAddress may not be empty =" + zookeeperAddress);
        }
        assertPositiveNumber(clusterZookeeperRetryInterval);
        if (clusterZookeeperPeriodicSyncEnable) {
            assertPositiveNumber(clusterZookeeperPeriodicSyncInterval);
        }
    }
    logger.info("{}", this);
    AnnotationVisitor<Value> annotationVisitor = new AnnotationVisitor<>(Value.class);
    annotationVisitor.visit(this, new LoggingEvent(this.logger));
}
Also used : LoggingEvent(com.navercorp.pinpoint.common.server.config.LoggingEvent) Value(org.springframework.beans.factory.annotation.Value) AnnotationVisitor(com.navercorp.pinpoint.common.server.config.AnnotationVisitor) PostConstruct(javax.annotation.PostConstruct)

Example 22 with Value

use of org.springframework.beans.factory.annotation.Value in project pinpoint by naver.

the class BatchConfiguration method beforeLog.

private void beforeLog() {
    logger.info("before setup field: {}", this);
    AnnotationVisitor<Value> annotationVisitor = new AnnotationVisitor<>(Value.class);
    annotationVisitor.visit(this, new LoggingEvent(this.logger));
}
Also used : LoggingEvent(com.navercorp.pinpoint.common.server.config.LoggingEvent) Value(org.springframework.beans.factory.annotation.Value) AnnotationVisitor(com.navercorp.pinpoint.common.server.config.AnnotationVisitor)

Example 23 with Value

use of org.springframework.beans.factory.annotation.Value in project pinpoint by naver.

the class FlinkConfiguration method log.

@PostConstruct
public void log() {
    logger.info("{}", this);
    if (logger.isDebugEnabled()) {
        AnnotationVisitor<Value> visitor = new AnnotationVisitor<>(Value.class);
        visitor.visit(this, new LoggingEvent(logger));
    }
}
Also used : LoggingEvent(com.navercorp.pinpoint.common.server.config.LoggingEvent) Value(org.springframework.beans.factory.annotation.Value) AnnotationVisitor(com.navercorp.pinpoint.common.server.config.AnnotationVisitor) PostConstruct(javax.annotation.PostConstruct)

Example 24 with Value

use of org.springframework.beans.factory.annotation.Value in project pinpoint by naver.

the class ScatterConfiguration method log.

@PostConstruct
public void log() {
    logger.info("{}", this);
    AnnotationVisitor<Value> visitor = new AnnotationVisitor<>(Value.class);
    visitor.visit(this, new LoggingEvent(logger));
}
Also used : LoggingEvent(com.navercorp.pinpoint.common.server.config.LoggingEvent) Value(org.springframework.beans.factory.annotation.Value) AnnotationVisitor(com.navercorp.pinpoint.common.server.config.AnnotationVisitor) PostConstruct(javax.annotation.PostConstruct)

Example 25 with Value

use of org.springframework.beans.factory.annotation.Value in project pinpoint by naver.

the class CollectorClusterConfig method log.

@PostConstruct
public void log() {
    logger.info("{}", this);
    AnnotationVisitor<Value> visitor = new AnnotationVisitor<>(Value.class);
    visitor.visit(this, new LoggingEvent(logger));
}
Also used : LoggingEvent(com.navercorp.pinpoint.common.server.config.LoggingEvent) Value(org.springframework.beans.factory.annotation.Value) AnnotationVisitor(com.navercorp.pinpoint.common.server.config.AnnotationVisitor) PostConstruct(javax.annotation.PostConstruct)

Aggregations

Value (org.springframework.beans.factory.annotation.Value)71 Autowired (org.springframework.beans.factory.annotation.Autowired)33 IOException (java.io.IOException)29 Collectors (java.util.stream.Collectors)29 List (java.util.List)24 Logger (org.slf4j.Logger)23 LoggerFactory (org.slf4j.LoggerFactory)23 PathVariable (org.springframework.web.bind.annotation.PathVariable)20 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)20 ArrayList (java.util.ArrayList)18 RequestParam (org.springframework.web.bind.annotation.RequestParam)18 Map (java.util.Map)17 Optional (java.util.Optional)17 HttpServletResponse (javax.servlet.http.HttpServletResponse)16 RestController (org.springframework.web.bind.annotation.RestController)16 RequestMethod (org.springframework.web.bind.annotation.RequestMethod)15 Stream (java.util.stream.Stream)14 HttpStatus (org.springframework.http.HttpStatus)14 ApiOperation (io.swagger.annotations.ApiOperation)13 ApiParam (io.swagger.annotations.ApiParam)12