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,EventProviderTraceListener,FileLogTraceListener,IisTraceListener,TextWriterTraceListener,WebPageTraceListener
public class TraceListener extends MarshalByRefObject implements java.lang.AutoCloseable
The base .NET class managing System.Diagnostics.TraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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.StringassemblyFullNameFully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: Systemstatic java.lang.StringclassNameQualified class name: System.Diagnostics.TraceListenerstatic JCTypeclassTypeThe 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 TraceListenercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTraceListener, a cast assert is made to check if types are compatible.voidclose()voidClose()voidDispose()voidFail(java.lang.String message)voidFail(java.lang.String message, java.lang.String detailMessage)voidFlush()StringDictionarygetAttributes()TraceFiltergetFilter()intgetIndentLevel()intgetIndentSize()booleangetIsThreadSafe()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typejava.lang.StringgetName()TraceOptionsgetTraceOutputOptions()voidsetFilter(TraceFilter Filter)voidsetIndentLevel(int IndentLevel)voidsetIndentSize(int IndentSize)voidsetJCOInstance(JCObject instance)voidsetName(java.lang.String Name)voidsetTraceOutputOptions(TraceOptions TraceOutputOptions)voidTraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject data)voidTraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject... data)voidTraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id)voidTraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String message)voidTraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String format, NetObject... args)voidTraceTransfer(TraceEventCache eventCache, java.lang.String source, int id, java.lang.String message, Guid relatedActivityId)voidWrite(java.lang.String message)voidWrite(java.lang.String message, java.lang.String category)voidWrite(NetObject o)voidWrite(NetObject o, java.lang.String category)voidWriteLine(java.lang.String message)voidWriteLine(java.lang.String message, java.lang.String category)voidWriteLine(NetObject o)voidWriteLine(NetObject o, java.lang.String category)-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- 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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classMarshalByRefObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classMarshalByRefObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classMarshalByRefObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classMarshalByRefObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classMarshalByRefObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static TraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTraceListener, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TraceListenerinstance- 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, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
Fail
public void Fail(java.lang.String message) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, InvalidOperationException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
Fail
public void Fail(java.lang.String message, java.lang.String detailMessage) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, NotSupportedException, InvalidOperationException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
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, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, NullReferenceException, Win32Exception, IndexOutOfRangeException, OverflowException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionNullReferenceExceptionWin32ExceptionIndexOutOfRangeExceptionOverflowExceptionSecurityException
-
TraceData
public void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject... data) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, NullReferenceException, Win32Exception, IndexOutOfRangeException, OverflowException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionNullReferenceExceptionWin32ExceptionIndexOutOfRangeExceptionOverflowExceptionSecurityException
-
TraceEvent
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, Win32Exception, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionWin32ExceptionIndexOutOfRangeExceptionOverflowException
-
TraceEvent
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String message) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, NullReferenceException, Win32Exception, IndexOutOfRangeException, OverflowException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionNullReferenceExceptionWin32ExceptionIndexOutOfRangeExceptionOverflowExceptionSecurityException
-
TraceEvent
public void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, NullReferenceException, Win32Exception, IndexOutOfRangeException, OverflowException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionNullReferenceExceptionWin32ExceptionIndexOutOfRangeExceptionOverflowExceptionSecurityException
-
TraceTransfer
public void TraceTransfer(TraceEventCache eventCache, java.lang.String source, int id, java.lang.String message, Guid relatedActivityId) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, MissingManifestResourceException, PlatformNotSupportedException, NotSupportedException, Win32Exception, OverflowException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionNotSupportedExceptionWin32ExceptionOverflowException
-
Write
public void Write(NetObject o) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Write
public void Write(NetObject o, java.lang.String category) throws java.lang.Throwable, IndexOutOfRangeException
- Throws:
java.lang.ThrowableIndexOutOfRangeException
-
Write
public void Write(java.lang.String message) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Write
public void Write(java.lang.String message, java.lang.String category) throws java.lang.Throwable, IndexOutOfRangeException- Throws:
java.lang.ThrowableIndexOutOfRangeException
-
WriteLine
public void WriteLine(NetObject o) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
WriteLine
public void WriteLine(NetObject o, java.lang.String category) throws java.lang.Throwable, IndexOutOfRangeException
- Throws:
java.lang.ThrowableIndexOutOfRangeException
-
WriteLine
public void WriteLine(java.lang.String message) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
WriteLine
public void WriteLine(java.lang.String message, java.lang.String category) throws java.lang.Throwable, IndexOutOfRangeException- Throws:
java.lang.ThrowableIndexOutOfRangeException
-
close
public void close() throws java.lang.Exception- Specified by:
closein 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, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getAttributes
public StringDictionary getAttributes() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatException
-
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, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentOutOfRangeException
-
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
-
-