public class EventSource extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.Tracing.EventSource
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Diagnostics.Tracing.EventSource
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
EventSource() |
EventSource(java.lang.Object instance)
Internal constructor.
|
EventSource(java.lang.String eventSourceName) |
EventSource(java.lang.String eventSourceName,
EventSourceSettings config) |
EventSource(java.lang.String eventSourceName,
EventSourceSettings config,
java.lang.String... traits) |
| Modifier and Type | Method and Description |
|---|---|
static EventSource |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into EventSource, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Dispose() |
static java.lang.String |
GenerateManifest(NetType eventSourceType,
java.lang.String assemblyPathToIncludeInManifest) |
static java.lang.String |
GenerateManifest(NetType eventSourceType,
java.lang.String assemblyPathToIncludeInManifest,
EventManifestOptions flags) |
NetException |
getConstructionException() |
static Guid |
getCurrentThreadActivityId() |
Guid |
getGuid() |
static Guid |
GetGuid(NetType eventSourceType) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
java.lang.String |
getName() |
static java.lang.String |
GetName(NetType eventSourceType) |
EventSourceSettings |
getSettings() |
java.lang.String |
GetTrait(java.lang.String key) |
boolean |
IsEnabled() |
boolean |
IsEnabled(EventLevel level,
EventKeywords keywords) |
boolean |
IsEnabled(EventLevel level,
EventKeywords keywords,
EventChannel channel) |
static void |
SetCurrentThreadActivityId(Guid activityId) |
static void |
SetCurrentThreadActivityId(Guid activityId,
JCORefOut<Guid> oldActivityThatWillContinue) |
void |
setJCOInstance(JCObject instance) |
void |
Write(java.lang.String eventName) |
void |
Write(java.lang.String eventName,
EventSourceOptions options) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public EventSource()
throws java.lang.Throwable
java.lang.Throwablepublic EventSource(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic EventSource(java.lang.String eventSourceName)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
CultureNotFoundException,
OverflowException,
FormatException,
OutOfMemoryException,
EventSourceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionOverflowExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionpublic EventSource(java.lang.String eventSourceName,
EventSourceSettings config)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OverflowException,
FormatException,
NullReferenceException,
OutOfMemoryException,
EventSourceException,
KeyNotFoundException,
AmbiguousMatchException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionEventSourceExceptionKeyNotFoundExceptionAmbiguousMatchExceptionpublic EventSource(java.lang.String eventSourceName,
EventSourceSettings config,
java.lang.String... traits)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException,
OverflowException,
FormatException,
OutOfMemoryException,
EventSourceException,
KeyNotFoundException,
AmbiguousMatchException,
MissingMethodException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionKeyNotFoundExceptionAmbiguousMatchExceptionMissingMethodExceptionpublic static EventSource cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into EventSource, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEventSource instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
KeyNotFoundException,
EventSourceException
public static java.lang.String GenerateManifest(NetType eventSourceType, java.lang.String assemblyPathToIncludeInManifest) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, AmbiguousMatchException, CultureNotFoundException, MissingMethodException, TargetInvocationException, OverflowException, InvalidCastException, ArrayTypeMismatchException, OutOfMemoryException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionAmbiguousMatchExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionOverflowExceptionInvalidCastExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionKeyNotFoundExceptionpublic static java.lang.String GenerateManifest(NetType eventSourceType, java.lang.String assemblyPathToIncludeInManifest, EventManifestOptions flags) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, AmbiguousMatchException, NullReferenceException, OutOfMemoryException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, OverflowException, InvalidCastException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionAmbiguousMatchExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionOverflowExceptionInvalidCastExceptionKeyNotFoundExceptionpublic NetException getConstructionException() throws java.lang.Throwable
java.lang.Throwablepublic static Guid getCurrentThreadActivityId() throws java.lang.Throwable
java.lang.Throwablepublic Guid getGuid() throws java.lang.Throwable
java.lang.Throwablepublic static Guid GetGuid(NetType eventSourceType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, AmbiguousMatchException, CultureNotFoundException, OutOfMemoryException, ExternalException, MissingMethodException, TargetInvocationException, OverflowException, InvalidCastException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionFormatExceptionAmbiguousMatchExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionMissingMethodExceptionTargetInvocationExceptionOverflowExceptionInvalidCastExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String GetName(NetType eventSourceType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FormatException, AmbiguousMatchException, PlatformNotSupportedException, NullReferenceException, OutOfMemoryException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, OverflowException, InvalidCastException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionFormatExceptionAmbiguousMatchExceptionPlatformNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionOverflowExceptionInvalidCastExceptionpublic EventSourceSettings getSettings() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String GetTrait(java.lang.String key)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionpublic boolean IsEnabled()
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsEnabled(EventLevel level, EventKeywords keywords) throws java.lang.Throwable
java.lang.Throwablepublic boolean IsEnabled(EventLevel level, EventKeywords keywords, EventChannel channel) throws java.lang.Throwable
java.lang.Throwablepublic static void SetCurrentThreadActivityId(Guid activityId) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException, NotSupportedException, NullReferenceException, CultureNotFoundException, ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionNotSupportedExceptionNullReferenceExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionpublic static void SetCurrentThreadActivityId(Guid activityId, JCORefOut<Guid> oldActivityThatWillContinue) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, OutOfMemoryException, EventSourceException, NotSupportedException, NullReferenceException, CultureNotFoundException, ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionEventSourceExceptionNotSupportedExceptionNullReferenceExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void Write(java.lang.String eventName)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
InvalidOperationException,
NotSupportedException,
FormatException,
NullReferenceException,
CultureNotFoundException,
OutOfMemoryException,
ExternalException,
EventSourceException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionNullReferenceExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionEventSourceExceptionpublic void Write(java.lang.String eventName,
EventSourceOptions options)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
InvalidOperationException,
NotSupportedException,
FormatException,
NullReferenceException,
CultureNotFoundException,
OutOfMemoryException,
ExternalException,
EventSourceException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionNullReferenceExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionEventSourceException