collWS = new CollectorServiceProxy(prop.getProperty("odbserverurl") + "/collector/collectorService");
while (true) {
UserDataWrapperMapEntry[] mapEntry = new UserDataWrapperMapEntry[dataGen.getSeriesJob().size()];
UserDataWrapper wrapper = new UserDataWrapper(mapEntry);
for (int j = 0; j < dataGen.getSeriesJob().size(); j++) {
JobSeriesExecuter jobExec = null;
mapEntry[j] = new UserDataWrapperMapEntry();
mapEntry[j].setKey((long)j + 1);
if (dataGen.getSeriesJob().get(j).getJobSourceType().equalsIgnoreCase("sql")) {
jobExec = new DatabaseExecutor(dsDetails.getDataSourceID());
} else if(dataGen.getSeriesJob().get(j).getJobSourceType().equalsIgnoreCase("sysmon")) {
jobExec = new SysmonExecutor(dsDetails.getDataSourceID());
}
mapEntry[j].setValue(jobExec.jobExecutor(dataGen.getSeriesJob().get(j)));
}
wrapper.setMap(mapEntry);
try {
collWS.addDataSeries(publisherID, dsDetails.getDataSourceID(), wrapper);
Thread.sleep(dataGen.getJobFrequency());
} catch (InterruptedException e) {
log.info("", e);