MBrace.Runtime


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 memberDescription
ActiveWorkItems
Signature: int

Gets the number of cloud work items that are active in the current worker

CompiledName: get_ActiveWorkItems

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: get_CpuUsage

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: get_Hostname

Id
Signature: string

Worker identifier

CompiledName: get_Id

InitializationTime
Signature: DateTimeOffset

Gets the initialization/subscription time of the worker process

CompiledName: get_InitializationTime

LastHeartbeat
Signature: DateTimeOffset

Gets the latest time that a worker heartbeat was received

CompiledName: get_LastHeartbeat

MaxCpuClock
Signature: Nullable<double>

Gets the Max Cpu clock speed in MHz

CompiledName: get_MaxCpuClock

MaxWorkItemCount
Signature: int

Gets the maximum work item count permitted as set by worker configuration

CompiledName: get_MaxWorkItemCount

MemoryUsage
Signature: Nullable<double>

Gets the total memory usage of the worker host in MB

CompiledName: get_MemoryUsage

NetworkUsageDown
Signature: Nullable<double>

Gets the network download usage in KB/s

CompiledName: get_NetworkUsageDown

NetworkUsageUp
Signature: Nullable<double>

Gets the network upload usage in KB/s

CompiledName: get_NetworkUsageUp

Platform
Signature: Nullable<Platform>

Gets the platform on which the current worker instance is running

CompiledName: get_Platform

ProcessId
Signature: int

Gets the OS identifier of the worker process

CompiledName: get_ProcessId

ProcessorCount
Signature: int

Gets the total processor count of the worker host

CompiledName: get_ProcessorCount

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: get_Runtime

RuntimeId
Signature: IRuntimeId

Runtime identifier

CompiledName: get_RuntimeId

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: get_Status

SystemLogs
Signature: IEvent<SystemLogEntry>

Event for subscribing to worker-specific system logs

CompiledName: get_SystemLogs

TotalMemory
Signature: Nullable<double>

Gets the total memory capacity of the worker host in MB

CompiledName: get_TotalMemory

WorkerId
Signature: IWorkerId

Worker identifier

CompiledName: get_WorkerId

Static members

Static memberDescription
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: get_CurrentHostname

Fork me on GitHub