Interface IProcessManager
Assembly: Azos.Sky.dll
Syntax
public interface IProcessManager
Properties
HostSets
Declaration
IRegistry<HostSet> HostSets { get; }
Property Value
ProcessTypeResolver
Declaration
IGuidTypeResolver ProcessTypeResolver { get; }
Property Value
SignalTypeResolver
Declaration
IGuidTypeResolver SignalTypeResolver { get; }
Property Value
TodoTypeResolver
Declaration
IGuidTypeResolver TodoTypeResolver { get; }
Property Value
Methods
Allocate(String)
Allocates process identifier (PID) in the specified zone
Declaration
PID Allocate(string zonePath)
Parameters
Type |
Name |
Description |
System.String |
zonePath |
|
Returns
AllocateMutex(String, String)
Allocates process identifier (PID) in the specified zone based on a mutualy exclusive ID (mutex).
Mutexes are case-insensitive
Declaration
PID AllocateMutex(string zonePath, string mutex)
Parameters
Type |
Name |
Description |
System.String |
zonePath |
|
System.String |
mutex |
|
Returns
Async_Dispatch(PID, IConfigSectionNode, Guid)
Declaration
Task<ResultSignal> Async_Dispatch(PID pid, IConfigSectionNode args, Guid type)
Parameters
Returns
Async_Dispatch(PID, IConfigSectionNode, Type)
Declaration
Task<ResultSignal> Async_Dispatch(PID pid, IConfigSectionNode args, Type type = null)
Parameters
Returns
Async_Dispatch<TSignal>(TSignal)
Declaration
Task<ResultSignal> Async_Dispatch<TSignal>(TSignal signal)
where TSignal : Signal
Parameters
Type |
Name |
Description |
TSignal |
signal |
|
Returns
Type Parameters
Async_Enqueue(String, String, IConfigSectionNode, Guid)
Declaration
Task Async_Enqueue(string hostSetName, string svcName, IConfigSectionNode args, Guid type)
Parameters
Type |
Name |
Description |
System.String |
hostSetName |
|
System.String |
svcName |
|
IConfigSectionNode |
args |
|
System.Guid |
type |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Async_Enqueue(String, String, IConfigSectionNode, Type)
Declaration
Task Async_Enqueue(string hostSetName, string svcName, IConfigSectionNode args, Type type = null)
Parameters
Type |
Name |
Description |
System.String |
hostSetName |
|
System.String |
svcName |
|
IConfigSectionNode |
args |
|
System.Type |
type |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Async_Enqueue<TTodo>(TTodo, String, String)
Declaration
Task Async_Enqueue<TTodo>(TTodo todo, string hostSetName, string svcName)
where TTodo : Todo
Parameters
Type |
Name |
Description |
TTodo |
todo |
|
System.String |
hostSetName |
|
System.String |
svcName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
Async_Enqueue<TTodo>(IEnumerable<TTodo>, String, String)
Declaration
Task<int> Async_Enqueue<TTodo>(IEnumerable<TTodo> todos, string hostSetName, string svcName)
where TTodo : Todo
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TTodo> |
todos |
|
System.String |
hostSetName |
|
System.String |
svcName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
Type Parameters
Async_Spawn(PID, IConfigSectionNode, Guid)
Declaration
Task Async_Spawn(PID pid, IConfigSectionNode args, Guid type)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Async_Spawn(PID, IConfigSectionNode, Type)
Declaration
Task Async_Spawn(PID pid, IConfigSectionNode args, Type type = null)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Async_Spawn<TProcess>(TProcess)
Declaration
Task Async_Spawn<TProcess>(TProcess process)
where TProcess : Process
Parameters
Type |
Name |
Description |
TProcess |
process |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
Name |
Description |
TProcess |
|
Dispatch(PID, IConfigSectionNode, Guid)
Declaration
ResultSignal Dispatch(PID pid, IConfigSectionNode args, Guid type)
Parameters
Returns
Dispatch(PID, IConfigSectionNode, Type)
Declaration
ResultSignal Dispatch(PID pid, IConfigSectionNode args, Type type = null)
Parameters
Returns
Dispatch<TSignal>(TSignal)
Declaration
ResultSignal Dispatch<TSignal>(TSignal signal)
where TSignal : Signal
Parameters
Type |
Name |
Description |
TSignal |
signal |
|
Returns
Type Parameters
Enqueue(String, String, IConfigSectionNode, Guid)
Declaration
void Enqueue(string hostSetName, string svcName, IConfigSectionNode args, Guid type)
Parameters
Type |
Name |
Description |
System.String |
hostSetName |
|
System.String |
svcName |
|
IConfigSectionNode |
args |
|
System.Guid |
type |
|
Enqueue(String, String, IConfigSectionNode, Type)
Declaration
void Enqueue(string hostSetName, string svcName, IConfigSectionNode args, Type type = null)
Parameters
Type |
Name |
Description |
System.String |
hostSetName |
|
System.String |
svcName |
|
IConfigSectionNode |
args |
|
System.Type |
type |
|
Enqueue<TTodo>(TTodo, String, String)
Declaration
void Enqueue<TTodo>(TTodo todo, string hostSetName, string svcName)
where TTodo : Todo
Parameters
Type |
Name |
Description |
TTodo |
todo |
|
System.String |
hostSetName |
|
System.String |
svcName |
|
Type Parameters
Enqueue<TTodo>(IEnumerable<TTodo>, String, String)
Declaration
int Enqueue<TTodo>(IEnumerable<TTodo> todos, string hostSetName, string svcName)
where TTodo : Todo
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TTodo> |
todos |
|
System.String |
hostSetName |
|
System.String |
svcName |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
Get<TProcess>(PID)
Declaration
TProcess Get<TProcess>(PID pid)
where TProcess : Process
Parameters
Type |
Name |
Description |
PID |
pid |
|
Returns
Type |
Description |
TProcess |
|
Type Parameters
Name |
Description |
TProcess |
|
GetDescriptor(PID)
Declaration
ProcessDescriptor GetDescriptor(PID pid)
Parameters
Type |
Name |
Description |
PID |
pid |
|
Returns
List(String, IConfigSectionNode)
Declaration
IEnumerable<ProcessDescriptor> List(string zonePath, IConfigSectionNode filter = null)
Parameters
Returns
Spawn(PID, IConfigSectionNode, Guid)
Declaration
void Spawn(PID pid, IConfigSectionNode args, Guid type)
Parameters
Spawn(PID, IConfigSectionNode, Type)
Declaration
void Spawn(PID pid, IConfigSectionNode args, Type type = null)
Parameters
Spawn<TProcess>(TProcess)
Starts the process at the host specified by PID
Declaration
void Spawn<TProcess>(TProcess process)
where TProcess : Process
Parameters
Type |
Name |
Description |
TProcess |
process |
|
Type Parameters
Name |
Description |
TProcess |
|
Extension Methods