Package system.diagnostics
Class TraceListener
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.diagnostics.TraceListener
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
- Direct Known Subclasses:
DefaultTraceListener
,EventLogTraceListener
,FileLogTraceListener
,TextWriterTraceListener
public class TraceListener extends MarshalByRefObject implements java.lang.AutoCloseable
The base .NET class managing System.Diagnostics.TraceListener, System.Diagnostics.TraceSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.TraceListener
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.String
assemblyFullName
Fully assembly qualified name: System.Diagnostics.TraceSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Diagnostics.TraceSourcestatic java.lang.String
className
Qualified class name: System.Diagnostics.TraceListenerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TraceListener()
TraceListener(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TraceListener
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTraceListener
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typejava.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(java.lang.String message)
void
Write(java.lang.String message, java.lang.String category)
void
Write(NetObject o)
void
Write(NetObject o, java.lang.String category)
void
WriteLine(java.lang.String message)
void
WriteLine(java.lang.String message, java.lang.String category)
void
WriteLine(NetObject o)
void
WriteLine(NetObject o, java.lang.String category)
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Diagnostics.TraceSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Diagnostics.TraceSource- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Diagnostics.TraceListener- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classMarshalByRefObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classMarshalByRefObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMarshalByRefObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTraceListener
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TraceListener
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Close
public void Close() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
Fail
public void Fail(java.lang.String message, java.lang.String detailMessage) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArrayTypeMismatchException, OutOfMemoryException, PlatformNotSupportedException, InvalidOperationException
-
Fail
public void Fail(java.lang.String message) throws java.lang.Throwable, ArrayTypeMismatchException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException
-
Flush
public void Flush() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TraceData
public void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
-
TraceData
public void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject... data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
-
TraceEvent
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, ArgumentNullException, OutOfMemoryException, ArrayTypeMismatchException
-
TraceEvent
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String message) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
-
TraceEvent
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, FormatException, OutOfMemoryException, ArgumentOutOfRangeException
-
TraceTransfer
public void TraceTransfer(TraceEventCache eventCache, java.lang.String source, int id, java.lang.String message, Guid relatedActivityId) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Write
public void Write(NetObject o, java.lang.String category) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, PlatformNotSupportedException
-
Write
public void Write(NetObject o) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Write
public void Write(java.lang.String message, java.lang.String category) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException
-
Write
public void Write(java.lang.String message) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
WriteLine
public void WriteLine(NetObject o, java.lang.String category) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, PlatformNotSupportedException
-
WriteLine
public void WriteLine(NetObject o) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
WriteLine
public void WriteLine(java.lang.String message, java.lang.String category) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException
-
WriteLine
public void WriteLine(java.lang.String message) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getIsThreadSafe
public boolean getIsThreadSafe() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIndentLevel
public int getIndentLevel() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIndentLevel
public void setIndentLevel(int IndentLevel) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIndentSize
public int getIndentSize() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIndentSize
public void setIndentSize(int IndentSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getAttributes
public StringDictionary getAttributes() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
getFilter
public TraceFilter getFilter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setFilter
public void setFilter(TraceFilter Filter) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTraceOutputOptions
public TraceOptions getTraceOutputOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTraceOutputOptions
public void setTraceOutputOptions(TraceOptions TraceOutputOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getName
public java.lang.String getName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setName
public void setName(java.lang.String Name) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-