public class ProfilingUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TASKMANAGER_REPORTINTERVAL
Default interval which the task manager uses to report profiling data to the job manager.
|
static String |
ENABLE_PROFILING_KEY
The key to check the job manager's profiling component should be enabled.
|
static String |
JOBMANAGER_CLASSNAME_KEY
The class name of the the job manager's profiling component to load if progiling is enabled.
|
static int |
JOBMANAGER_DEFAULT_RPC_PORT
The default network port the job manager's profiling component starts its RPC server on.
|
static String |
JOBMANAGER_RPC_PORT_KEY
The key to check the port of the job manager's profiling RPC server.
|
static String |
PROFILE_JOB_KEY
The key to check whether job profiling should be enabled for a specific job.
|
static String |
TASKMANAGER_CLASSNAME_KEY
The class name of the task manager's profiling component to load if profiling is enabled.
|
static String |
TASKMANAGER_REPORTINTERVAL_KEY
Key to interval in which a task manager is supposed to send profiling data to the job manager.
|
| Constructor and Description |
|---|
ProfilingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JobManagerProfiler |
loadJobManagerProfiler(String profilerClassName,
InetAddress jobManagerBindAddress)
Creates an instance of the job manager's profiling component.
|
static TaskManagerProfiler |
loadTaskManagerProfiler(String profilerClassName,
InetAddress jobManagerAddress,
InstanceConnectionInfo instanceConnectionInfo)
Creates an instance of the task manager's profiling component.
|
public static final String ENABLE_PROFILING_KEY
public static final String JOBMANAGER_CLASSNAME_KEY
public static final String TASKMANAGER_CLASSNAME_KEY
public static final String PROFILE_JOB_KEY
public static final String JOBMANAGER_RPC_PORT_KEY
public static final int JOBMANAGER_DEFAULT_RPC_PORT
public static final String TASKMANAGER_REPORTINTERVAL_KEY
public static final int DEFAULT_TASKMANAGER_REPORTINTERVAL
public static JobManagerProfiler loadJobManagerProfiler(String profilerClassName, InetAddress jobManagerBindAddress)
profilerClassName - the class name of the profiling component to loadjobManagerBindAddress - the address the job manager's RPC server is bound tonull if an error occurspublic static TaskManagerProfiler loadTaskManagerProfiler(String profilerClassName, InetAddress jobManagerAddress, InstanceConnectionInfo instanceConnectionInfo)
profilerClassName - the class name of the profiling component to loadnull if an error occursCopyright © 2015 The Apache Software Foundation. All rights reserved.