WorkerRef
Namespace: MBrace.Runtime
A Serializable object used to identify a specific worker in a cluster. Can be used to point computations for execution at specific machines.
Instance members
Instance member | Description |
ActiveWorkItems
Signature: int
|
Gets the number of cloud work items that are active in the current worker CompiledName: |
add_SystemLogs(arg1)
Signature: Handler<SystemLogEntry> -> unit
|
Event for subscribing to worker-specific system logs |
ClearSystemLogs()
Signature: unit -> unit
|
Clears system logs for current worker from store. |
ClearSystemLogsAsync()
Signature: unit -> Async<unit>
|
Asynchronously clears system logs for current worker from store. |
CpuUsage
Signature: Nullable<double>
|
Gets the total cpu usage percentage of the worker host CompiledName: |
GetInfo()
Signature: unit -> string
|
Gets a printed report on worker status |
GetSystemLogs(logLevel, filter)
Signature: (logLevel:LogLevel option * filter:(SystemLogEntry -> bool) option) -> SystemLogEntry []
|
Fetches all system logs generated by worker instance |
GetSystemLogsAsync(logLevel, filter)
Signature: (logLevel:LogLevel option * filter:(SystemLogEntry -> bool) option) -> Async<SystemLogEntry []>
|
Asynchronously fetches all system logs generated by worker instance |
Hostname
Signature: string
|
Gets the worker hostname CompiledName: |
Id
Signature: string
|
Worker identifier CompiledName: |
InitializationTime
Signature: DateTimeOffset
|
Gets the initialization/subscription time of the worker process CompiledName: |
LastHeartbeat
Signature: DateTimeOffset
|
Gets the latest time that a worker heartbeat was received CompiledName: |
MaxCpuClock
Signature: Nullable<double>
|
Gets the Max Cpu clock speed in MHz CompiledName: |
MaxWorkItemCount
Signature: int
|
Gets the maximum work item count permitted as set by worker configuration CompiledName: |
MemoryUsage
Signature: Nullable<double>
|
Gets the total memory usage of the worker host in MB CompiledName: |
NetworkUsageDown
Signature: Nullable<double>
|
Gets the network download usage in KB/s CompiledName: |
NetworkUsageUp
Signature: Nullable<double>
|
Gets the network upload usage in KB/s CompiledName: |
Platform
Signature: Nullable<Platform>
|
Gets the platform on which the current worker instance is running CompiledName: |
ProcessId
Signature: int
|
Gets the OS identifier of the worker process CompiledName: |
ProcessorCount
Signature: int
|
Gets the total processor count of the worker host CompiledName: |
remove_SystemLogs(arg1)
Signature: Handler<SystemLogEntry> -> unit
|
Event for subscribing to worker-specific system logs |
Runtime
Signature: Nullable<Runtime>
|
Gets the .NET implementation on which the current worker instance is running CompiledName: |
RuntimeId
Signature: IRuntimeId
|
Runtime identifier CompiledName: |
ShowInfo()
Signature: unit -> unit
|
Prints a report on worker to stdout |
ShowSystemLogs(logLevel, filter)
Signature: (logLevel:LogLevel option * filter:(SystemLogEntry -> bool) option) -> unit
|
Prints all system logs generated by worker instance to stdout. |
Status
Signature: WorkerExecutionStatus
|
Gets the worker execution status CompiledName: |
SystemLogs
Signature: IEvent<SystemLogEntry>
|
Event for subscribing to worker-specific system logs CompiledName: |
TotalMemory
Signature: Nullable<double>
|
Gets the total memory capacity of the worker host in MB CompiledName: |
WorkerId
Signature: IWorkerId
|
Worker identifier CompiledName: |
Static members
Static member | Description |
Create(runtime, workerId)
Signature: (runtime:IRuntimeManager * workerId:IWorkerId) -> WorkerRef
|
Creates a new WorkerRef instance for given runtime and worker id. |
CurrentHostname
Signature: string
|
Gets the hostname of the current process CompiledName: |