Search in sources :

Example 6 with Parent

use of com.vmware.flowgate.poweriqworker.model.Parent in project flowgate by vmware.

the class SyncSensorMetaDataJobTest method getRooms.

List<Room> getRooms() {
    List<Room> rooms = new ArrayList<Room>();
    Room room = new Room();
    room.setName("room01");
    room.setId(8);
    Parent parent = new Parent();
    parent.setId(5);
    parent.setType("floor");
    room.setParent(parent);
    rooms.add(room);
    return rooms;
}
Also used : Parent(com.vmware.flowgate.poweriqworker.model.Parent) ArrayList(java.util.ArrayList) Room(com.vmware.flowgate.poweriqworker.model.Room)

Example 7 with Parent

use of com.vmware.flowgate.poweriqworker.model.Parent in project flowgate by vmware.

the class SyncSensorMetaDataJobTest method getFloors.

List<Floor> getFloors() {
    List<Floor> floors = new ArrayList<Floor>();
    Floor floor = new Floor();
    floor.setName("floor01");
    floor.setId(5);
    Parent parent = new Parent();
    parent.setId(7);
    parent.setType("data_center");
    floor.setParent(parent);
    floors.add(floor);
    return floors;
}
Also used : Floor(com.vmware.flowgate.poweriqworker.model.Floor) Parent(com.vmware.flowgate.poweriqworker.model.Parent) ArrayList(java.util.ArrayList)

Aggregations

Parent (com.vmware.flowgate.poweriqworker.model.Parent)7 ArrayList (java.util.ArrayList)6 Sensor (com.vmware.flowgate.poweriqworker.model.Sensor)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 Asset (com.vmware.flowgate.common.model.Asset)1 Aisle (com.vmware.flowgate.poweriqworker.model.Aisle)1 Floor (com.vmware.flowgate.poweriqworker.model.Floor)1 Rack (com.vmware.flowgate.poweriqworker.model.Rack)1 Room (com.vmware.flowgate.poweriqworker.model.Room)1 Row (com.vmware.flowgate.poweriqworker.model.Row)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1