Search in sources :

Example 1 with FRUSystemData

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;
}
Also used : FRUSystemData(com.dell.cpsd.paqx.fru.dto.FRUSystemData)

Example 2 with 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);
}
Also used : FRUSystemData(com.dell.cpsd.paqx.fru.dto.FRUSystemData) ScaleIOSystemDataRestRep(com.dell.cpsd.storage.capabilities.api.ScaleIOSystemDataRestRep) UUID(java.util.UUID) Test(org.junit.Test)

Example 3 with FRUSystemData

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);
}
Also used : FRUSystemData(com.dell.cpsd.paqx.fru.dto.FRUSystemData)

Example 4 with FRUSystemData

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);
}
Also used : FRUSystemData(com.dell.cpsd.paqx.fru.dto.FRUSystemData)

Aggregations

FRUSystemData (com.dell.cpsd.paqx.fru.dto.FRUSystemData)4 ScaleIOSystemDataRestRep (com.dell.cpsd.storage.capabilities.api.ScaleIOSystemDataRestRep)1 UUID (java.util.UUID)1 Test (org.junit.Test)1