Package com._1c.g5.v8.dt.import_
Class ImportDebugTrace
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.ImportDebugTrace
-
- All Implemented Interfaces:
EventListener
,org.eclipse.osgi.service.debug.DebugOptionsListener
,org.eclipse.osgi.service.debug.DebugTrace
public class ImportDebugTrace extends Object implements org.eclipse.osgi.service.debug.DebugOptionsListener, org.eclipse.osgi.service.debug.DebugTrace
Import debug options manager
-
-
Field Summary
Fields Modifier and Type Field Description static String
IMPORT_PERFORMANCE_TRACE_OPTION
Trace option constant for Import performance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.osgi.service.debug.DebugTrace
getDebugTrace()
Import pluginDebugTrace
instancestatic ImportDebugTrace
getInstance()
Returns instance ofImportDebugTrace
void
optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options)
void
startPerformanceMeasurements(Object measurementsId)
Start performance measurements if trace and option is activevoid
stopPerformanceMeasurements(Object measurementsId, String messagePattern, TimeUnit timeUnit)
Start and trace performance measurements by specified id if trace and option is activevoid
trace(String option, String message)
void
trace(String option, String message, Throwable error)
void
traceDumpStack(String option)
void
traceEntry(String option)
void
traceEntry(String option, Object methodArgument)
void
traceEntry(String option, Object[] methodArguments)
void
traceExit(String option)
void
traceExit(String option, Object result)
void
traceExit(String option, org.eclipse.core.runtime.IStatus status)
IntercepttraceExit(String, Object)
method forIStatus
type of result param to simplify output of long multi status representation.void
tracePerformance(String messagePattern, Object... args)
Traces a performance import message.
-
-
-
Field Detail
-
IMPORT_PERFORMANCE_TRACE_OPTION
public static final String IMPORT_PERFORMANCE_TRACE_OPTION
Trace option constant for Import performance- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ImportDebugTrace getInstance()
Returns instance ofImportDebugTrace
- Returns:
- instance of
ImportDebugTrace
, nevernull
-
getDebugTrace
public org.eclipse.osgi.service.debug.DebugTrace getDebugTrace()
Import pluginDebugTrace
instance- Returns:
DebugTrace
instance, can benull
if this manager not initiated
-
optionsChanged
public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options)
- Specified by:
optionsChanged
in interfaceorg.eclipse.osgi.service.debug.DebugOptionsListener
-
startPerformanceMeasurements
public void startPerformanceMeasurements(Object measurementsId)
Start performance measurements if trace and option is active- Parameters:
measurementsId
- the id of measurement, cannot benull
-
stopPerformanceMeasurements
public void stopPerformanceMeasurements(Object measurementsId, String messagePattern, TimeUnit timeUnit)
Start and trace performance measurements by specified id if trace and option is active- Parameters:
measurementsId
- the id of measurement, cannot benull
messagePattern
- the trace message, use{0}
to insert performance value, cannot benull
timeUnit
- to trace performance value in desired units, cannot benull
-
tracePerformance
public void tracePerformance(String messagePattern, Object... args)
Traces a performance import message.used
MessageFormat.format(String, Object...)
for formatting trace message- Parameters:
messagePattern
- the trace message pattern to display, cannot benull
args
- arguments object(s) to format message- See Also:
MessageFormat.format(String, Object...)
-
trace
public void trace(String option, String message)
- Specified by:
trace
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
trace
public void trace(String option, String message, Throwable error)
- Specified by:
trace
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceDumpStack
public void traceDumpStack(String option)
- Specified by:
traceDumpStack
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceEntry
public void traceEntry(String option)
- Specified by:
traceEntry
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceEntry
public void traceEntry(String option, Object methodArgument)
- Specified by:
traceEntry
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceEntry
public void traceEntry(String option, Object[] methodArguments)
- Specified by:
traceEntry
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceExit
public void traceExit(String option)
- Specified by:
traceExit
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceExit
public void traceExit(String option, Object result)
- Specified by:
traceExit
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceExit
public void traceExit(String option, org.eclipse.core.runtime.IStatus status)
IntercepttraceExit(String, Object)
method forIStatus
type of result param to simplify output of long multi status representation.- Parameters:
option
- The name of the boolean option that will control whether the trace statement is printed (e.g., "/debug/myComponent"), ornull
result
- TheIStatus
result object being returned from the method that was executed
-
-