Skip to content

Commit d5e37d4

Browse files
Neelab Chaudhuriwajda
authored andcommitted
added license info
1 parent 02e0c88 commit d5e37d4

File tree

3 files changed

+48
-7
lines changed

3 files changed

+48
-7
lines changed

core/src/main/resources/spline.default.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ spline:
9999
# topic name
100100
topic:
101101

102+
# -------------------------------------------
103+
# Sqs dispatcher
104+
# -------------------------------------------
105+
sqs:
106+
className: za.co.absa.spline.harvester.dispatcher.SqsLineageDispatcher
107+
apiVersion: "1.2"
108+
# fully qualified sqs queue url
109+
queue.url:
110+
102111
# -------------------------------------------
103112
# Console dispatcher
104113
# -------------------------------------------
Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
1-
package za.co.absa.spline.harvester.dispatcher.sqsdispatcher
1+
/*
2+
* Copyright 2019 ABSA Group Limited
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package za.co.absa.spline.harvester.dispatcher
218

319
import org.apache.commons.configuration.Configuration
420
import org.apache.spark.internal.Logging
521
import software.amazon.awssdk.services.sqs.SqsClient
622
import software.amazon.awssdk.services.sqs.model.SendMessageRequest
723
import za.co.absa.commons.version.Version
8-
import za.co.absa.spline.harvester.dispatcher.LineageDispatcher
924
import za.co.absa.spline.harvester.dispatcher.modelmapper.ModelMapper
25+
import za.co.absa.spline.harvester.dispatcher.sqsdispatcher.SqsLineageDispatcherConfig
1026
import za.co.absa.spline.producer.model.{ExecutionEvent, ExecutionPlan}
1127

12-
class SqsLineageDispatcherImpl(sqsClient: SqsClient,
13-
sqsUrl: String,
14-
apiVersion: Version) extends LineageDispatcher with Logging {
28+
class SqsLineageDispatcher(sqsClient: SqsClient,
29+
sqsUrl: String,
30+
apiVersion: Version) extends LineageDispatcher with Logging {
1531
import za.co.absa.spline.harvester.json.HarvesterJsonSerDe.impl._
1632
def this(dispatcherConfig: SqsLineageDispatcherConfig) = this(
17-
SqsLineageDispatcherImpl.createSqsClient(dispatcherConfig),
33+
SqsLineageDispatcher.createSqsClient(dispatcherConfig),
1834
dispatcherConfig.queueUrl,
1935
dispatcherConfig.apiVersion
2036
)
@@ -72,7 +88,7 @@ class SqsLineageDispatcherImpl(sqsClient: SqsClient,
7288
}
7389

7490

75-
object SqsLineageDispatcherImpl extends Logging {
91+
object SqsLineageDispatcher extends Logging {
7692

7793
private def createSqsClient(config: SqsLineageDispatcherConfig): SqsClient = {
7894
SqsClient

core/src/main/scala/za/co/absa/spline/harvester/dispatcher/sqsdispatcher/SqsLineageDispatcherConfig.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2019 ABSA Group Limited
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package za.co.absa.spline.harvester.dispatcher.sqsdispatcher
218

319
import org.apache.commons.configuration.Configuration

0 commit comments

Comments
 (0)