Examples of NetworkPoolBuilder


Examples of org.platformlayer.ops.pool.NetworkPoolBuilder

          PoolBuilder<AddressModel> poolBuilder = null;

          String ipv4Public = host.ipv4Public;
          if (ipv4Public != null) {
            poolBuilder = new NetworkPoolBuilder(ipv4Public, skipCount);
          }

          StaticFilesystemBackedPool<AddressModel> addressPool = new StaticFilesystemBackedPool<AddressModel>(
              AddressModel.class, poolBuilder, target, resourceDir, perPortDir);
View Full Code Here

Examples of org.platformlayer.ops.pool.NetworkPoolBuilder

          // Skip the first entries in the CIDR as it's probably not valid
          // 0: Network identifier
          // 1: Gateway (?)
          // 2: Host (?)
          int skipCount = 3;
          return new NetworkPoolBuilder(privateCidr, skipCount);
        }
        return null;
      }
    };
View Full Code Here

Examples of org.platformlayer.ops.pool.NetworkPoolBuilder

            IpRange cidr = IpRange.parse(net.cidr);
            if (!cidr.isIpv6()) {
              continue;
            }

            return new NetworkPoolBuilder(net.cidr, skipCount, net);
          }

          log.warn("Unable to find an IPV6 network configured on " + sharedNetworkKey);
          return null;
        } else {
          String privateCidr = host.ipv6;
          if (privateCidr != null) {
            return new NetworkPoolBuilder(privateCidr, skipCount, null);
          }
          return null;
        }
      }
    };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.