Package system.serviceprocess
Class ServiceBase
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.serviceprocess.ServiceBase
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class ServiceBase extends Component
The base .NET class managing System.ServiceProcess.ServiceBase, System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ServiceProcess.ServiceBase
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.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.ServiceProcessstatic java.lang.String
className
Qualified class name: System.ServiceProcess.ServiceBasestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ServiceBase()
ServiceBase(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceBase
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoServiceBase
, 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 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
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()
-
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.ServiceProcess, 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.ServiceProcess- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.ServiceProcess.ServiceBase- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceBase
public ServiceBase(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ServiceBase
public ServiceBase() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
-
-
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 classComponent
- 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 classComponent
- 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 classComponent
- 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 classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ServiceBase cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoServiceBase
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ServiceBase
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
RequestAdditionalTime
public void RequestAdditionalTime(int milliseconds) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
Run
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
- 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
-
Run
public 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
- 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
-
Stop
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
- 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
-
getAutoLog
public boolean getAutoLog() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAutoLog
public void setAutoLog(boolean AutoLog) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCanHandlePowerEvent
public boolean getCanHandlePowerEvent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCanHandlePowerEvent
public void setCanHandlePowerEvent(boolean CanHandlePowerEvent) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getCanHandleSessionChangeEvent
public boolean getCanHandleSessionChangeEvent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCanHandleSessionChangeEvent
public void setCanHandleSessionChangeEvent(boolean CanHandleSessionChangeEvent) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getCanPauseAndContinue
public boolean getCanPauseAndContinue() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCanPauseAndContinue
public void setCanPauseAndContinue(boolean CanPauseAndContinue) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getCanShutdown
public boolean getCanShutdown() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCanShutdown
public void setCanShutdown(boolean CanShutdown) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getCanStop
public boolean getCanStop() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCanStop
public void setCanStop(boolean CanStop) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getExitCode
public int getExitCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setExitCode
public void setExitCode(int ExitCode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEventLog
public 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
- 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
-
getServiceName
public java.lang.String getServiceName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setServiceName
public void setServiceName(java.lang.String ServiceName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
-