public class TraceListener extends MarshalByRefObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.TraceListener
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.Diagnostics.TraceSource, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Diagnostics.TraceSource
|
static java.lang.String |
className
Qualified class name: System.Diagnostics.TraceListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TraceListener() |
TraceListener(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TraceListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TraceListener, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
void |
Dispose() |
void |
Fail(java.lang.String message) |
void |
Fail(java.lang.String message,
java.lang.String detailMessage) |
void |
Flush() |
StringDictionary |
getAttributes() |
TraceFilter |
getFilter() |
int |
getIndentLevel() |
int |
getIndentSize() |
boolean |
getIsThreadSafe() |
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() |
TraceOptions |
getTraceOutputOptions() |
void |
setFilter(TraceFilter Filter) |
void |
setIndentLevel(int IndentLevel) |
void |
setIndentSize(int IndentSize) |
void |
setJCOInstance(JCObject instance) |
void |
setName(java.lang.String Name) |
void |
setTraceOutputOptions(TraceOptions TraceOutputOptions) |
void |
TraceData(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
NetObject... data) |
void |
TraceData(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
NetObject data) |
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id) |
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
java.lang.String message) |
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
java.lang.String format,
NetObject... args) |
void |
TraceTransfer(TraceEventCache eventCache,
java.lang.String source,
int id,
java.lang.String message,
Guid relatedActivityId) |
void |
Write(NetObject o) |
void |
Write(NetObject o,
java.lang.String category) |
void |
Write(java.lang.String message) |
void |
Write(java.lang.String message,
java.lang.String category) |
void |
WriteLine(NetObject o) |
void |
WriteLine(NetObject o,
java.lang.String category) |
void |
WriteLine(java.lang.String message) |
void |
WriteLine(java.lang.String message,
java.lang.String category) |
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TraceListener()
throws java.lang.Throwable
java.lang.Throwablepublic TraceListener(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static TraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TraceListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTraceListener 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 Close()
throws java.lang.Throwable
java.lang.Throwablepublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic void Fail(java.lang.String message)
throws java.lang.Throwable,
ArrayTypeMismatchException,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException
public void Fail(java.lang.String message,
java.lang.String detailMessage)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArrayTypeMismatchException,
PlatformNotSupportedException,
OutOfMemoryException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionpublic void Flush()
throws java.lang.Throwable
java.lang.Throwablepublic StringDictionary getAttributes() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic TraceFilter getFilter() throws java.lang.Throwable
java.lang.Throwablepublic int getIndentLevel()
throws java.lang.Throwable
java.lang.Throwablepublic int getIndentSize()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsThreadSafe()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic TraceOptions getTraceOutputOptions() throws java.lang.Throwable
java.lang.Throwablepublic void setFilter(TraceFilter Filter) throws java.lang.Throwable
java.lang.Throwablepublic void setIndentLevel(int IndentLevel)
throws java.lang.Throwable
java.lang.Throwablepublic void setIndentSize(int IndentSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void setName(java.lang.String Name)
throws java.lang.Throwable
java.lang.Throwablepublic void setTraceOutputOptions(TraceOptions TraceOutputOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject... data) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject data) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String message) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceTransfer(TraceEventCache eventCache, java.lang.String source, int id, java.lang.String message, Guid relatedActivityId) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OverflowException, FormatException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionOutOfMemoryExceptionpublic void Write(NetObject o) throws java.lang.Throwable
java.lang.Throwablepublic void Write(NetObject o, java.lang.String category) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException
public void Write(java.lang.String message)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
public void WriteLine(NetObject o) throws java.lang.Throwable
java.lang.Throwablepublic void WriteLine(NetObject o, java.lang.String category) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException
public void WriteLine(java.lang.String message)
throws java.lang.Throwable
java.lang.Throwablepublic void WriteLine(java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException