Fix sonar issues
[ccsdk/sli/core.git] / dblib / provider / src / main / java / org / onap / ccsdk / sli / core / dblib / TerminatingCachedDataSource.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * onap
4  * ================================================================================
5  * Copyright (C) 2016 - 2017 ONAP
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.ccsdk.sli.core.dblib;
22
23 import java.sql.SQLFeatureNotSupportedException;
24 import java.util.logging.Logger;
25
26 import org.onap.ccsdk.sli.core.dblib.config.BaseDBConfiguration;
27 import org.onap.ccsdk.sli.core.dblib.pm.SQLExecutionMonitorObserver;
28
29
30 public class TerminatingCachedDataSource extends CachedDataSource implements SQLExecutionMonitorObserver {
31
32         public TerminatingCachedDataSource(BaseDBConfiguration jdbcElem) throws DBConfigException {
33                 super(jdbcElem);
34         }
35
36         @Override
37         protected void configure(BaseDBConfiguration jdbcElem) throws DBConfigException {
38                 // no action
39         }
40
41         @Override
42         public long getInterval() {
43                 return 1000;
44         }
45
46         @Override
47         public long getInitialDelay() {
48                 return 1000;
49         }
50
51         @Override
52         public long getExpectedCompletionTime() {
53                 return 50;
54         }
55
56         @Override
57         public void setExpectedCompletionTime(long value) {
58                 
59         }
60
61         @Override
62         public void setInterval(long value) {
63                 
64         }
65
66         @Override
67         public void setInitialDelay(long value) {
68                 
69         }
70
71         @Override
72         public long getUnprocessedFailoverThreshold() {
73                 return 3;
74         }
75
76         @Override
77         public void setUnprocessedFailoverThreshold(long value) {
78                 
79         }
80         
81         public int compareTo(CachedDataSource ods)
82         {
83                 return 0;
84         }
85
86         @Override
87         public Logger getParentLogger() throws SQLFeatureNotSupportedException {
88                 // TODO Auto-generated method stub
89                 return null;
90         }
91
92 }