Class EventLogConfiguration
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.diagnostics.eventing.reader.EventLogConfiguration
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class EventLogConfiguration extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Diagnostics.Eventing.Reader.EventLogConfiguration, System.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.Eventing.Reader.EventLogConfiguration
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.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Diagnostics.EventLogstatic java.lang.StringclassNameQualified class name: System.Diagnostics.Eventing.Reader.EventLogConfigurationstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description EventLogConfiguration()EventLogConfiguration(java.lang.Object instance)Internal constructor.EventLogConfiguration(java.lang.String logName)EventLogConfiguration(java.lang.String logName, EventLogSession session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventLogConfigurationcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoEventLogConfiguration, a cast assert is made to check if types are compatible.voidclose()voidDispose()booleangetIsClassicLog()booleangetIsEnabled()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.StringgetLogFilePath()EventLogIsolationgetLogIsolation()EventLogModegetLogMode()java.lang.StringgetLogName()EventLogTypegetLogType()longgetMaximumSizeInBytes()java.lang.StringgetOwningProviderName()java.lang.StringgetSecurityDescriptor()voidSaveChanges()voidsetIsEnabled(boolean IsEnabled)voidsetJCOInstance(JCObject instance)voidsetLogFilePath(java.lang.String LogFilePath)voidsetLogMode(EventLogMode LogMode)voidsetMaximumSizeInBytes(long MaximumSizeInBytes)voidsetSecurityDescriptor(java.lang.String SecurityDescriptor)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Diagnostics.EventLog- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Diagnostics.Eventing.Reader.EventLogConfiguration- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EventLogConfiguration
public EventLogConfiguration(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
EventLogConfiguration
public EventLogConfiguration() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
EventLogConfiguration
public EventLogConfiguration(java.lang.String logName, EventLogSession session) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, MissingMethodException, TargetInvocationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogException
-
EventLogConfiguration
public EventLogConfiguration(java.lang.String logName) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, MissingMethodException, TargetInvocationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- 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 classNetObject- 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 classNetObject- 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 classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static EventLogConfiguration cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoEventLogConfiguration, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
EventLogConfigurationinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Dispose
public void Dispose() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullException
-
SaveChanges
public void SaveChanges() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getIsClassicLog
public boolean getIsClassicLog() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
getIsEnabled
public boolean getIsEnabled() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
setIsEnabled
public void setIsEnabled(boolean IsEnabled) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentException, InvalidOperationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogException
-
getMaximumSizeInBytes
public long getMaximumSizeInBytes() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
setMaximumSizeInBytes
public void setMaximumSizeInBytes(long MaximumSizeInBytes) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentException, InvalidOperationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogException
-
getLogIsolation
public EventLogIsolation getLogIsolation() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException
- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
getLogMode
public EventLogMode getLogMode() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException
- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
setLogMode
public void setLogMode(EventLogMode LogMode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLogType
public EventLogType getLogType() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException
- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
getLogFilePath
public java.lang.String getLogFilePath() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
setLogFilePath
public void setLogFilePath(java.lang.String LogFilePath) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentException, InvalidOperationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogException
-
getLogName
public java.lang.String getLogName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getOwningProviderName
public java.lang.String getOwningProviderName() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
getSecurityDescriptor
public java.lang.String getSecurityDescriptor() throws java.lang.Throwable, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, PlatformNotSupportedException, OutOfMemoryException, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, AccessViolationException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OverflowException- Throws:
java.lang.ThrowableObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
setSecurityDescriptor
public void setSecurityDescriptor(java.lang.String SecurityDescriptor) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentException, InvalidOperationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogException
-
-