Interface IControllable
IControllable interface represents an object quite oftenly referred to as a service that usually operates on its own thread and has a controllable life cycle.
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public interface IControllable
Properties
IsRunning
Determine whether or not the controllable service is running.
Declaration
bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool | true if the service is running; false otherwise. |
Remarks
Methods
Configure(IXmlElement)
Configure the controllable service.
Declaration
void Configure(IXmlElement xml)
Parameters
Type | Name | Description |
---|---|---|
IXmlElement | xml | An IXmlElement carrying configuration information specific to the IControllable object. |
Remarks
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if the service is already running. |
ArgumentException | Thrown if the configuration information is invalid. |
Shutdown()
Stop the controllable service.
Declaration
void Shutdown()
Remarks
Start()
Start the controllable service.
Declaration
void Start()
Remarks
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if a service does not support being re-started, and the service was already started and subsequently stopped and then an attempt is made to start the service again; also thrown if the IControllable service has not been configured. |
Stop()
Hard-stop the controllable service.
Declaration
void Stop()
Remarks
Use Shutdown() for normal service termination. Calling this method for a service that has already stopped has no effect.