public class ProfilerUtils
extends java.lang.Object
There is no behavior implemented for the PROFILER - the attributes values are saved and retrieved, and the methods are no-ops.
Modifier and Type | Class and Description |
---|---|
private static class |
ProfilerUtils.WorkArea
Stores global data relating to the state of the current context.
|
Modifier and Type | Field and Description |
---|---|
private static ContextLocal<ProfilerUtils.WorkArea> |
work
Context local proxy that allows PROFILER attributes to be pushed from server to client.
|
Constructor and Description |
---|
ProfilerUtils() |
Modifier and Type | Method and Description |
---|---|
static handle |
asHandle()
Get a the instance for the PROFILER system handle.
|
static character |
getDescription()
Get the value of PROFILER:DESCRIPTION attribute.
|
static character |
getDirectory()
Get the value of PROFILER:DIRECTORY attribute.
|
static character |
getFileName()
Get the value of PROFILER:FILENAME attribute.
|
static character |
getResourceType()
Get the type of its associated handle.
|
static character |
getTraceFilter()
Get the PROFILER:TRACE-FILTER attribute.
|
static character |
getTracing()
Get the PROFILER:TRACING attribute.
|
static java.lang.Long |
id()
Get this resource's ID.
|
static void |
id(long id)
Set this resource's ID.
|
static void |
initFileInfo(character filename)
Set the value of PROFILER:FILENAME attribute.
|
static void |
initFileInfo(java.lang.String filename)
Set the value of PROFILER:FILENAME attribute.
|
static logical |
isCoverage()
Get the PROFILER:COVERAGE attribute.
|
static logical |
isEnabled()
Get the value of PROFILER:ENABLED attribute.
|
static logical |
isListings()
Get the value of PROFILER:LISTINGS attribute.
|
static logical |
isProfiling()
Get the value of PROFILER:PROFILING attribute.
|
static void |
readOnlyError(java.lang.String attribute)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
static void |
readOnlyError(java.lang.String attribute,
java.lang.Object expr)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
static void |
setCoverage(boolean coverage)
Set the PROFILER:COVERAGE attribute.
|
static void |
setCoverage(logical coverage)
Set the PROFILER:COVERAGE attribute.
|
static void |
setDescription(character description)
Set the value of PROFILER:DESCRIPTION attribute.
|
static void |
setDirectory(character directory)
Set the value of PROFILER:DIRECTORY attribute.
|
static void |
setEnabled(boolean enabled)
Set the value of PROFILER:ENABLED attribute.
|
static void |
setEnabled(logical enabled)
Set the value of PROFILER:ENABLED attribute.
|
static void |
setListings(logical listings)
Set the value of PROFILER:LISTINGS attribute.
|
static void |
setProfiling(logical profiling)
Set the value of PROFILER:PROFILING attribute.
|
static void |
setTraceFilter(character filter)
Set the PROFILER:TRACE-FILTER attribute.
|
static void |
setTraceFilter(java.lang.String filter)
Set the PROFILER:TRACE-FILTER attribute.
|
static void |
setTracing(character procs)
Set the PROFILER:TRACING attribute.
|
static void |
setTracing(java.lang.String procs)
Set the PROFILER:TRACING attribute.
|
static boolean |
unknown()
Implementation for the
WrappedResource.unknown() API. |
static logical |
userData(character data)
Definition of the PROFILER:USER-DATA() method.
|
static logical |
userData(java.lang.String data)
Definition of the PROFILER:USER-DATA() method.
|
static boolean |
valid()
Implementation for the
WrappedResource.valid() API. |
static logical |
writeData()
Definition of the PROFILER:WRITE-DATA() method.
|
private static final ContextLocal<ProfilerUtils.WorkArea> work
public static handle asHandle()
StaticProxy.obtain(Class, Class[])
, using the Profiler
interface and
its methods implemented by these classes: ProfilerUtils
.public static java.lang.Long id()
public static void id(long id)
This is a no-op for system handles.
id
- The resource's ID.public static character getResourceType()
public static boolean valid()
WrappedResource.valid()
API.public static boolean unknown()
WrappedResource.unknown()
API.public static void readOnlyError(java.lang.String attribute)
attribute
- The attribute's name.handle.readOnlyError(handle, String)
public static void readOnlyError(java.lang.String attribute, java.lang.Object expr)
attribute
- The attribute's name.expr
- The value which is attempted to be assigned to the read-only attribute.handle.readOnlyError(handle, String, Object)
public static void setProfiling(logical profiling)
profiling
- The new value of PROFILER:PROFILING attribute.public static logical isProfiling()
public static void setEnabled(logical enabled)
enabled
- The new value of PROFILER:ENABLED attribute.public static void setEnabled(boolean enabled)
enabled
- The new value of PROFILER:ENABLED attribute.public static logical isEnabled()
public static void setDescription(character description)
description
- The new value of PROFILER:DESCRIPTION attribute.public static character getDescription()
public static void setDirectory(character directory)
directory
- The new value of PROFILER:DIRECTORY attribute.public static character getDirectory()
public static void setListings(logical listings)
listings
- The new value of PROFILER:LISTINGS attribute.public static logical isListings()
public static character getFileName()
public static void initFileInfo(character filename)
filename
- The new value of PROFILER:FILENAME attribute.public static void initFileInfo(java.lang.String filename)
filename
- The new value of PROFILER:FILENAME attribute.public static logical userData(java.lang.String data)
data
- The data.true
if the data was written.public static logical userData(character data)
data
- The data.true
if the data was written.public static logical writeData()
true
if the data was written.public static character getTraceFilter()
public static void setTraceFilter(java.lang.String filter)
filter
- The filter value.public static void setTraceFilter(character filter)
filter
- The filter value.public static character getTracing()
public static void setTracing(java.lang.String procs)
procs
- The comma-separated list of procedures.public static void setTracing(character procs)
procs
- The comma-separated list of procedures.public static logical isCoverage()
public static void setCoverage(boolean coverage)
coverage
- The flag state.public static void setCoverage(logical coverage)
coverage
- The flag state.