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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
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,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
SecurityException,
MulticastNotSupportedException,
MissingManifestResourceException,
NullReferenceException,
NotSupportedException,
NotImplementedException
public EventSource(java.lang.String eventSourceName,
EventSourceSettings config)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
SecurityException,
IOException,
EventSourceException,
MulticastNotSupportedException,
NotImplementedException,
NotSupportedException,
MissingManifestResourceException,
NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionSecurityExceptionIOExceptionEventSourceExceptionMulticastNotSupportedExceptionNotImplementedExceptionNotSupportedExceptionMissingManifestResourceExceptionNullReferenceExceptionpublic EventSource(java.lang.String eventSourceName,
EventSourceSettings config,
java.lang.String... traits)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
NotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
SecurityException,
UnauthorizedAccessException,
IOException,
EventSourceException,
OutOfMemoryException,
ObjectDisposedException,
MulticastNotSupportedException,
NotImplementedException,
MissingMethodException,
MissingManifestResourceException,
KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionEventSourceExceptionOutOfMemoryExceptionObjectDisposedExceptionMulticastNotSupportedExceptionNotImplementedExceptionMissingMethodExceptionMissingManifestResourceExceptionKeyNotFoundExceptionpublic 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,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
FormatException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
MissingManifestResourceException,
NullReferenceException,
KeyNotFoundException,
NotImplementedException,
EventSourceException,
OutOfMemoryException,
ObjectDisposedException,
AbandonedMutexException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionMissingManifestResourceExceptionNullReferenceExceptionKeyNotFoundExceptionNotImplementedExceptionEventSourceExceptionOutOfMemoryExceptionObjectDisposedExceptionAbandonedMutexExceptionpublic static java.lang.String GenerateManifest(NetType eventSourceType, java.lang.String assemblyPathToIncludeInManifest) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, FormatException, MissingMethodException, TargetInvocationException, InvalidCastException, NullReferenceException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, SecurityException, KeyNotFoundException, IOException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionInvalidCastExceptionNullReferenceExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionSecurityExceptionKeyNotFoundExceptionIOExceptionpublic static java.lang.String GenerateManifest(NetType eventSourceType, java.lang.String assemblyPathToIncludeInManifest, EventManifestOptions flags) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, FormatException, MissingMethodException, InvalidCastException, NullReferenceException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, SecurityException, KeyNotFoundException, EndOfStreamException, IOException, BadImageFormatException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionMissingMethodExceptionInvalidCastExceptionNullReferenceExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionSecurityExceptionKeyNotFoundExceptionEndOfStreamExceptionIOExceptionBadImageFormatExceptionpublic 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, ArgumentNullException, NotImplementedException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, FormatException, InvalidCastException, NullReferenceException
public 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, ArgumentNullException, NotImplementedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, FormatException, MissingMethodException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionMissingMethodExceptionInvalidCastExceptionNullReferenceExceptionpublic EventSourceSettings getSettings() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String GetTrait(java.lang.String key)
throws java.lang.Throwable
java.lang.Throwablepublic 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, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, EventSourceException, OutOfMemoryException, ArgumentException, NotSupportedException, CultureNotFoundException
public static void SetCurrentThreadActivityId(Guid activityId, JCORefOut<Guid> oldActivityThatWillContinue) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, EventSourceException, OutOfMemoryException, ArgumentException, NotSupportedException, CultureNotFoundException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void Write(java.lang.String eventName)
throws java.lang.Throwable,
ArgumentNullException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
KeyNotFoundException,
OutOfMemoryException
public void Write(java.lang.String eventName,
EventSourceOptions options)
throws java.lang.Throwable,
ArgumentNullException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
KeyNotFoundException,
OutOfMemoryException