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 |
getFileName()
Get the value of PROFILER:FILENAME attribute.
|
static character |
getResourceType()
Get the type of its associated handle.
|
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 |
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 |
setDescription(character description)
Set the value of PROFILER:DESCRIPTION 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 boolean |
unknown()
Implementation for the
WrappedResource.unknown() API. |
static boolean |
valid()
Implementation for the
WrappedResource.valid() API. |
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 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 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.