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=8.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.StringassemblyFullNameFully assembly qualified name: System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Diagnostics.DiagnosticSourcestatic java.lang.StringclassNameQualified class name: System.Diagnostics.Activitystatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityAddBaggage(java.lang.String key, java.lang.String value)ActivityAddEvent(ActivityEvent e)ActivityAddTag(java.lang.String key, java.lang.String value)ActivityAddTag(java.lang.String key, NetObject value)static Activitycast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoActivity, a cast assert is made to check if types are compatible.voidclose()voidDispose()ActivityTraceFlagsgetActivityTraceFlags()java.lang.StringGetBaggageItem(java.lang.String key)ActivityContextgetContext()static ActivitygetCurrent()NetObjectGetCustomProperty(java.lang.String propertyName)static ActivityIdFormatgetDefaultIdFormat()java.lang.StringgetDisplayName()TimeSpangetDuration()static booleangetForceDefaultIdFormat()booleangetHasRemoteParent()java.lang.StringgetId()ActivityIdFormatgetIdFormat()booleangetIsAllDataRequested()booleangetIsStopped()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeActivityKindgetKind()java.lang.StringgetOperationName()ActivitygetParent()java.lang.StringgetParentId()ActivitySpanIdgetParentSpanId()booleangetRecorded()java.lang.StringgetRootId()ActivitySourcegetSource()ActivitySpanIdgetSpanId()DateTimegetStartTimeUtc()ActivityStatusCodegetStatus()java.lang.StringgetStatusDescription()NetObjectGetTagItem(java.lang.String key)ActivityTraceIdgetTraceId()java.lang.StringgetTraceStateString()voidsetActivityTraceFlags(ActivityTraceFlags ActivityTraceFlags)ActivitySetBaggage(java.lang.String key, java.lang.String value)static voidsetCurrent(Activity Current)voidSetCustomProperty(java.lang.String propertyName, NetObject propertyValue)static voidsetDefaultIdFormat(ActivityIdFormat DefaultIdFormat)voidsetDisplayName(java.lang.String DisplayName)voidsetDuration(TimeSpan Duration)ActivitySetEndTime(DateTime endTimeUtc)static voidsetForceDefaultIdFormat(boolean ForceDefaultIdFormat)voidsetHasRemoteParent(boolean HasRemoteParent)voidsetIdFormat(ActivityIdFormat IdFormat)ActivitySetIdFormat(ActivityIdFormat format)voidsetIsAllDataRequested(boolean IsAllDataRequested)voidsetIsStopped(boolean IsStopped)voidsetJCOInstance(JCObject instance)voidsetKind(ActivityKind Kind)voidsetParent(Activity Parent)ActivitySetParentId(java.lang.String parentId)ActivitySetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags)voidsetSource(ActivitySource Source)ActivitySetStartTime(DateTime startTimeUtc)voidsetStartTimeUtc(DateTime StartTimeUtc)ActivitySetStatus(ActivityStatusCode code, java.lang.String description)ActivitySetTag(java.lang.String key, NetObject value)voidsetTraceStateString(java.lang.String TraceStateString)ActivityStart()voidStop()
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Diagnostics.DiagnosticSource, Version=8.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.ThrowableInternal 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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Activity cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoActivity, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Activityinstance- 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
-
AddEvent
public Activity AddEvent(ActivityEvent e) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
AddTag
public Activity AddTag(java.lang.String key, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
AddTag
public Activity AddTag(java.lang.String key, java.lang.String value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedException
-
SetBaggage
public Activity SetBaggage(java.lang.String key, java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
SetEndTime
public Activity SetEndTime(DateTime endTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
SetIdFormat
public Activity SetIdFormat(ActivityIdFormat format) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
SetParentId
public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
SetParentId
public Activity SetParentId(java.lang.String parentId) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
SetStartTime
public Activity SetStartTime(DateTime startTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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
-
Start
public Activity Start() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ArrayTypeMismatchException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionFormatException
-
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.ThrowablePlatformNotSupportedExceptionNotSupportedException
-
GetBaggageItem
public java.lang.String GetBaggageItem(java.lang.String key) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException
-
SetCustomProperty
public void SetCustomProperty(java.lang.String propertyName, NetObject propertyValue) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, OutOfMemoryException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException
-
close
public void close() throws java.lang.Exception- Specified by:
closein 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.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
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, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, FormatException, ArgumentOutOfRangeException
-
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
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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
-
getSpanId
public ActivitySpanId getSpanId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
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.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
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.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
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, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
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, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
getRootId
public java.lang.String getRootId() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException
-
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
-
-