Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d0689ee
Удалил старую структуру проекта
Nov 16, 2025
f351bb6
Добавил черновик сервиса producer
Nov 16, 2025
33260df
Добавил клиент для RabbitMQ
Nov 16, 2025
930b7c3
Добавил докер и отладил producer
Nov 16, 2025
5e48550
Добавил тестовый файл
Nov 16, 2025
cd7a6f4
Добавил структуру проекта для воркера
Nov 16, 2025
1a725c4
Настроил общение по RabbitMQ
Nov 30, 2025
1790e42
Добавил подсчет слов
Nov 30, 2025
5e7cafe
Поддержал AutoClosable
Nov 30, 2025
70336bc
Вынес таски и клиент в отдельный проект, перевел producer на него
Nov 30, 2025
57cfc85
Перевел воркер на новый клиент
Nov 30, 2025
5f59116
Реализовал подсчет слов
Nov 30, 2025
1d4041f
Поправил разбиение
Dec 1, 2025
1622102
Удалил StorageClient
Dec 1, 2025
8d69493
Добавил подсчет слов
Dec 1, 2025
75d2a82
Переехал на JSON
Dec 6, 2025
e079cec
Добавил анализ тональности текста
Dec 6, 2025
c6ec41e
Добавил мета инфу для процессинга текста
Dec 8, 2025
341386a
Добавил подстановку слов
Dec 8, 2025
4a411c3
Добавил сортировку текста
Dec 22, 2025
51d3859
Добавил бенчмарк в producer
Dec 22, 2025
38fb4c9
Добавил бенчмакр в воркер
Dec 22, 2025
dcd78e6
Добавил бенчмарк в агрегатор
Dec 22, 2025
95e5941
Добавил файлы
Dec 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
Binary file removed .gradle/8.4/checksums/checksums.lock
Binary file not shown.
Binary file removed .gradle/8.4/checksums/md5-checksums.bin
Binary file not shown.
Binary file removed .gradle/8.4/checksums/sha1-checksums.bin
Binary file not shown.
Binary file not shown.
Binary file removed .gradle/8.4/executionHistory/executionHistory.bin
Binary file not shown.
Binary file removed .gradle/8.4/executionHistory/executionHistory.lock
Binary file not shown.
Binary file removed .gradle/8.4/fileChanges/last-build.bin
Binary file not shown.
Binary file removed .gradle/8.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file removed .gradle/8.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file removed .gradle/8.4/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file removed .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 0 additions & 2 deletions .gradle/buildOutputCleanup/cache.properties

This file was deleted.

Binary file removed .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file removed .gradle/file-system.probe
Binary file not shown.
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/gradle.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/kotlinc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules/lab_3.main.iml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules/lab_3.test.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
common:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Комментарий для теста.

@cd ./common && ./gradlew --no-daemon clean jar

aggregator:
@cd ./aggregator && ./gradlew --no-daemon clean jar

worker:
@cd ./worker && ./gradlew --no-daemon clean jar

producer:
@cd ./producer && ./gradlew --no-daemon clean bootJar

docker:
docker-compose build --no-cache

.PHONY: build common aggregator worker producer docker
build: common aggregator worker producer docker
12 changes: 12 additions & 0 deletions aggregator/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

# Binary files should be left untouched
*.jar binary

6 changes: 6 additions & 0 deletions aggregator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build
bin/
5 changes: 5 additions & 0 deletions aggregator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM eclipse-temurin:21-jre
WORKDIR /app
COPY build/libs/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]
56 changes: 56 additions & 0 deletions aggregator/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/9.0.0/userguide/building_java_projects.html in the Gradle documentation.
*/

plugins {
// Apply the application plugin to add support for building a CLI application in Java.
application
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

dependencies {
// Use JUnit Jupiter for testing.
testImplementation(libs.junit.jupiter)

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

// This dependency is used by the application.
implementation(libs.guava)

implementation("org.itmo.lab2:common:1.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.20.1")
}

group = "org.itmo.lab2"

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

application {
// Define the main class for the application.
mainClass = "org.itmo.lab2.aggregator.Main"
}

tasks.jar {
manifest {
attributes["Main-Class"] = application.mainClass.get()
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = DuplicatesStrategy.EXCLUDE // Handle duplicate files from dependencies
}

tasks.named<Test>("test") {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
5 changes: 5 additions & 0 deletions aggregator/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties

org.gradle.configuration-cache=true

10 changes: 10 additions & 0 deletions aggregator/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format

[versions]
guava = "33.4.6-jre"
junit-jupiter = "5.12.1"

[libraries]
guava = { module = "com.google.guava:guava", version.ref = "guava" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
Binary file added aggregator/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading