public final class LoggingScopeFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_CONTEXT |
static String |
BRIDGE_SETUP |
static String |
CONTEXT_CLOSE |
static String |
CONTEXT_MESSAGE |
static String |
DRIVER_RESTART |
static String |
DRIVER_RESTART_ACTIVE_CONTEXT |
static String |
DRIVER_RESTART_COMPLETE |
static String |
DRIVER_RESTART_RUNNING_TASK |
static String |
DRIVER_START |
static String |
DRIVER_STOP |
static String |
DRIVER_SUBMIT |
static String |
EVALUATOR_ALLOCATED |
static String |
EVALUATOR_BRIDGE_SUBMIT |
static String |
EVALUATOR_COMPLETED |
static String |
EVALUATOR_FAILED |
static String |
EVALUATOR_LAUNCH |
static String |
EVALUATOR_REQUESTOR |
static String |
EVALUATOR_SUBMIT |
static String |
HTTP_REQUEST |
static String |
HTTP_SERVER |
static String |
LOAD_LIB |
static String |
LOCAL_JOB_SUBMIT |
static String |
REEF_SUBMIT |
static String |
TASK_COMPLETE |
static String |
TASK_MESSAGE |
static String |
TASK_RUNNING |
static String |
TASK_SUSPEND |
Modifier and Type | Method and Description |
---|---|
LoggingScope |
activeContextReceived(String contextId)
This is to measure the time in calling activeContext handler.
|
LoggingScope |
closedContext(String contextId)
This is to measure the time in calling closedContext handler.
|
LoggingScope |
contextMessageReceived(String msg)
This is to measure the time in calling contextMessageReceivedHandler.
|
LoggingScope |
driverRestart(StartTime startTime)
This is to measure the time in calling driverRestartHandler.
|
LoggingScope |
driverRestartActiveContextReceived(String contextId)
This is to measure the time in calling driverRestartActiveContextReceivedHandler.
|
LoggingScope |
driverRestartCompleted(long timeStamp)
This is to measure the time in calling driverRestartCompletedHandler.
|
LoggingScope |
driverRestartRunningTask(String taskId)
This is to measure the time in calling driverRestartRunningTaskHandler.
|
LoggingScope |
driverStart(StartTime startTime)
The method is to measure the time used to start the driver.
|
LoggingScope |
driverStop(long timeStamp)
The method is to measure the time used to stop the driver.
|
LoggingScope |
driverSubmit(Boolean submitDriver)
This is to measure the time to submit a driver.
|
LoggingScope |
evaluatorAllocated(String evaluatorId)
This is to measure the time on evaluatorAllocated handler.
|
LoggingScope |
evaluatorCompleted(String evaluatorId)
This is to measure the time in calling evaluatorCompleted handler.
|
LoggingScope |
evaluatorFailed(String evaluatorId)
This is to measure the time in calling evaluatorFailed handler.
|
LoggingScope |
evaluatorLaunch(String evaluatorId)
This is to measure the time to launch an evaluator.
|
LoggingScope |
evaluatorRequestorPassToCs()
The method is to measure the time used to pass EvaluatorRequestor from Java to .Net.
|
LoggingScope |
evaluatorRequestSubmitToJavaDriver(int evaluatorsNumber)
The method is to measure the time used to submit Evaluator request from CLR to Java driver.
|
LoggingScope |
evaluatorSubmit(int evaluatorNumber)
The method is to measure the time used to submit a Evaluator request at java side.
|
static LoggingScope |
getNewLoggingScope(Level logLevel,
String msg)
Get a new instance of LoggingScope with specified log level.
|
LoggingScope |
getNewLoggingScope(String msg)
Get a new instance of LoggingScope with injected LoggingScopeFactory instance.
|
LoggingScope |
getNewLoggingScope(String msg,
Object[] params)
Get a new instance of LoggingScope with msg and params through new.
|
LoggingScope |
httpRequest(String uri)
This is to measure the time in handling a http request.
|
LoggingScope |
httpServer()
This is to measure the time used to create HttpServer.
|
LoggingScope |
loadLib()
The method is to measure the time used to load global files and libraries.
|
LoggingScope |
localJobSubmission()
This is to measure the time for a job submission.
|
LoggingScope |
reefSubmit()
This is to measure the time to call Reef.Submit.
|
LoggingScope |
setupBridge()
The method is to measure the time used to set up Java CRL bridge.
|
LoggingScope |
taskCompleted(String taskId)
This is to measure the time in calling taskCompletedHandler.
|
LoggingScope |
taskMessageReceived(String msg)
This is to measure the time in calling taskMessageReceivedHandler.
|
LoggingScope |
taskRunning(String taskId)
This is to measure the time in calling runningTaskHandler.
|
LoggingScope |
taskSuspended(String taskId)
This is to measure the time in calling taskSuspendedHandler.
|
public static final String DRIVER_START
public static final String DRIVER_STOP
public static final String BRIDGE_SETUP
public static final String LOAD_LIB
public static final String EVALUATOR_REQUESTOR
public static final String EVALUATOR_BRIDGE_SUBMIT
public static final String EVALUATOR_SUBMIT
public static final String EVALUATOR_LAUNCH
public static final String EVALUATOR_ALLOCATED
public static final String EVALUATOR_COMPLETED
public static final String EVALUATOR_FAILED
public static final String ACTIVE_CONTEXT
public static final String TASK_RUNNING
public static final String TASK_COMPLETE
public static final String TASK_MESSAGE
public static final String CONTEXT_MESSAGE
public static final String CONTEXT_CLOSE
public static final String DRIVER_RESTART
public static final String DRIVER_RESTART_COMPLETE
public static final String DRIVER_RESTART_RUNNING_TASK
public static final String DRIVER_RESTART_ACTIVE_CONTEXT
public static final String TASK_SUSPEND
public static final String DRIVER_SUBMIT
public static final String REEF_SUBMIT
public static final String LOCAL_JOB_SUBMIT
public static final String HTTP_REQUEST
public static final String HTTP_SERVER
public static LoggingScope getNewLoggingScope(Level logLevel, String msg)
logLevel
- msg
- public LoggingScope getNewLoggingScope(String msg)
msg
- public LoggingScope getNewLoggingScope(String msg, Object[] params)
msg
- params
- public LoggingScope driverStart(StartTime startTime)
startTime
- public LoggingScope driverStop(long timeStamp)
timeStamp
- public LoggingScope setupBridge()
public LoggingScope loadLib()
public LoggingScope evaluatorRequestorPassToCs()
public LoggingScope evaluatorRequestSubmitToJavaDriver(int evaluatorsNumber)
evaluatorsNumber
- public LoggingScope evaluatorSubmit(int evaluatorNumber)
evaluatorNumber
- public LoggingScope evaluatorAllocated(String evaluatorId)
evaluatorId
- public LoggingScope evaluatorLaunch(String evaluatorId)
evaluatorId
- public LoggingScope evaluatorCompleted(String evaluatorId)
evaluatorId
- public LoggingScope evaluatorFailed(String evaluatorId)
evaluatorId
- public LoggingScope activeContextReceived(String contextId)
contextId
- public LoggingScope closedContext(String contextId)
contextId
- public LoggingScope taskRunning(String taskId)
taskId
- public LoggingScope taskCompleted(String taskId)
taskId
- public LoggingScope taskSuspended(String taskId)
taskId
- public LoggingScope taskMessageReceived(String msg)
msg
- public LoggingScope contextMessageReceived(String msg)
msg
- public LoggingScope driverRestart(StartTime startTime)
startTime
- public LoggingScope driverRestartCompleted(long timeStamp)
timeStamp
- public LoggingScope driverRestartRunningTask(String taskId)
taskId
- public LoggingScope driverRestartActiveContextReceived(String contextId)
contextId
- public LoggingScope httpRequest(String uri)
uri
- public LoggingScope httpServer()
public LoggingScope driverSubmit(Boolean submitDriver)
submitDriver
- public LoggingScope reefSubmit()
public LoggingScope localJobSubmission()
Copyright © 2017 The Apache Software Foundation. All rights reserved.