public class ServiceBase extends Component
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ServiceProcess.ServiceBase
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.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.ServiceProcess
|
static java.lang.String |
className
Qualified class name: System.ServiceProcess.ServiceBase
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ServiceBase() |
ServiceBase(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceBase |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ServiceBase, a cast assert is made to check if types are compatible. |
boolean |
getAutoLog() |
boolean |
getCanHandlePowerEvent() |
boolean |
getCanHandleSessionChangeEvent() |
boolean |
getCanPauseAndContinue() |
boolean |
getCanShutdown() |
boolean |
getCanStop() |
EventLog |
getEventLog() |
int |
getExitCode() |
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 |
getServiceName() |
void |
RequestAdditionalTime(int milliseconds) |
static void |
Run(ServiceBase service) |
static void |
Run(ServiceBase[] services) |
void |
setAutoLog(boolean AutoLog) |
void |
setCanHandlePowerEvent(boolean CanHandlePowerEvent) |
void |
setCanHandleSessionChangeEvent(boolean CanHandleSessionChangeEvent) |
void |
setCanPauseAndContinue(boolean CanPauseAndContinue) |
void |
setCanShutdown(boolean CanShutdown) |
void |
setCanStop(boolean CanStop) |
void |
setExitCode(int ExitCode) |
void |
setJCOInstance(JCObject instance) |
void |
setServiceName(java.lang.String ServiceName) |
void |
Stop() |
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteCreateObjRef, GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ServiceBase()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionpublic ServiceBase(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static ServiceBase cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ServiceBase, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedServiceBase instancejava.lang.Throwable - in case of error during cast operationpublic boolean getAutoLog()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanHandlePowerEvent()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanHandleSessionChangeEvent()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanPauseAndContinue()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanShutdown()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanStop()
throws java.lang.Throwable
java.lang.Throwablepublic EventLog getEventLog() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, NullReferenceException, ArgumentOutOfRangeException, FormatException, PlatformNotSupportedException, SecurityException, Win32Exception, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, RankException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionNullReferenceExceptionArgumentOutOfRangeExceptionFormatExceptionPlatformNotSupportedExceptionSecurityExceptionWin32ExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionRankExceptionpublic int getExitCode()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ComponentString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ComponentString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ComponentObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ComponentString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ComponentJCType representing the CLR Type of the instantiated Classpublic java.lang.String getServiceName()
throws java.lang.Throwable
java.lang.Throwablepublic void RequestAdditionalTime(int milliseconds)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public static void Run(ServiceBase service) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, FormatException, SecurityException, Win32Exception, InvalidEnumArgumentException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SynchronizationLockException, AbandonedMutexException, CannotUnloadAppDomainException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSecurityExceptionWin32ExceptionInvalidEnumArgumentExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSynchronizationLockExceptionAbandonedMutexExceptionCannotUnloadAppDomainExceptionpublic static void Run(ServiceBase[] services) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, FormatException, NullReferenceException, SecurityException, Win32Exception, InvalidEnumArgumentException, ApplicationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, LockRecursionException, SynchronizationLockException, AbandonedMutexException, CannotUnloadAppDomainException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionSecurityExceptionWin32ExceptionInvalidEnumArgumentExceptionApplicationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionLockRecursionExceptionSynchronizationLockExceptionAbandonedMutexExceptionCannotUnloadAppDomainExceptionpublic void setAutoLog(boolean AutoLog)
throws java.lang.Throwable
java.lang.Throwablepublic void setCanHandlePowerEvent(boolean CanHandlePowerEvent)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public void setCanHandleSessionChangeEvent(boolean CanHandleSessionChangeEvent)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public void setCanPauseAndContinue(boolean CanPauseAndContinue)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public void setCanShutdown(boolean CanShutdown)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public void setCanStop(boolean CanStop)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public void setExitCode(int ExitCode)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class Componentpublic void setServiceName(java.lang.String ServiceName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
public void Stop()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
NullReferenceException,
IndexOutOfRangeException,
SecurityException,
Win32Exception,
InvalidEnumArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
SystemException,
UnauthorizedAccessException,
IOException,
ApplicationException,
CannotUnloadAppDomainException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionIndexOutOfRangeExceptionSecurityExceptionWin32ExceptionInvalidEnumArgumentExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionSystemExceptionUnauthorizedAccessExceptionIOExceptionApplicationExceptionCannotUnloadAppDomainException