Class WorkerListInfo
- Namespace
- Temporalio.Api.Worker.V1
- Assembly
- Temporalio.dll
Limited worker information returned in the list response. When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).
public sealed class WorkerListInfo : IMessage<WorkerListInfo>, IEquatable<WorkerListInfo>, IDeepCloneable<WorkerListInfo>, IBufferMessage, IMessage
- Inheritance
-
WorkerListInfo
- Implements
-
IMessage<WorkerListInfo>IDeepCloneable<WorkerListInfo>IBufferMessageIMessage
- Inherited Members
Constructors
WorkerListInfo()
public WorkerListInfo()
WorkerListInfo(WorkerListInfo)
public WorkerListInfo(WorkerListInfo other)
Parameters
otherWorkerListInfo
Fields
DeploymentVersionFieldNumber
Field number for the "deployment_version" field.
public const int DeploymentVersionFieldNumber = 4
Field Value
DriversFieldNumber
Field number for the "drivers" field.
public const int DriversFieldNumber = 13
Field Value
HostNameFieldNumber
Field number for the "host_name" field.
public const int HostNameFieldNumber = 9
Field Value
PluginsFieldNumber
Field number for the "plugins" field.
public const int PluginsFieldNumber = 12
Field Value
ProcessIdFieldNumber
Field number for the "process_id" field.
public const int ProcessIdFieldNumber = 11
Field Value
SdkNameFieldNumber
Field number for the "sdk_name" field.
public const int SdkNameFieldNumber = 5
Field Value
SdkVersionFieldNumber
Field number for the "sdk_version" field.
public const int SdkVersionFieldNumber = 6
Field Value
StartTimeFieldNumber
Field number for the "start_time" field.
public const int StartTimeFieldNumber = 8
Field Value
StatusFieldNumber
Field number for the "status" field.
public const int StatusFieldNumber = 7
Field Value
TaskQueueFieldNumber
Field number for the "task_queue" field.
public const int TaskQueueFieldNumber = 3
Field Value
WorkerGroupingKeyFieldNumber
Field number for the "worker_grouping_key" field.
public const int WorkerGroupingKeyFieldNumber = 10
Field Value
WorkerIdentityFieldNumber
Field number for the "worker_identity" field.
public const int WorkerIdentityFieldNumber = 2
Field Value
WorkerInstanceKeyFieldNumber
Field number for the "worker_instance_key" field.
public const int WorkerInstanceKeyFieldNumber = 1
Field Value
Properties
DeploymentVersion
public WorkerDeploymentVersion DeploymentVersion { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Drivers
Storage drivers in use by this SDK.
public RepeatedField<StorageDriverInfo> Drivers { get; }
Property Value
- RepeatedField<StorageDriverInfo>
HostName
Worker host identifier.
public string HostName { get; set; }
Property Value
Parser
public static MessageParser<WorkerListInfo> Parser { get; }
Property Value
- MessageParser<WorkerListInfo>
Plugins
Plugins currently in use by this SDK.
public RepeatedField<PluginInfo> Plugins { get; }
Property Value
- RepeatedField<PluginInfo>
ProcessId
Worker process identifier. This id only needs to be unique within one host (so using e.g. a unix pid would be appropriate).
public string ProcessId { get; set; }
Property Value
SdkName
public string SdkName { get; set; }
Property Value
SdkVersion
public string SdkVersion { get; set; }
Property Value
StartTime
Worker start time. It can be used to determine worker uptime. (current time - start time)
public Timestamp StartTime { get; set; }
Property Value
- Timestamp
Status
Worker status. Defined by SDK.
public WorkerStatus Status { get; set; }
Property Value
TaskQueue
Task queue this worker is polling for tasks.
public string TaskQueue { get; set; }
Property Value
WorkerGroupingKey
Worker grouping identifier. A key to group workers that share the same client+namespace+process. This will be used to build the worker command nexus task queue name: "temporal-sys/worker-commands/{worker_grouping_key}"
public string WorkerGroupingKey { get; set; }
Property Value
WorkerIdentity
Worker identity, set by the client, may not be unique. Usually host_name+(user group name)+process_id, but can be overwritten by the user.
public string WorkerIdentity { get; set; }
Property Value
WorkerInstanceKey
Worker identifier, should be unique for the namespace. It is distinct from worker identity, which is not necessarily namespace-unique.
public string WorkerInstanceKey { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public WorkerListInfo Clone()
Returns
- WorkerListInfo
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
Equals(WorkerListInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(WorkerListInfo other)
Parameters
otherWorkerListInfoAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(WorkerListInfo)
Merges the given message into this one.
public void MergeFrom(WorkerListInfo other)
Parameters
otherWorkerListInfo
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.