package com.utic.center.utic.stat.server.service;

import com.utic.center.common.annotation.ProcessingElapsed;
import com.utic.center.common.service.AbstractProcessService;
import com.utic.center.utic.stat.server.config.ApplicationConfig;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Data
@ToString
@RequiredArgsConstructor
@Service
public class UticStatPrepareService implements AbstractProcessService {

    private final ApplicationConfig config;
    private final UticStatParamService paramService;

    @ProcessingElapsed(type="PARAMETER", name="통계정보 파라미터 로딩", starting = false)
    @Override
    public boolean processing() {
        this.paramService.processing();
        return true;
    }

}
