Commit 0140d1a2 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

add vm 90s blocking

parent e5af72ac
Loading
Loading
Loading
Loading
Loading
+11
Changes for src/main/java/org/etsi/osl/example/gc/api/VirtualMachine.java: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -77,6 +77,17 @@ public class VirtualMachine extends ExampleResourceSpec {
        healthStatus = "Healthy";
        logger.info(infoMessage);
        
        if (!simulation) {
          try {
            logger.info("....will sleep... for provisioning");
            Thread.sleep(1000*90);
          } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
        }

        logger.info("....done...");
        resourceUpdate.addResourceCharacteristicItemShort("status.infoMessage", infoMessage, EValueType.TEXT.getValue());
        resourceUpdate.addResourceCharacteristicItemShort("status.Health", healthStatus, EValueType.TEXT.getValue());
        resourceUpdate.addResourceCharacteristicItemShort("status.UUID", UUID.randomUUID().toString(), EValueType.TEXT.getValue());