You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
555 B
26 lines
555 B
package com.crawler.command;
|
|
|
|
import com.crawler.controller.CrawlerController;
|
|
|
|
public class LoadCommand implements Command {
|
|
private final CrawlerController controller;
|
|
|
|
public LoadCommand(CrawlerController controller) {
|
|
this.controller = controller;
|
|
}
|
|
|
|
@Override
|
|
public void execute(String[] args) {
|
|
controller.loadData();
|
|
}
|
|
|
|
@Override
|
|
public String getCommandName() {
|
|
return "load";
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return "Load articles from data file";
|
|
}
|
|
}
|
|
|