Package com.vmware.bdd.entity.IpBlockEntity

Examples of com.vmware.bdd.entity.IpBlockEntity.BlockType


      Long[] owners = { 1L, 2L, 3L, 4L, 5L };
      BlockType[] blockTypes = { BlockType.ASSIGNED, BlockType.FREE };

      for (int i = 0; i < count; ++i) {
         Long ownerId = IpBlockEntity.FREE_BLOCK_OWNER_ID;
         BlockType blockType = blockTypes[(int) (Math.random() * blockTypes.length)
                                % blockTypes.length];
         if (blockType != BlockType.FREE) {
            ownerId = owners[(int) (Math.random() * owners.length) % owners.length];
         }

View Full Code Here

TOP

Related Classes of com.vmware.bdd.entity.IpBlockEntity.BlockType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.