Remove usage of master/slave terminology
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018-2019 the original author or authors.
|
||||
* Copyright 2018-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -102,7 +102,7 @@ public class ManagerConfiguration {
|
||||
}
|
||||
|
||||
/*
|
||||
* Configure master step components
|
||||
* Configure manager step components
|
||||
*/
|
||||
@Bean
|
||||
public ListItemReader<Integer> itemReader() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018 the original author or authors.
|
||||
* Copyright 2018-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,9 +38,9 @@ import org.springframework.integration.jms.dsl.Jms;
|
||||
* It uses the {@link RemoteChunkingWorkerBuilder} to configure an
|
||||
* {@link IntegrationFlow} in order to:
|
||||
* <ul>
|
||||
* <li>receive requests from the master</li>
|
||||
* <li>receive requests from the manager</li>
|
||||
* <li>process chunks with the configured item processor and writer</li>
|
||||
* <li>send replies to the master</li>
|
||||
* <li>send replies to the manager</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Mahmoud Ben Hassine
|
||||
@@ -67,7 +67,7 @@ public class WorkerConfiguration {
|
||||
}
|
||||
|
||||
/*
|
||||
* Configure inbound flow (requests coming from the master)
|
||||
* Configure inbound flow (requests coming from the manager)
|
||||
*/
|
||||
@Bean
|
||||
public DirectChannel requests() {
|
||||
@@ -83,7 +83,7 @@ public class WorkerConfiguration {
|
||||
}
|
||||
|
||||
/*
|
||||
* Configure outbound flow (replies going to the master)
|
||||
* Configure outbound flow (replies going to the manager)
|
||||
*/
|
||||
@Bean
|
||||
public DirectChannel replies() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018 the original author or authors.
|
||||
* Copyright 2018-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,7 +37,7 @@ import org.springframework.integration.jms.dsl.Jms;
|
||||
|
||||
/**
|
||||
* This configuration class is for the worker side of the remote partitioning sample.
|
||||
* Each worker will process a partition sent by the master step.
|
||||
* Each worker will process a partition sent by the manager step.
|
||||
*
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
@@ -55,7 +55,7 @@ public class WorkerConfiguration {
|
||||
}
|
||||
|
||||
/*
|
||||
* Configure inbound flow (requests coming from the master)
|
||||
* Configure inbound flow (requests coming from the manager)
|
||||
*/
|
||||
@Bean
|
||||
public DirectChannel requests() {
|
||||
|
||||
@@ -81,7 +81,7 @@ public abstract class RemotePartitioningJobFunctionalTests {
|
||||
|
||||
// then
|
||||
Assert.assertEquals(ExitStatus.COMPLETED.getExitCode(), jobExecution.getExitStatus().getExitCode());
|
||||
Assert.assertEquals(4, jobExecution.getStepExecutions().size()); // master + 3 workers
|
||||
Assert.assertEquals(4, jobExecution.getStepExecutions().size()); // manager + 3 workers
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
Reference in New Issue
Block a user