Package system.diagnostics
Class Activity
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.diagnostics.Activity
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class Activity extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Diagnostics.Activity, System.Diagnostics.DiagnosticSource, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.Activity
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Diagnostics.DiagnosticSource, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Diagnostics.DiagnosticSourcestatic java.lang.String
className
Qualified class name: System.Diagnostics.Activitystatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Activity
AddBaggage(java.lang.String key, java.lang.String value)
Activity
AddEvent(ActivityEvent e)
Activity
AddException(NetException exception, JCORefOut<TagList> tags, DateTimeOffset timestamp)
Activity
AddLink(ActivityLink link)
Activity
AddTag(java.lang.String key, java.lang.String value)
Activity
AddTag(java.lang.String key, NetObject value)
static Activity
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoActivity
, a cast assert is made to check if types are compatible.void
close()
void
Dispose()
ActivityTraceFlags
getActivityTraceFlags()
java.lang.String
GetBaggageItem(java.lang.String key)
ActivityContext
getContext()
static Activity
getCurrent()
NetObject
GetCustomProperty(java.lang.String propertyName)
static ActivityIdFormat
getDefaultIdFormat()
java.lang.String
getDisplayName()
TimeSpan
getDuration()
static boolean
getForceDefaultIdFormat()
boolean
getHasRemoteParent()
java.lang.String
getId()
ActivityIdFormat
getIdFormat()
boolean
getIsAllDataRequested()
boolean
getIsStopped()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeActivityKind
getKind()
java.lang.String
getOperationName()
Activity
getParent()
java.lang.String
getParentId()
ActivitySpanId
getParentSpanId()
boolean
getRecorded()
java.lang.String
getRootId()
ActivitySource
getSource()
ActivitySpanId
getSpanId()
DateTime
getStartTimeUtc()
ActivityStatusCode
getStatus()
java.lang.String
getStatusDescription()
NetObject
GetTagItem(java.lang.String key)
ActivityTraceId
getTraceId()
java.lang.String
getTraceStateString()
void
setActivityTraceFlags(ActivityTraceFlags ActivityTraceFlags)
Activity
SetBaggage(java.lang.String key, java.lang.String value)
static void
setCurrent(Activity Current)
void
SetCustomProperty(java.lang.String propertyName, NetObject propertyValue)
static void
setDefaultIdFormat(ActivityIdFormat DefaultIdFormat)
void
setDisplayName(java.lang.String DisplayName)
void
setDuration(TimeSpan Duration)
Activity
SetEndTime(DateTime endTimeUtc)
static void
setForceDefaultIdFormat(boolean ForceDefaultIdFormat)
void
setHasRemoteParent(boolean HasRemoteParent)
void
setIdFormat(ActivityIdFormat IdFormat)
Activity
SetIdFormat(ActivityIdFormat format)
void
setIsAllDataRequested(boolean IsAllDataRequested)
void
setIsStopped(boolean IsStopped)
void
setJCOInstance(JCObject instance)
void
setKind(ActivityKind Kind)
void
setParent(Activity Parent)
Activity
SetParentId(java.lang.String parentId)
Activity
SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags)
void
setSource(ActivitySource Source)
Activity
SetStartTime(DateTime startTimeUtc)
void
setStartTimeUtc(DateTime StartTimeUtc)
Activity
SetStatus(ActivityStatusCode code, java.lang.String description)
Activity
SetTag(java.lang.String key, NetObject value)
void
setTraceStateString(java.lang.String TraceStateString)
Activity
Start()
void
Stop()
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Diagnostics.DiagnosticSource, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Diagnostics.DiagnosticSource- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Diagnostics.Activity- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Activity
public Activity(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Activity
public Activity() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Activity
public Activity(java.lang.String operationName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Activity cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoActivity
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Activity
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
AddBaggage
public Activity AddBaggage(java.lang.String key, java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
-
AddEvent
public Activity AddEvent(ActivityEvent e) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
-
AddException
public Activity AddException(NetException exception, JCORefOut<TagList> tags, DateTimeOffset timestamp) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException
-
AddLink
public Activity AddLink(ActivityLink link) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
-
AddTag
public Activity AddTag(java.lang.String key, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
-
AddTag
public Activity AddTag(java.lang.String key, java.lang.String value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException
-
SetBaggage
public Activity SetBaggage(java.lang.String key, java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
-
SetEndTime
public Activity SetEndTime(DateTime endTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
SetIdFormat
public Activity SetIdFormat(ActivityIdFormat format) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
SetParentId
public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException
-
SetParentId
public Activity SetParentId(java.lang.String parentId) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException
-
SetStartTime
public Activity SetStartTime(DateTime startTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
SetStatus
public Activity SetStatus(ActivityStatusCode code, java.lang.String description) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetTag
public Activity SetTag(java.lang.String key, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
-
Start
public Activity Start() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
GetCustomProperty
public NetObject GetCustomProperty(java.lang.String propertyName) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetTagItem
public NetObject GetTagItem(java.lang.String key) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
-
GetBaggageItem
public java.lang.String GetBaggageItem(java.lang.String key) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException
-
SetCustomProperty
public void SetCustomProperty(java.lang.String propertyName, NetObject propertyValue) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, NullReferenceException, ArgumentNullException, OutOfMemoryException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getForceDefaultIdFormat
public static boolean getForceDefaultIdFormat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setForceDefaultIdFormat
public static void setForceDefaultIdFormat(boolean ForceDefaultIdFormat) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHasRemoteParent
public boolean getHasRemoteParent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHasRemoteParent
public void setHasRemoteParent(boolean HasRemoteParent) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsAllDataRequested
public boolean getIsAllDataRequested() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIsAllDataRequested
public void setIsAllDataRequested(boolean IsAllDataRequested) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsStopped
public boolean getIsStopped() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIsStopped
public void setIsStopped(boolean IsStopped) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRecorded
public boolean getRecorded() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
getStartTimeUtc
public DateTime getStartTimeUtc() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStartTimeUtc
public void setStartTimeUtc(DateTime StartTimeUtc) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCurrent
public static Activity getCurrent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCurrent
public static void setCurrent(Activity Current) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NullReferenceException
-
getParent
public Activity getParent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setParent
public void setParent(Activity Parent) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getContext
public ActivityContext getContext() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, NullReferenceException, NotSupportedException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
NullReferenceException
NotSupportedException
-
getDefaultIdFormat
public static ActivityIdFormat getDefaultIdFormat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDefaultIdFormat
public static void setDefaultIdFormat(ActivityIdFormat DefaultIdFormat) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getIdFormat
public ActivityIdFormat getIdFormat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIdFormat
public void setIdFormat(ActivityIdFormat IdFormat) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getKind
public ActivityKind getKind() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setKind
public void setKind(ActivityKind Kind) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSource
public ActivitySource getSource() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSource
public void setSource(ActivitySource Source) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getParentSpanId
public ActivitySpanId getParentSpanId() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NullReferenceException
-
getSpanId
public ActivitySpanId getSpanId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, NullReferenceException
-
getStatus
public ActivityStatusCode getStatus() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getActivityTraceFlags
public ActivityTraceFlags getActivityTraceFlags() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
setActivityTraceFlags
public void setActivityTraceFlags(ActivityTraceFlags ActivityTraceFlags) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTraceId
public ActivityTraceId getTraceId() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
getDisplayName
public java.lang.String getDisplayName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDisplayName
public void setDisplayName(java.lang.String DisplayName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getId
public java.lang.String getId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
-
getOperationName
public java.lang.String getOperationName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getParentId
public java.lang.String getParentId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
-
getRootId
public java.lang.String getRootId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, NullReferenceException
-
getStatusDescription
public java.lang.String getStatusDescription() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTraceStateString
public java.lang.String getTraceStateString() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTraceStateString
public void setTraceStateString(java.lang.String TraceStateString) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDuration
public TimeSpan getDuration() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDuration
public void setDuration(TimeSpan Duration) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-