Class TaskManagerDetailsInfo
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerInfo
-
- org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerDetailsInfo
-
- All Implemented Interfaces:
Serializable,ResponseBody
public class TaskManagerDetailsInfo extends TaskManagerInfo
Message containing base information about aTaskExecutorand more detailed metrics.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_NAME_ALLOCATED_SLOTSstatic StringFIELD_NAME_METRICS-
Fields inherited from class org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerInfo
FIELD_NAME_ADDRESS, FIELD_NAME_AVAILABLE_RESOURCE, FIELD_NAME_BLOCKED, FIELD_NAME_DATA_PORT, FIELD_NAME_HARDWARE, FIELD_NAME_JMX_PORT, FIELD_NAME_LAST_HEARTBEAT, FIELD_NAME_MEMORY, FIELD_NAME_NUMBER_AVAILABLE_SLOTS, FIELD_NAME_NUMBER_SLOTS, FIELD_NAME_RESOURCE_ID, FIELD_NAME_TOTAL_RESOURCE
-
-
Constructor Summary
Constructors Constructor Description TaskManagerDetailsInfo(ResourceID resourceId, String address, int dataPort, int jmxPort, long lastHeartbeat, int numberSlots, int numberAvailableSlots, ResourceProfileInfo totalResource, ResourceProfileInfo freeResource, HardwareDescription hardwareDescription, TaskExecutorMemoryConfiguration memoryConfiguration, Boolean blocked, Collection<SlotInfo> allocatedSlots, TaskManagerMetricsInfo taskManagerMetrics)TaskManagerDetailsInfo(TaskManagerInfoWithSlots taskManagerInfoWithSlots, TaskManagerMetricsInfo taskManagerMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Collection<SlotInfo>getAllocatedSlots()TaskManagerMetricsInfogetTaskManagerMetricsInfo()inthashCode()-
Methods inherited from class org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerInfo
getAddress, getBlocked, getDataPort, getFreeResource, getHardwareDescription, getJmxPort, getLastHeartbeat, getMemoryConfiguration, getNumberAvailableSlots, getNumberSlots, getResourceId, getTotalResource
-
-
-
-
Field Detail
-
FIELD_NAME_METRICS
public static final String FIELD_NAME_METRICS
- See Also:
- Constant Field Values
-
FIELD_NAME_ALLOCATED_SLOTS
public static final String FIELD_NAME_ALLOCATED_SLOTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaskManagerDetailsInfo
public TaskManagerDetailsInfo(ResourceID resourceId, String address, int dataPort, int jmxPort, long lastHeartbeat, int numberSlots, int numberAvailableSlots, ResourceProfileInfo totalResource, ResourceProfileInfo freeResource, HardwareDescription hardwareDescription, TaskExecutorMemoryConfiguration memoryConfiguration, @Nullable Boolean blocked, Collection<SlotInfo> allocatedSlots, TaskManagerMetricsInfo taskManagerMetrics)
-
TaskManagerDetailsInfo
public TaskManagerDetailsInfo(TaskManagerInfoWithSlots taskManagerInfoWithSlots, TaskManagerMetricsInfo taskManagerMetrics)
-
-
Method Detail
-
getTaskManagerMetricsInfo
@VisibleForTesting public final TaskManagerMetricsInfo getTaskManagerMetricsInfo()
-
getAllocatedSlots
public Collection<SlotInfo> getAllocatedSlots()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTaskManagerInfo
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTaskManagerInfo
-
-