test_class.declarator: vufsService
test_class.modifier: private
test_class.original_string: private IVufsService vufsService;
test_class.type: IVufsService
test_class.var_name: vufsService
test_class.file: vufs/src/test/java/com/stnetix/ariaddna/vufs/service/VufsServiceImplTest.java
test_class.identifier: VufsServiceImplTest
test_case.body: @Test
      public void setAllocationForBlockByUuid()
              throws BlockNotExistInMetatableException {
          Metafile newMetafile = vufsService.createEmptyMetafile();
          newMetafile.setAllocationStrategy(AllocationStrategy.HA);
          vufsService.addMetafileToMetatable(newMetafile);
          String newBlockUuid = UUID.randomUUID().toString();
          vufsService.addBlockByUuidToMetafile(newBlockUuid, newMetafile);
          Set<String> allocationSet = new HashSet<>(5);
          for (int i = 0; i < 5; i++) {
              allocationSet.add(UUID.randomUUID().toString());
          }
          vufsService.setAllocationForBlockByUuid(newBlockUuid, allocationSet);
          Set<String> resultAllocationSet = vufsService.getAllocationByBlockUuid(newBlockUuid);
          assertFalse(resultAllocationSet.isEmpty());
          assertEquals(resultAllocationSet.size(), 5);
      }
test_case.class_method_signature: VufsServiceImplTest.setAllocationForBlockByUuid()
test_case.full_signature: @Test public void setAllocationForBlockByUuid()
test_case.identifier: setAllocationForBlockByUuid
test_case.invocations: createEmptyMetafile setAllocationStrategy addMetafileToMetatable toString randomUUID addBlockByUuidToMetafile add toString randomUUID setAllocationForBlockByUuid getAllocationByBlockUuid assertFalse isEmpty assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void setAllocationForBlockByUuid()
focal_class.declarator: currentMetatable
focal_class.modifier: private
focal_class.original_string: private Metatable currentMetatable;
focal_class.type: Metatable
focal_class.var_name: currentMetatable
focal_class.declarator: profile
focal_class.modifier: private
focal_class.original_string: private IProfile profile;
focal_class.type: IProfile
focal_class.var_name: profile
focal_class.declarator: metatableTransformer
focal_class.modifier: private
focal_class.original_string: private MetatableTransformer metatableTransformer;
focal_class.type: MetatableTransformer
focal_class.var_name: metatableTransformer
focal_class.declarator: persistingService
focal_class.modifier: private
focal_class.original_string: private IMetatableService persistingService;
focal_class.type: IMetatableService
focal_class.var_name: persistingService
focal_class.file: vufs/src/main/java/com/stnetix/ariaddna/vufs/service/VufsServiceImpl.java
focal_class.identifier: VufsServiceImpl
focal_class.interfaces: implements IVufsService
focal_class.class_method_signature: VufsServiceImpl.VufsServiceImpl(IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.full_signature: @Autowired public  VufsServiceImpl(IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.identifier: VufsServiceImpl
focal_class.modifiers: @Autowired public
focal_class.parameters: (IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.signature:  VufsServiceImpl(IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.class_method_signature: VufsServiceImpl.createEmptyMetafile()
focal_class.full_signature: @Override public Metafile createEmptyMetafile()
focal_class.identifier: createEmptyMetafile
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Metafile
focal_class.signature: Metafile createEmptyMetafile()
focal_class.class_method_signature: VufsServiceImpl.getMetafileByUuid(String fileUuid)
focal_class.full_signature: @Override public Metafile getMetafileByUuid(String fileUuid)
focal_class.identifier: getMetafileByUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String fileUuid)
focal_class.return: Metafile
focal_class.signature: Metafile getMetafileByUuid(String fileUuid)
focal_class.class_method_signature: VufsServiceImpl.addBlockByUuidToMetafile(String blockUuid, Metafile metafile)
focal_class.full_signature: @Override public Metafile addBlockByUuidToMetafile(String blockUuid, Metafile metafile)
focal_class.identifier: addBlockByUuidToMetafile
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid, Metafile metafile)
focal_class.return: Metafile
focal_class.signature: Metafile addBlockByUuidToMetafile(String blockUuid, Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.removeBlockByUuidFromMetafile(String blockUuid, Metafile metafile)
focal_class.full_signature: @Override public Metafile removeBlockByUuidFromMetafile(String blockUuid, Metafile metafile)
focal_class.identifier: removeBlockByUuidFromMetafile
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid, Metafile metafile)
focal_class.return: Metafile
focal_class.signature: Metafile removeBlockByUuidFromMetafile(String blockUuid, Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.addMetafileToMetatable(Metafile metafile)
focal_class.full_signature: @Override public boolean addMetafileToMetatable(Metafile metafile)
focal_class.identifier: addMetafileToMetatable
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile metafile)
focal_class.return: boolean
focal_class.signature: boolean addMetafileToMetatable(Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.removeMetafileFromMetatable(Metafile metafile)
focal_class.full_signature: @Override public boolean removeMetafileFromMetatable(Metafile metafile)
focal_class.identifier: removeMetafileFromMetatable
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile metafile)
focal_class.return: boolean
focal_class.signature: boolean removeMetafileFromMetatable(Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.getAllocationByBlockUuid(String blockUuid)
focal_class.full_signature: @Override public Set<String> getAllocationByBlockUuid(String blockUuid)
focal_class.identifier: getAllocationByBlockUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid)
focal_class.return: Set<String>
focal_class.signature: Set<String> getAllocationByBlockUuid(String blockUuid)
focal_class.class_method_signature: VufsServiceImpl.setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_class.full_signature: @Override public void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_class.identifier: setAllocationForBlockByUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid, Set<String> allocationSet)
focal_class.return: void
focal_class.signature: void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_class.class_method_signature: VufsServiceImpl.addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_class.full_signature: @Override public boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_class.identifier: addMetafileAsChildToParent
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile childMetafile,
              String parentMetafileUuid)
focal_class.return: boolean
focal_class.signature: boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_class.class_method_signature: VufsServiceImpl.removeMetafileFromParent(String childMetafileUuid,
              String parentMetafileUuid)
focal_class.full_signature: @Override public boolean removeMetafileFromParent(String childMetafileUuid,
              String parentMetafileUuid)
focal_class.identifier: removeMetafileFromParent
focal_class.modifiers: @Override public
focal_class.parameters: (String childMetafileUuid,
              String parentMetafileUuid)
focal_class.return: boolean
focal_class.signature: boolean removeMetafileFromParent(String childMetafileUuid,
              String parentMetafileUuid)
focal_class.class_method_signature: VufsServiceImpl.getAllocationStrategyByMetafileUuid(String metafileUuid)
focal_class.full_signature: @Override public AllocationStrategy getAllocationStrategyByMetafileUuid(String metafileUuid)
focal_class.identifier: getAllocationStrategyByMetafileUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String metafileUuid)
focal_class.return: AllocationStrategy
focal_class.signature: AllocationStrategy getAllocationStrategyByMetafileUuid(String metafileUuid)
focal_class.class_method_signature: VufsServiceImpl.setAllocationStrategyByMetafileUuid(String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.full_signature: @Override public void setAllocationStrategyByMetafileUuid(String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.identifier: setAllocationStrategyByMetafileUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.return: void
focal_class.signature: void setAllocationStrategyByMetafileUuid(String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.class_method_signature: VufsServiceImpl.getExceptionInfo(Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.full_signature: private String getExceptionInfo(Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.identifier: getExceptionInfo
focal_class.modifiers: private
focal_class.parameters: (Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.return: String
focal_class.signature: String getExceptionInfo(Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.class_method_signature: VufsServiceImpl.persistChanges()
focal_class.full_signature: @PreDestroy public void persistChanges()
focal_class.identifier: persistChanges
focal_class.modifiers: @PreDestroy public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void persistChanges()
focal_method.body: @Override
      public void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
              throws BlockNotExistInMetatableException {
          boolean isAdded = false;
          for (Metafile metafile : currentMetatable.getMetafileSet()) {
              if (metafile.getBlockUuidList().contains(blockUuid)) {
                  isAdded = true;
                  for (String cloud : allocationSet) {
                      metafile.addBlockAllocation(blockUuid, cloud);
                  }
                  break;
              }
          }
          if (!isAdded) {
              throw new BlockNotExistInMetatableException(MessageFormat.format(
                      "Block with uuid: {0}, does not exist in currentMetatable with uuid: {1}, with type: {2}",
                      blockUuid, currentMetatable.getUuid(), currentMetatable.getType()));
          }
      }
focal_method.class_method_signature: VufsServiceImpl.setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_method.full_signature: @Override public void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_method.identifier: setAllocationForBlockByUuid
focal_method.invocations: getMetafileSet contains getBlockUuidList addBlockAllocation format getUuid getType
focal_method.modifiers: @Override public
focal_method.parameters: (String blockUuid, Set<String> allocationSet)
focal_method.return: void
focal_method.signature: void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)