Class ProfilingInfo
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.ProfilingInfo
-
- All Implemented Interfaces:
Serializable
,ResponseBody
public class ProfilingInfo extends Object implements ResponseBody, Serializable
Contains information of a Profiling Instance.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProfilingInfo.ProfilingMode
Supported profiling mode in async-profiler.static class
ProfilingInfo.ProfilingStatus
Profiling Status.
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_NAME_DURATION
static String
FIELD_NAME_FINISHED_TIME
static String
FIELD_NAME_MESSAGE
static String
FIELD_NAME_MODE
static String
FIELD_NAME_OUTPUT_FILE
static String
FIELD_NAME_STATUS
static String
FIELD_NAME_TRIGGER_TIME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProfilingInfo
create(long duration, ProfilingInfo.ProfilingMode mode)
static ProfilingInfo
create(ProfilingInfo.ProfilingStatus status, ProfilingInfo.ProfilingMode mode, long triggerTime, long finishedTime, long duration, String message, String outputPath)
ProfilingInfo
fail(String message)
Long
getDuration()
Long
getFinishedTime()
String
getMessage()
String
getOutputFile()
ProfilingInfo.ProfilingMode
getProfilingMode()
ProfilingInfo.ProfilingStatus
getStatus()
long
getTriggerTime()
ProfilingInfo
success(String outputFile)
String
toString()
-
-
-
Field Detail
-
FIELD_NAME_STATUS
public static final String FIELD_NAME_STATUS
- See Also:
- Constant Field Values
-
FIELD_NAME_MODE
public static final String FIELD_NAME_MODE
- See Also:
- Constant Field Values
-
FIELD_NAME_TRIGGER_TIME
public static final String FIELD_NAME_TRIGGER_TIME
- See Also:
- Constant Field Values
-
FIELD_NAME_FINISHED_TIME
public static final String FIELD_NAME_FINISHED_TIME
- See Also:
- Constant Field Values
-
FIELD_NAME_DURATION
public static final String FIELD_NAME_DURATION
- See Also:
- Constant Field Values
-
FIELD_NAME_MESSAGE
public static final String FIELD_NAME_MESSAGE
- See Also:
- Constant Field Values
-
FIELD_NAME_OUTPUT_FILE
public static final String FIELD_NAME_OUTPUT_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
fail
public ProfilingInfo fail(String message)
-
success
public ProfilingInfo success(String outputFile)
-
getStatus
public ProfilingInfo.ProfilingStatus getStatus()
-
getProfilingMode
public ProfilingInfo.ProfilingMode getProfilingMode()
-
getDuration
public Long getDuration()
-
getMessage
public String getMessage()
-
getFinishedTime
public Long getFinishedTime()
-
getOutputFile
public String getOutputFile()
-
getTriggerTime
public long getTriggerTime()
-
create
public static ProfilingInfo create(long duration, ProfilingInfo.ProfilingMode mode)
-
create
public static ProfilingInfo create(ProfilingInfo.ProfilingStatus status, ProfilingInfo.ProfilingMode mode, long triggerTime, long finishedTime, long duration, String message, String outputPath)
-
-