use of com.dell.cpsd.paqx.fru.dto.FRUSystemData in project fru-paqx-parent by dellemc-symphony.
the class DataServiceImpl method ensureSystemDataExists.
private FRUSystemData ensureSystemDataExists(UUID jobId) {
FRUSystemData fruSystemData = jobIdFRUSystemData.get(jobId);
if (fruSystemData == null) {
fruSystemData = new FRUSystemData();
jobIdFRUSystemData.put(jobId, fruSystemData);
}
return fruSystemData;
}
use of com.dell.cpsd.paqx.fru.dto.FRUSystemData in project fru-paqx-parent by dellemc-symphony.
the class DataServiceImplTest method getData.
@Test
public void getData() {
UUID jobId = UUID.randomUUID();
dataServiceUnderTest.saveScaleioData(jobId, new ScaleIOSystemDataRestRep());
FRUSystemData taskData = dataServiceUnderTest.getData(jobId);
assertNotNull(taskData);
}
use of com.dell.cpsd.paqx.fru.dto.FRUSystemData in project fru-paqx-parent by dellemc-symphony.
the class DataServiceImpl method saveScaleioData.
@Override
public void saveScaleioData(final UUID jobId, final ScaleIOSystemDataRestRep scaleIOSystemDataRestRep) {
FRUSystemData fruSystemData = ensureSystemDataExists(jobId);
fruSystemData.setScaleIOData(scaleIOSystemDataRestRep);
}
use of com.dell.cpsd.paqx.fru.dto.FRUSystemData in project fru-paqx-parent by dellemc-symphony.
the class DataServiceImpl method saveVcenterData.
@Override
public void saveVcenterData(UUID jobId, vCenterSystemProperties vcenterSystemProperties) {
FRUSystemData fruSystemData = ensureSystemDataExists(jobId);
fruSystemData.setvCenterSystem(vcenterSystemProperties);
}
Aggregations