public final class CloudProvisioningAlgorithm extends Object
Modifier and Type | Method and Description |
---|---|
static CloudProvisioningRecord |
findTemplateWithMostFreeCapacity(Collection<? extends CloudProvisioningRecord> provisionables)
Given a bunch of templates to choose from, works out which one we should
use next.
|
static String |
findUnusedName(CloudProvisioningRecord record)
Chooses a name for a new node.
|
public static CloudProvisioningRecord findTemplateWithMostFreeCapacity(Collection<? extends CloudProvisioningRecord> provisionables)
provisionables
- Template records to decide between.public static String findUnusedName(CloudProvisioningRecord record)
vSphereCloudSlaveTemplate.getCloneNamePrefix()
.
record
- Our record regarding the template the agent will be created
from.vSphereCloudSlaveTemplate.getCloneNamePrefix()
.Copyright © 2016–2022. All rights reserved.