View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.scheduler.jobs;
12  
13  import org.springframework.beans.factory.annotation.Value;
14  import org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean;
15  
16  /**
17   * The Class ConnectorStatsJobDetail.
18   */
19  public class AppStatsJobDetail extends MethodInvokingJobDetailFactoryBean {
20  
21    @Override
22    @Value("false")
23    public void setConcurrent(boolean concurrent) {
24      super.setConcurrent(concurrent);
25    }
26  
27    @Override
28    @Value("appStatsCollector")
29    public void setTargetBeanName(String targetBeanName) {
30      super.setTargetBeanName(targetBeanName);
31    }
32  
33    @Override
34    @Value("collect")
35    public void setTargetMethod(String targetMethod) {
36      super.setTargetMethod(targetMethod);
37    }
38  
39  }