Skip to content

Commit

Permalink
Fix : Ajout poll pour requêtes CBS via l'API
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Mar 27, 2024
1 parent a00fb55 commit 959efce
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions batch/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sudoc.serveur=
sudoc.port=
#login permettant de tester si le CBS répond
sudoc.login=
sudoc.poll=

batch.min.hour=8
batch.max.hour=20
Expand Down
1 change: 1 addition & 0 deletions batch/src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sudoc.serveur=
sudoc.port=
#login permettant de tester si le CBS répond
sudoc.login=
sudoc.poll=

batch.min.hour=8
batch.max.hour=20
Expand Down
1 change: 1 addition & 0 deletions batch/src/main/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sudoc.serveur=
sudoc.port=
#login permettant de tester si le CBS répond
sudoc.login=
sudoc.poll=

batch.min.hour=8
batch.max.hour=20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
@Service
public class TraitementService implements ITraitementService {

@Value("${sudoc.poll}")
private Integer poll;

@Value("${sudoc.serveur}")
private String serveurSudoc;

Expand All @@ -42,7 +45,7 @@ public class TraitementService implements ITraitementService {
private DaoProvider dao;

public TraitementService() {
cbs = new ProcessCBS();
cbs = new ProcessCBS(poll);
}

@Override
Expand Down
1 change: 1 addition & 0 deletions web/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sudoc.serveur=
sudoc.port=
#login permettant de tester si le CBS répond
sudoc.login=
sudoc.poll=

# Configuration des logs
logging.config=classpath:log4j2-dev.xml
Expand Down
1 change: 1 addition & 0 deletions web/src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sudoc.serveur=
sudoc.port=
#login permettant de tester si le CBS répond
sudoc.login=
sudoc.poll=

# Configuration des logs
logging.config=classpath:log4j2-prod.xml
Expand Down
1 change: 1 addition & 0 deletions web/src/main/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sudoc.serveur=
sudoc.port=
#login permettant de tester si le CBS répond
sudoc.login=
sudoc.poll=

# Configuration des logs
logging.config=classpath:log4j2-tests.xml
Expand Down

0 comments on commit 959efce

Please sign in to comment.