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
IOException
public void startLeader(ILeader leader, long tickInterval)
startLeader
in interface IController
leader
- the leadertickInterval
- the refresh intervalpublic void startWorker(IWorker worker, long tickInterval)
startWorker
in interface IController
worker
- the worker to starttickInterval
- the refresh intervalCopyright © 2022. All rights reserved.