public class ClientInterfaceCLI extends ClientInterface
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
list |
private java.util.Scanner |
scanner |
clientManagement
Constructor and Description |
---|
ClientInterfaceCLI(ClientManagement clientManagement,
Logger logger,
java.util.Scanner scanner)
Constructor with clientManagement, logger and scanner.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
initFileList()
Initialize file list
|
private boolean |
initHostList()
Initialization of hostList with retry in failure
|
void |
run()
Implementation of Runnable
|
writeLog, writeLog
public ClientInterfaceCLI(ClientManagement clientManagement, Logger logger, java.util.Scanner scanner)
clientManagement
- ClientManagement usedlogger
- Logger usedscanner
- Scanner used to read inputpublic void run()
private boolean initHostList()
private boolean initFileList()