Class ResourceOverview
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.ResourceOverview
-
- All Implemented Interfaces:
Serializable
public class ResourceOverview extends Object implements Serializable
Class containing information about the available cluster resources.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceOverview(int numberTaskManagers, int numberRegisteredSlots, int numberFreeSlots, int numberBlockedTaskManagers, int numberBlockedFreeSlots, ResourceProfile totalResource, ResourceProfile freeResource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceOverview
empty()
ResourceProfile
getFreeResource()
int
getNumberBlockedFreeSlots()
int
getNumberBlockedTaskManagers()
int
getNumberFreeSlots()
int
getNumberRegisteredSlots()
int
getNumberTaskManagers()
ResourceProfile
getTotalResource()
-
-
-
Constructor Detail
-
ResourceOverview
public ResourceOverview(int numberTaskManagers, int numberRegisteredSlots, int numberFreeSlots, int numberBlockedTaskManagers, int numberBlockedFreeSlots, ResourceProfile totalResource, ResourceProfile freeResource)
-
-
Method Detail
-
getNumberTaskManagers
public int getNumberTaskManagers()
-
getNumberRegisteredSlots
public int getNumberRegisteredSlots()
-
getNumberFreeSlots
public int getNumberFreeSlots()
-
getNumberBlockedTaskManagers
public int getNumberBlockedTaskManagers()
-
getNumberBlockedFreeSlots
public int getNumberBlockedFreeSlots()
-
getTotalResource
public ResourceProfile getTotalResource()
-
getFreeResource
public ResourceProfile getFreeResource()
-
empty
public static ResourceOverview empty()
-
-