Class ProcessControllerService
Implements process controller
Inheritance
System.Object
ProcessControllerService
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Sky.dll
Syntax
public sealed class ProcessControllerService : DaemonWithInstrumentation<IApplicationComponent>, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IProcessController, ISkyService, IProcessHost
Constructors
ProcessControllerService(IApplication)
Declaration
public ProcessControllerService(IApplication app)
Parameters
Fields
CONFIG_PROCESS_CONTROLLER_SECTION
Declaration
public const string CONFIG_PROCESS_CONTROLLER_SECTION = "process-controller"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_PROCESS_STORE_SECTION
Declaration
public const string CONFIG_PROCESS_STORE_SECTION = "process-store"
Field Value
| Type |
Description |
| System.String |
|
DEFAULT_LOG_LEVEL
Declaration
public const MessageType DEFAULT_LOG_LEVEL = MessageType.Warning
Field Value
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
InstrumentationEnabled
Declaration
[Config]
[ExternalParameter(new string[]{"worker", "instrumentation"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
Azos.Apps.DaemonWithInstrumentation<Azos.Apps.IApplicationComponent>.InstrumentationEnabled
LogLevel
Declaration
[Config(Default = MessageType.Warning)]
[ExternalParameter(new string[]{"worker", "log"})]
public MessageType LogLevel { get; set; }
Property Value
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
Dispatch(SignalFrame)
Declaration
public SignalFrame Dispatch(SignalFrame signalFrame)
Parameters
Returns
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
DoSignalStop()
Declaration
protected override void DoSignalStop()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
Finalize(Process)
Declaration
public void Finalize(Process process)
Parameters
| Type |
Name |
Description |
| Process |
process |
|
Finalize(ProcessFrame)
Declaration
public void Finalize(ProcessFrame frame)
Parameters
Get(PID)
Declaration
public ProcessFrame Get(PID pid)
Parameters
| Type |
Name |
Description |
| PID |
pid |
|
Returns
GetDescriptor(PID)
Declaration
public ProcessDescriptor GetDescriptor(PID pid)
Parameters
| Type |
Name |
Description |
| PID |
pid |
|
Returns
List(Int32)
Declaration
public IEnumerable<ProcessDescriptor> List(int processorID)
Parameters
| Type |
Name |
Description |
| System.Int32 |
processorID |
|
Returns
Log(MessageType, Process, String, String, Exception, Nullable<Guid>, String)
Writes to log on behalf of worker service
Declaration
public Guid Log(MessageType type, Process process, string from, string message, Exception error = null, Guid? relatedMessageID = default(Guid? ), string parameters = null)
Parameters
| Type |
Name |
Description |
| MessageType |
type |
|
| Process |
process |
|
| System.String |
from |
|
| System.String |
message |
|
| System.Exception |
error |
|
| System.Nullable<System.Guid> |
relatedMessageID |
|
| System.String |
parameters |
|
Returns
| Type |
Description |
| System.Guid |
|
Log(MessageType, String, String, Exception, Nullable<Guid>, String)
Writes to log on behalf of worker service
Declaration
public Guid Log(MessageType type, string from, string message, Exception error = null, Guid? relatedMessageID = default(Guid? ), string parameters = null)
Parameters
| Type |
Name |
Description |
| MessageType |
type |
|
| System.String |
from |
|
| System.String |
message |
|
| System.Exception |
error |
|
| System.Nullable<System.Guid> |
relatedMessageID |
|
| System.String |
parameters |
|
Returns
| Type |
Description |
| System.Guid |
|
Spawn(ProcessFrame)
Declaration
public void Spawn(ProcessFrame frame)
Parameters
Update(Process, Boolean)
Declaration
public void Update(Process process, bool sysOnly)
Parameters
| Type |
Name |
Description |
| Process |
process |
|
| System.Boolean |
sysOnly |
|
Update(ProcessFrame, Boolean)
Declaration
public void Update(ProcessFrame frame, bool sysOnly)
Parameters
| Type |
Name |
Description |
| ProcessFrame |
frame |
|
| System.Boolean |
sysOnly |
|
Explicit Interface Implementations
IProcessHost.Finalize(Process)
Declaration
void IProcessHost.Finalize(Process process)
Parameters
| Type |
Name |
Description |
| Process |
process |
|
IProcessHost.LocalDispatch(Signal)
Declaration
ResultSignal IProcessHost.LocalDispatch(Signal signal)
Parameters
| Type |
Name |
Description |
| Signal |
signal |
|
Returns
IProcessHost.LocalSpawn(Process, Nullable<AuthenticationToken>)
Declaration
void IProcessHost.LocalSpawn(Process process, AuthenticationToken? token)
Parameters
IProcessHost.Update(Process, Boolean)
Declaration
void IProcessHost.Update(Process process, bool sysOnly)
Parameters
| Type |
Name |
Description |
| Process |
process |
|
| System.Boolean |
sysOnly |
|
Implements
System.IDisposable
Extension Methods