Skip to content

Commit

Permalink
Merge pull request #289 from it-at-m/104-setup-entwicklung-fuer-wls-s…
Browse files Browse the repository at this point in the history
…ervice-monitoring

104 setup entwicklung für wls service monitoring
  • Loading branch information
MrSebastian authored Jun 13, 2024
2 parents 633a37b + 13642b2 commit f4baf63
Show file tree
Hide file tree
Showing 51 changed files with 3,207 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/wls-monitoring-service_pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: verify pull request monitoring-service

on:
pull_request:
paths:
- 'wls-monitoring-service/**'
- '.github/workflows/wls-monitoring-service_pull-request.yml'

jobs:
verify-pull-request:
uses:
./.github/workflows/callable-run-mvn-verify.yml
with:
pom-dir: 'wls-monitoring-service'
18 changes: 18 additions & 0 deletions .github/workflows/wls-monitoring-service_push-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: build push dev monitoring-service

on:
push:
branches:
- dev
paths:
- 'wls-monitoring-service/**'
- '.github/workflows/wls-monitoring-service_push-dev.yml'

jobs:
build-github-container-image:
permissions:
packages: write
uses:
./.github/workflows/callable-create-github-container-image.yml
with:
service: 'wls-monitoring-service'
1 change: 1 addition & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default withMermaid({
{text: 'Infomanagement-Service', link: `${PATH_FEATURES}infomanagement-service/`},
{text: 'EAI-Service', link: `${PATH_FEATURES}eai-service/`},
{text: 'Basisdaten-Service', link: `${PATH_FEATURES}basisdaten-service/`},
{text: 'Monitoring-Service', link: `${PATH_FEATURES}monitoring-service/`},
]
},

Expand Down
15 changes: 15 additions & 0 deletions docs/src/features/monitoring-service/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Monitoring-Service

Empfangen von Informationen über Ereignisse der Wahlbezirke.

## Abhängigkeiten

Folgende Services sind für den Betrieb erforderlich:
- EAI-Service

## Daten und Funktionen

- Wahlbeteiligung
- letzter Logout
- letzte Meldung im Netzwerk
- Druck- und Sendezeiten von Schnellmeldungen und Niederschriften
6 changes: 5 additions & 1 deletion stack/oracle-database/add-user-on-startup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ GRANT CONNECT, RESOURCE, CREATE SESSION TO wls_eai_service;

-- add user for wls-basisdaten-service
CREATE USER wls_basisdaten_service IDENTIFIED BY secret QUOTA UNLIMITED ON USERS;
GRANT CONNECT, RESOURCE, CREATE SESSION TO wls_basisdaten_service;
GRANT CONNECT, RESOURCE, CREATE SESSION TO wls_basisdaten_service;

-- add user for wls-monitoring-service
CREATE USER wls_monitoring_service IDENTIFIED BY secret QUOTA UNLIMITED ON USERS;
GRANT CONNECT, RESOURCE, CREATE SESSION TO wls_monitoring_service;
31 changes: 31 additions & 0 deletions wls-monitoring-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Covers Maven specific
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
!/.mvn/wrapper/maven-wrapper.jar

# Covers Eclipse specific:
.settings/
.classpath
.project

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
.idea
*.iml

# Covers Netbeans:
**/nbproject/private/
**/nbproject/Makefile-*.mk
**/nbproject/Package-*.bash
build/
nbbuild/
dist/
nbdist/
.nb-gradle/

3 changes: 3 additions & 0 deletions wls-monitoring-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar
101 changes: 101 additions & 0 deletions wls-monitoring-service/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">

<module name = "Checker">
<property name="charset" value="UTF-8"/>

<property name="severity" value="error"/>

<property name="fileExtensions" value="java, properties, xml"/>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$"/>
</module>

<module name="TreeWalker">
<module name="OuterTypeFilename"/>
<module name="NoLineWrap">
<property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
</module>
<module name="LeftCurly" />
<module name="RightCurly" />
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyLambdas" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyLoops" value="true"/>
<property name="allowEmptyCatches" value="true"/>
<property name="ignoreEnhancedForColon" value="false"/>
<property name="tokens"
value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
<message key="ws.notFollowed"
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
<message key="ws.notPreceded"
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
</module>
<module name="GenericWhitespace">
<message key="ws.followed"
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
<message key="ws.preceded"
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
<message key="ws.illegalFollow"
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
<message key="ws.notPreceded"
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
<module name="OneStatementPerLine"/>
<module name="ModifierOrder"/>
<module name="EmptyLineSeparator">
<property name="tokens"
value="IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
STATIC_INIT, INSTANCE_INIT, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
COMPACT_CTOR_DEF"/>
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapDot"/>
<property name="tokens" value="DOT"/>
<property name="option" value="nl"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapComma"/>
<property name="tokens" value="COMMA"/>
<property name="option" value="EOL"/>
</module>

<module name="CustomImportOrder">
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/>
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
<property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
</module>
<module name="MethodParamPad">
<property name="tokens"
value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
</module>
<module name="NoWhitespaceBefore">
<property name="tokens"
value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
LABELED_STAT, METHOD_REF"/>
<property name="allowLineBreaks" value="true"/>
</module>
<module name="ParenPad"/>
<module name="AnnotationLocation">
<property name="allowSamelineMultipleAnnotations" value="false"/>
<property name="allowSamelineSingleParameterlessAnnotation" value="false"/>
<property name="allowSamelineParameterizedAnnotation" value="false"/>
</module>
<module name="AbbreviationAsWordInName"/>
<module name="UnusedLocalVariable"/>
</module>
</module>
Loading

0 comments on commit f4baf63

Please sign in to comment.