All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.diagnostics.Activity Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2023 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.diagnostics;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.diagnostics.Activity;
import system.diagnostics.ActivityEvent;
import system.DateTime;
import system.diagnostics.ActivityIdFormat;
import system.diagnostics.ActivityTraceId;
import system.diagnostics.ActivitySpanId;
import system.diagnostics.ActivityTraceFlags;
import system.diagnostics.ActivityStatusCode;
import system.diagnostics.ActivityContext;
import system.diagnostics.ActivityKind;
import system.diagnostics.ActivitySource;
import system.TimeSpan;


/**
 * The base .NET class managing System.Diagnostics.Activity, System.Diagnostics.DiagnosticSource, Version=7.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 */ public class Activity extends NetObject implements AutoCloseable { /** * Fully assembly qualified name: System.Diagnostics.DiagnosticSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 */ public static final String assemblyFullName = "System.Diagnostics.DiagnosticSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"; /** * Assembly name: System.Diagnostics.DiagnosticSource */ public static final String assemblyShortName = "System.Diagnostics.DiagnosticSource"; /** * Qualified class name: System.Diagnostics.Activity */ public static final String className = "System.Diagnostics.Activity"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public Activity(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link Activity}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link Activity} instance * @throws java.lang.Throwable in case of error during cast operation */ public static Activity cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new Activity(from.getJCOInstance()); } // Constructors section public Activity() throws Throwable { } public Activity(java.lang.String operationName) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(operationName)); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public Activity AddBaggage(java.lang.String key, java.lang.String value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objAddBaggage = (JCObject)classInstance.Invoke("AddBaggage", key, value); return new Activity(objAddBaggage); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity AddEvent(ActivityEvent e) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objAddEvent = (JCObject)classInstance.Invoke("AddEvent", e == null ? null : e.getJCOInstance()); return new Activity(objAddEvent); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity AddTag(java.lang.String key, NetObject value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objAddTag = (JCObject)classInstance.Invoke("AddTag", key, value == null ? null : value.getJCOInstance()); return new Activity(objAddTag); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity AddTag(java.lang.String key, java.lang.String value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objAddTag = (JCObject)classInstance.Invoke("AddTag", key, value); return new Activity(objAddTag); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetBaggage(java.lang.String key, java.lang.String value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetBaggage = (JCObject)classInstance.Invoke("SetBaggage", key, value); return new Activity(objSetBaggage); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetEndTime(DateTime endTimeUtc) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetEndTime = (JCObject)classInstance.Invoke("SetEndTime", endTimeUtc == null ? null : endTimeUtc.getJCOInstance()); return new Activity(objSetEndTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetIdFormat(ActivityIdFormat format) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetIdFormat = (JCObject)classInstance.Invoke("SetIdFormat", format == null ? null : format.getJCOInstance()); return new Activity(objSetIdFormat); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetParentId = (JCObject)classInstance.Invoke("SetParentId", traceId == null ? null : traceId.getJCOInstance(), spanId == null ? null : spanId.getJCOInstance(), activityTraceFlags == null ? null : activityTraceFlags.getJCOInstance()); return new Activity(objSetParentId); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetParentId(java.lang.String parentId) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetParentId = (JCObject)classInstance.Invoke("SetParentId", parentId); return new Activity(objSetParentId); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetStartTime(DateTime startTimeUtc) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetStartTime = (JCObject)classInstance.Invoke("SetStartTime", startTimeUtc == null ? null : startTimeUtc.getJCOInstance()); return new Activity(objSetStartTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetStatus(ActivityStatusCode code, java.lang.String description) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetStatus = (JCObject)classInstance.Invoke("SetStatus", code == null ? null : code.getJCOInstance(), description); return new Activity(objSetStatus); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity SetTag(java.lang.String key, NetObject value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objSetTag = (JCObject)classInstance.Invoke("SetTag", key, value == null ? null : value.getJCOInstance()); return new Activity(objSetTag); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity Start() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException, system.OutOfMemoryException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objStart = (JCObject)classInstance.Invoke("Start"); return new Activity(objStart); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NetObject GetCustomProperty(java.lang.String propertyName) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.ArgumentException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objGetCustomProperty = (JCObject)classInstance.Invoke("GetCustomProperty", propertyName); return new NetObject(objGetCustomProperty); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NetObject GetTagItem(java.lang.String key) throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objGetTagItem = (JCObject)classInstance.Invoke("GetTagItem", key); return new NetObject(objGetTagItem); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetBaggageItem(java.lang.String key) throws Throwable, system.NotSupportedException, system.ArgumentException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetBaggageItem", key); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void Dispose() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("Dispose"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void SetCustomProperty(java.lang.String propertyName, NetObject propertyValue) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("SetCustomProperty", propertyName, propertyValue == null ? null : propertyValue.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void Stop() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("Stop"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void close() throws Exception { try { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("Dispose"); } catch (JCNativeException jcne) { throw translateException(jcne); } } catch (Throwable t) { throw new Exception(t); } } // Properties section public static boolean getForceDefaultIdFormat() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("ForceDefaultIdFormat"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setForceDefaultIdFormat(boolean ForceDefaultIdFormat) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("ForceDefaultIdFormat", ForceDefaultIdFormat); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getHasRemoteParent() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("HasRemoteParent"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setHasRemoteParent(boolean HasRemoteParent) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("HasRemoteParent", HasRemoteParent); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getIsAllDataRequested() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("IsAllDataRequested"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setIsAllDataRequested(boolean IsAllDataRequested) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("IsAllDataRequested", IsAllDataRequested); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getIsStopped() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("IsStopped"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setIsStopped(boolean IsStopped) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("IsStopped", IsStopped); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getRecorded() throws Throwable, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("Recorded"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public DateTime getStartTimeUtc() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("StartTimeUtc"); return new DateTime(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setStartTimeUtc(DateTime StartTimeUtc) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("StartTimeUtc", StartTimeUtc == null ? null : StartTimeUtc.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Activity getCurrent() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("Current"); return new Activity(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setCurrent(Activity Current) throws Throwable, system.NotSupportedException, system.ArgumentException, system.InvalidOperationException, system.ArgumentNullException, system.PlatformNotSupportedException, system.FormatException, system.OutOfMemoryException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("Current", Current == null ? null : Current.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Activity getParent() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Parent"); return new Activity(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setParent(Activity Parent) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Parent", Parent == null ? null : Parent.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivityContext getContext() throws Throwable, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Context"); return new ActivityContext(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ActivityIdFormat getDefaultIdFormat() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("DefaultIdFormat"); return new ActivityIdFormat(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setDefaultIdFormat(ActivityIdFormat DefaultIdFormat) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("DefaultIdFormat", DefaultIdFormat == null ? null : DefaultIdFormat.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivityIdFormat getIdFormat() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("IdFormat"); return new ActivityIdFormat(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setIdFormat(ActivityIdFormat IdFormat) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("IdFormat", IdFormat == null ? null : IdFormat.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivityKind getKind() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Kind"); return new ActivityKind(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setKind(ActivityKind Kind) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Kind", Kind == null ? null : Kind.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivitySource getSource() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Source"); return new ActivitySource(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setSource(ActivitySource Source) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Source", Source == null ? null : Source.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivitySpanId getParentSpanId() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ParentSpanId"); return new ActivitySpanId(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivitySpanId getSpanId() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("SpanId"); return new ActivitySpanId(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivityStatusCode getStatus() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Status"); return new ActivityStatusCode(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivityTraceFlags getActivityTraceFlags() throws Throwable, system.NotSupportedException, system.ArgumentException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ActivityTraceFlags"); return new ActivityTraceFlags(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setActivityTraceFlags(ActivityTraceFlags ActivityTraceFlags) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ActivityTraceFlags", ActivityTraceFlags == null ? null : ActivityTraceFlags.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ActivityTraceId getTraceId() throws Throwable, system.NotSupportedException, system.ArgumentException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("TraceId"); return new ActivityTraceId(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getDisplayName() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("DisplayName"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setDisplayName(java.lang.String DisplayName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("DisplayName", DisplayName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getId() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Id"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getOperationName() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("OperationName"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getParentId() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("ParentId"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getRootId() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("RootId"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getStatusDescription() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("StatusDescription"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getTraceStateString() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("TraceStateString"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setTraceStateString(java.lang.String TraceStateString) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("TraceStateString", TraceStateString); } catch (JCNativeException jcne) { throw translateException(jcne); } } public TimeSpan getDuration() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Duration"); return new TimeSpan(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setDuration(TimeSpan Duration) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Duration", Duration == null ? null : Duration.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy