Polish
This commit is contained in:
@@ -18,7 +18,7 @@ package org.springframework.batch.integration.chunk;
|
||||
|
||||
|
||||
/**
|
||||
* Interface for a remote worker in the Remote Chunking pattern. A request comes from a master process containing some
|
||||
* Interface for a remote worker in the Remote Chunking pattern. A request comes from a manager process containing some
|
||||
* items to be processed. Once the items are done with a response needs to be generated containing a summary of the
|
||||
* result.
|
||||
*
|
||||
|
||||
@@ -40,8 +40,8 @@ import org.springframework.util.ReflectionUtils;
|
||||
* master. The idea is to lift the existing chunk processor out of a Step that works locally, and replace it with a one
|
||||
* that writes chunks into a message channel. The existing step hands its business chunk processing responsibility over
|
||||
* to the handler produced by the factory, which then needs to be set up as a worker on the other end of the channel the
|
||||
* chunks are being sent to. Once this chunk handler is installed the application is playing the role of both the master
|
||||
* and the slave listeners in the Remote Chunking pattern for the Step in question.
|
||||
* chunks are being sent to. Once this chunk handler is installed the application is playing the role of both the manager
|
||||
* and the worker listeners in the Remote Chunking pattern for the Step in question.
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
|
||||
@@ -49,9 +49,9 @@ import org.springframework.util.CollectionUtils;
|
||||
* While a {@link org.springframework.messaging.MessageChannel} is used for sending the requests to the workers, the
|
||||
* worker's responses can be obtained in one of two ways:
|
||||
* <ul>
|
||||
* <li>A reply channel - Slaves will respond with messages that will be aggregated via this component.</li>
|
||||
* <li>Polling the job repository - Since the state of each slave is maintained independently within the job
|
||||
* repository, we can poll the store to determine the state without the need of the slaves to formally respond.</li>
|
||||
* <li>A reply channel - Workers will respond with messages that will be aggregated via this component.</li>
|
||||
* <li>Polling the job repository - Since the state of each worker is maintained independently within the job
|
||||
* repository, we can poll the store to determine the state without the need of the workers to formally respond.</li>
|
||||
* </ul>
|
||||
*
|
||||
* Note: The reply channel for this is instance based. Sharing this component across
|
||||
@@ -98,7 +98,7 @@ public class MessageChannelPartitionHandler implements PartitionHandler, Initial
|
||||
pollRepositoryForResults = !(dataSource == null && jobExplorer == null);
|
||||
|
||||
if(pollRepositoryForResults) {
|
||||
logger.debug("MessageChannelPartitionHandler is configured to poll the job repository for slave results");
|
||||
logger.debug("MessageChannelPartitionHandler is configured to poll the job repository for worker results");
|
||||
}
|
||||
|
||||
if(dataSource != null && jobExplorer == null) {
|
||||
@@ -134,7 +134,7 @@ public class MessageChannelPartitionHandler implements PartitionHandler, Initial
|
||||
}
|
||||
|
||||
/**
|
||||
* How often to poll the job repository for the status of the slaves.
|
||||
* How often to poll the job repository for the status of the workers.
|
||||
*
|
||||
* @param pollInterval milliseconds between polls, defaults to 10000 (10 seconds).
|
||||
*/
|
||||
|
||||
@@ -228,8 +228,8 @@ public class RemotePartitioningManagerStepBuilder extends PartitionStepBuilder {
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemotePartitioningManagerStepBuilder partitioner(String slaveStepName, Partitioner partitioner) {
|
||||
super.partitioner(slaveStepName, partitioner);
|
||||
public RemotePartitioningManagerStepBuilder partitioner(String workerStepName, Partitioner partitioner) {
|
||||
super.partitioner(workerStepName, partitioner);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user