Update groupId to org.onap.ccsdk.sli
[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         protected void configure(BaseDBConfiguration jdbcElem) throws DBConfigException {
37                 // no action
38         }
39
40         public long getInterval() {
41                 return 1000;
42         }
43
44         public long getInitialDelay() {
45                 return 1000;
46         }
47
48         public long getExpectedCompletionTime() {
49                 return 50;
50         }
51
52         public void setExpectedCompletionTime(long value) {
53                 
54         }
55
56         public void setInterval(long value) {
57                 
58         }
59
60         public void setInitialDelay(long value) {
61                 
62         }
63
64         public long getUnprocessedFailoverThreshold() {
65                 return 3;
66         }
67
68         public void setUnprocessedFailoverThreshold(long value) {
69                 
70         }
71         
72         public int compareTo(CachedDataSource ods)
73         {
74                 return 0;
75         }
76
77         public Logger getParentLogger() throws SQLFeatureNotSupportedException {
78                 // TODO Auto-generated method stub
79                 return null;
80         }
81
82 }