Package io.milvus.common.resourcegroup
Class ResourceGroupConfig.Builder
- java.lang.Object
-
- io.milvus.common.resourcegroup.ResourceGroupConfig.Builder
-
- Enclosing class:
- ResourceGroupConfig
public static final class ResourceGroupConfig.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceGroupConfigbuild()ResourceGroupConfig.BuilderwithFrom(List<ResourceGroupTransfer> from)Set the transfer from list.ResourceGroupConfig.BuilderwithLimits(ResourceGroupLimit limits)Set the limited node num.ResourceGroupConfig.BuilderwithNodeFilter(ResourceGroupNodeFilter nodeFilter)Set the node filter.ResourceGroupConfig.BuilderwithRequests(ResourceGroupLimit requests)Set the requests node num.ResourceGroupConfig.BuilderwithTo(List<ResourceGroupTransfer> to)Set the transfer to list.
-
-
-
Method Detail
-
withRequests
public ResourceGroupConfig.Builder withRequests(ResourceGroupLimit requests)
Set the requests node num.- Parameters:
requests- requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group.- Returns:
Builder
-
withLimits
public ResourceGroupConfig.Builder withLimits(ResourceGroupLimit limits)
Set the limited node num.- Parameters:
limits- limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group.- Returns:
Builder
-
withFrom
public ResourceGroupConfig.Builder withFrom(List<ResourceGroupTransfer> from)
Set the transfer from list.- Parameters:
from- missing node should be transfer from given resource group at high priority in repeated list.- Returns:
Builder
-
withTo
public ResourceGroupConfig.Builder withTo(List<ResourceGroupTransfer> to)
Set the transfer to list.- Parameters:
to- redundant node should be transfer to given resource group at high priority in repeated list.- Returns:
Builder
-
withNodeFilter
public ResourceGroupConfig.Builder withNodeFilter(ResourceGroupNodeFilter nodeFilter)
Set the node filter.- Parameters:
nodeFilter- if node filter set, resource group will prefer to accept node which match node filter.- Returns:
Builder
-
build
public ResourceGroupConfig build()
-
-