|
@@ -29,8 +29,8 @@ public class ProbeService {
|
|
|
@Autowired
|
|
|
private NettyServer server;
|
|
|
|
|
|
- // @Autowired
|
|
|
- // private PackageHandler packageHandler;
|
|
|
+ @Autowired
|
|
|
+ private PackageHandler packageHandler;
|
|
|
|
|
|
public Map<Short, Probe> getProbes() {
|
|
|
return probes;
|
|
@@ -181,11 +181,11 @@ public class ProbeService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- // public void genData(Integer dataCount) {
|
|
|
- // DataGenerator dataGenerator = new DataGenerator();
|
|
|
- // List<DataResponsePackage> packages = dataGenerator.generate(dataCount);
|
|
|
- // for (DataResponsePackage dataPackage: packages) {
|
|
|
- // packageHandler.handleDataResponsePackage(dataPackage);
|
|
|
- // }
|
|
|
- // }
|
|
|
+ public void genData(Integer dataCount) {
|
|
|
+ DataGenerator dataGenerator = new DataGenerator();
|
|
|
+ List<DataResponsePackage> packages = dataGenerator.generate(dataCount);
|
|
|
+ for (DataResponsePackage dataPackage: packages) {
|
|
|
+ packageHandler.handleDataResponsePackage(dataPackage);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|