public class FilesystemController extends Object implements IController
| Constructor and Description |
|---|
FilesystemController(String root,
String commandTopic,
String controlTopic,
String assignementTopic) |
| Modifier and Type | Method and Description |
|---|---|
void |
startLeader(ILeader leader,
long tickInterval)
The leader is started in a dedicated thread but every time it vanishes,
it is restarted from a fresh new state.
|
void |
startWorker(IWorker worker,
long tickInterval)
A worker is started only once and is not supposed to vanish ever.
|
public FilesystemController(String root, String commandTopic, String controlTopic, String assignementTopic) throws IOException
IOExceptionpublic void startLeader(ILeader leader, long tickInterval)
startLeader in interface IControllerleader - the leadertickInterval - the refresh intervalpublic void startWorker(IWorker worker, long tickInterval)
startWorker in interface IControllerworker - the worker to starttickInterval - the refresh intervalCopyright © 2023. All rights reserved.