Package system.management
Class ManagementEventWatcher
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.management.ManagementEventWatcher
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class ManagementEventWatcher extends Component
The base .NET class managing System.Management.ManagementEventWatcher, System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Management.ManagementEventWatcher
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.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Managementstatic java.lang.StringclassNameQualified class name: System.Management.ManagementEventWatcherstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ManagementEventWatcher()ManagementEventWatcher(java.lang.Object instance)Internal constructor.ManagementEventWatcher(java.lang.String query)ManagementEventWatcher(java.lang.String scope, java.lang.String query)ManagementEventWatcher(java.lang.String scope, java.lang.String query, EventWatcherOptions options)ManagementEventWatcher(EventQuery query)ManagementEventWatcher(ManagementScope scope, EventQuery query)ManagementEventWatcher(ManagementScope scope, EventQuery query, EventWatcherOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventArrived(EventArrivedEventHandler handler)voidaddStopped(StoppedEventHandler handler)static ManagementEventWatchercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoManagementEventWatcher, a cast assert is made to check if types are compatible.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 TypeEventWatcherOptionsgetOptions()EventQuerygetQuery()ManagementScopegetScope()voidremoveEventArrived(EventArrivedEventHandler handler)voidremoveStopped(StoppedEventHandler handler)voidsetJCOInstance(JCObject instance)voidsetOptions(EventWatcherOptions Options)voidsetQuery(EventQuery Query)voidsetScope(ManagementScope Scope)voidStart()voidStop()ManagementBaseObjectWaitForNextEvent()-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Management- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Management.ManagementEventWatcher- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ManagementEventWatcher
public ManagementEventWatcher(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ManagementEventWatcher
public ManagementEventWatcher() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ManagementException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
ManagementEventWatcher
public ManagementEventWatcher(EventQuery query) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ManagementException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
ManagementEventWatcher
public ManagementEventWatcher(ManagementScope scope, EventQuery query) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ManagementException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
ManagementEventWatcher
public ManagementEventWatcher(ManagementScope scope, EventQuery query, EventWatcherOptions options) throws java.lang.Throwable, ArgumentException, NotSupportedException, TargetParameterCountException, ArgumentNullException, ManagementException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
ManagementEventWatcher
public ManagementEventWatcher(java.lang.String query) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ManagementException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, InvalidOperationException, CryptographicException
-
ManagementEventWatcher
public ManagementEventWatcher(java.lang.String scope, java.lang.String query) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ManagementException, CultureNotFoundException, MulticastNotSupportedException, OutOfMemoryException, CryptographicException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionManagementExceptionCultureNotFoundExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionCryptographicException
-
ManagementEventWatcher
public ManagementEventWatcher(java.lang.String scope, java.lang.String query, EventWatcherOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ManagementException, CultureNotFoundException, MulticastNotSupportedException, OutOfMemoryException, CryptographicException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionManagementExceptionCultureNotFoundExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionCryptographicException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classComponent- 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 classComponent- 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 classComponent- 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 classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ManagementEventWatcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoManagementEventWatcher, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ManagementEventWatcherinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
WaitForNextEvent
public ManagementBaseObject WaitForNextEvent() throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentException, MulticastNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ManagementException, MissingMethodException, TargetInvocationException, WaitHandleCannotBeOpenedException, MissingManifestResourceException, ObjectDisposedException, CultureNotFoundException, OutOfMemoryException, CryptographicException, SecurityException, UnauthorizedAccessException, IOException
- Throws:
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionArgumentNullExceptionManagementExceptionMissingMethodExceptionTargetInvocationExceptionWaitHandleCannotBeOpenedExceptionMissingManifestResourceExceptionObjectDisposedExceptionCultureNotFoundExceptionOutOfMemoryExceptionCryptographicExceptionSecurityExceptionUnauthorizedAccessExceptionIOException
-
Start
public void Start() throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentException, MulticastNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ManagementException, MissingMethodException, TargetInvocationException, WaitHandleCannotBeOpenedException, MissingManifestResourceException, ObjectDisposedException, CultureNotFoundException, OutOfMemoryException, CryptographicException, SecurityException, UnauthorizedAccessException, IOException- Throws:
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionArgumentNullExceptionManagementExceptionMissingMethodExceptionTargetInvocationExceptionWaitHandleCannotBeOpenedExceptionMissingManifestResourceExceptionObjectDisposedExceptionCultureNotFoundExceptionOutOfMemoryExceptionCryptographicExceptionSecurityExceptionUnauthorizedAccessExceptionIOException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, NotSupportedException, ArgumentNullException, FormatException, InvalidOperationException, NotImplementedException, MemberAccessException, TargetException, TargetParameterCountException, CultureNotFoundException, ObjectDisposedException, ManagementException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionFormatExceptionInvalidOperationExceptionNotImplementedExceptionMemberAccessExceptionTargetExceptionTargetParameterCountExceptionCultureNotFoundExceptionObjectDisposedExceptionManagementException
-
getQuery
public EventQuery getQuery() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setQuery
public void setQuery(EventQuery Query) throws java.lang.Throwable, ArgumentException, NotSupportedException, TargetParameterCountException, ArgumentNullException, ManagementException, MulticastNotSupportedException
-
getOptions
public EventWatcherOptions getOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setOptions
public void setOptions(EventWatcherOptions Options) throws java.lang.Throwable, ArgumentException, NotSupportedException, TargetParameterCountException, ArgumentNullException, ManagementException, MulticastNotSupportedException
-
getScope
public ManagementScope getScope() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScope
public void setScope(ManagementScope Scope) throws java.lang.Throwable, ArgumentException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, MulticastNotSupportedException, TargetParameterCountException
-
addEventArrived
public void addEventArrived(EventArrivedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeEventArrived
public void removeEventArrived(EventArrivedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addStopped
public void addStopped(StoppedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeStopped
public void removeStopped(StoppedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-