Revize da9245bf
Přidáno uživatelem Eliška Mourycová před více než 3 roky(ů)
Server/ServerApp/Program.cs | ||
---|---|---|
42 | 42 |
return; |
43 | 43 |
} |
44 | 44 |
|
45 |
//ConsoleForamtingTest(); |
|
46 | 45 |
|
47 | 46 |
|
48 | 47 |
|
... | ... | |
92 | 91 |
Console.ReadLine(); |
93 | 92 |
} |
94 | 93 |
|
95 |
private static void ConsoleForamtingTest() |
|
96 |
{ |
|
97 |
|
|
98 |
Console.WriteLine("List of available commands and their description: "); |
|
99 |
Console.WriteLine("--------------------------------------------------"); |
|
100 |
// data |
|
101 |
Console.WriteLine("data [OPTION] [DATE]..."); |
|
102 |
Console.WriteLine(" Description: Capable of showing saved data files and downloading new ones."); |
|
103 |
Console.WriteLine(" -list: Lists currently saved data files. This list does not have to match the files which any of the predictors is trained on!"); |
|
104 |
Console.WriteLine(" Example: data -list"); |
|
105 |
Console.WriteLine(" -dl [startDate] [endDate]: Downloads jis, login and weather files from a specified time span. Both [startDate] and [endDate] are inclusive. Date format must be entered as [month]-[year]."); |
|
106 |
Console.WriteLine(" Example: data -dl 1-2019 12-2020"); |
|
107 |
Console.WriteLine(""); |
|
108 |
|
|
109 |
// model |
|
110 |
Console.WriteLine("model [OPTION]"); |
|
111 |
Console.WriteLine(" Description: Capable of retraining the prediction model, going back to the previous version and listing files on which the predictor was trained. "); |
|
112 |
Console.WriteLine(" -files: Lists the data files on which the currently used model was trained."); |
|
113 |
Console.WriteLine(" Example: model -files"); |
|
114 |
Console.WriteLine(" -retrain: Retrains the model using the files currently saved in the data directory."); |
|
115 |
Console.WriteLine(" Example: model -retrain"); |
|
116 |
Console.WriteLine(" -rollback: Switches the model back to the previous version."); |
|
117 |
Console.WriteLine(" Example: model -rollback"); |
|
118 |
} |
|
119 | 94 |
|
120 | 95 |
private static DataDownloader DataDownloadAndRetrievalTest(Config config) |
121 | 96 |
{ |
... | ... | |
211 | 186 |
|
212 | 187 |
private static void ConnectionTest(IPredictionController predictionController, Config config) |
213 | 188 |
{ |
214 |
ConnectionListener cl = new ConnectionListener(int.Parse(config.Port), predictionController);
|
|
189 |
ConnectionListenerAsync cl = new ConnectionListenerAsync(int.Parse(config.Port), predictionController);
|
|
215 | 190 |
cl.StartListening(); |
216 | 191 |
|
217 | 192 |
//HttpRequestHandler hrh = new HttpRequestHandler(int.Parse(config.Port)); |
Také k dispozici: Unified diff
Re #8941. Implemented asynchronous listening for clients' requests.