Skip to content
Snippets Groups Projects
Commit 07b877b3 authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Change top level java package to spesb and adopt main class in gradle

Add the spesb prefix to all self implemented java packages of the
project. Because this changes the fully qualified class name of
the main classes the build.gradle files need to adopt to this.
parent 40fd6d50
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 29 deletions
...@@ -21,7 +21,7 @@ dependencies { ...@@ -21,7 +21,7 @@ dependencies {
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
mainClassName = "uc1.application.HistoryService" mainClassName = "spesb.uc1.application.HistoryService"
eclipse { eclipse {
classpath { classpath {
......
package uc1.application; package spesb.uc1.application;
/** /**
* Keys to access configuration parameters. * Keys to access configuration parameters.
......
package uc1.application; package spesb.uc1.application;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import org.apache.commons.configuration2.Configuration; import org.apache.commons.configuration2.Configuration;
import org.apache.kafka.streams.KafkaStreams; import org.apache.kafka.streams.KafkaStreams;
import spesb.uc1.streamprocessing.KafkaStreamsBuilder;
import titan.ccp.common.configuration.Configurations; import titan.ccp.common.configuration.Configurations;
import uc1.streamprocessing.KafkaStreamsBuilder;
/** /**
* A microservice that manages the history and, therefore, stores and aggregates incoming * A microservice that manages the history and, therefore, stores and aggregates incoming
......
package uc1.streamprocessing; package spesb.uc1.streamprocessing;
import java.util.Objects; import java.util.Objects;
import java.util.Properties; import java.util.Properties;
......
package uc1.streamprocessing; package spesb.uc1.streamprocessing;
import com.google.gson.Gson; import com.google.gson.Gson;
import org.apache.kafka.common.serialization.Serdes; import org.apache.kafka.common.serialization.Serdes;
......
...@@ -21,7 +21,7 @@ dependencies { ...@@ -21,7 +21,7 @@ dependencies {
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
mainClassName = "uc1.workloadGenerator.LoadGenerator" mainClassName = "spesb.uc1.workloadgenerator.LoadGenerator"
eclipse { eclipse {
classpath { classpath {
......
package kafkaSender; package spesb.kafkasender;
import java.util.Properties; import java.util.Properties;
import java.util.function.Function; import java.util.function.Function;
......
package uc1.workloadGenerator; package spesb.uc1.workloadgenerator;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
...@@ -11,10 +11,10 @@ import java.util.concurrent.TimeUnit; ...@@ -11,10 +11,10 @@ import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.util.stream.IntStream; import java.util.stream.IntStream;
import kafkaSender.KafkaRecordSender;
import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.clients.producer.ProducerConfig;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import spesb.kafkasender.KafkaRecordSender;
import titan.ccp.models.records.ActivePowerRecord; import titan.ccp.models.records.ActivePowerRecord;
public class LoadGenerator { public class LoadGenerator {
......
...@@ -21,7 +21,7 @@ dependencies { ...@@ -21,7 +21,7 @@ dependencies {
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
mainClassName = "uc2.application.AggregationService" mainClassName = "spesb.uc2.application.AggregationService"
eclipse { eclipse {
classpath { classpath {
......
package uc2.application; package spesb.uc2.application;
import java.time.Duration; import java.time.Duration;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import org.apache.commons.configuration2.Configuration; import org.apache.commons.configuration2.Configuration;
import org.apache.kafka.streams.KafkaStreams; import org.apache.kafka.streams.KafkaStreams;
import spesb.uc2.streamprocessing.KafkaStreamsBuilder;
import titan.ccp.common.configuration.Configurations; import titan.ccp.common.configuration.Configurations;
import uc2.streamprocessing.KafkaStreamsBuilder;
/** /**
* A microservice that manages the history and, therefore, stores and aggregates * A microservice that manages the history and, therefore, stores and aggregates
......
package uc2.application; package spesb.uc2.application;
/** /**
* Keys to access configuration parameters. * Keys to access configuration parameters.
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import com.google.common.base.MoreObjects; import com.google.common.base.MoreObjects;
import java.util.ArrayList; import java.util.ArrayList;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.util.Set; import java.util.Set;
import titan.ccp.models.records.ActivePowerRecord; import titan.ccp.models.records.ActivePowerRecord;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.time.Duration; import java.time.Duration;
import java.util.Objects; import java.util.Objects;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.util.HashSet; import java.util.HashSet;
import java.util.Optional; import java.util.Optional;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
......
package uc2.streamprocessing; package spesb.uc2.streamprocessing;
import org.apache.kafka.streams.kstream.Windowed; import org.apache.kafka.streams.kstream.Windowed;
import titan.ccp.models.records.ActivePowerRecord; import titan.ccp.models.records.ActivePowerRecord;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment