public class PlacementGroups extends Object
| Constructor and Description |
|---|
PlacementGroups() |
| Modifier and Type | Method and Description |
|---|---|
static PlacementGroup |
createPlacementGroup(PlacementGroupCreationOptions creationOptions)
Create a placement group.
|
static List<PlacementGroup> |
getAllPlacementGroups()
Get all placement groups in this cluster.
|
static PlacementGroup |
getGlobalPlacementGroup(String name)
Get a placement group by placement group name from all jobs.
|
static PlacementGroup |
getPlacementGroup(PlacementGroupId id)
Get a placement group by placement group Id.
|
static PlacementGroup |
getPlacementGroup(String name)
Get a placement group by placement group name from current job.
|
static void |
removePlacementGroup(PlacementGroupId id)
Remove a placement group by id.
|
public static PlacementGroup createPlacementGroup(PlacementGroupCreationOptions creationOptions)
creationOptions - Creation options of the placement group.public static PlacementGroup getPlacementGroup(PlacementGroupId id)
id - placement group id.public static PlacementGroup getPlacementGroup(String name)
name - The placement group name.public static PlacementGroup getGlobalPlacementGroup(String name)
name - The placement group name.public static List<PlacementGroup> getAllPlacementGroups()
public static void removePlacementGroup(PlacementGroupId id)
id - Id of the placement group.Copyright © 2021. All rights reserved.