Package io.temporal.api.worker.v1
Class WorkerHeartbeat
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.temporal.api.worker.v1.WorkerHeartbeat
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkerHeartbeatOrBuilder,java.io.Serializable
@Generated(value="protoc", comments="annotations:WorkerHeartbeat.java.pb.meta") public final class WorkerHeartbeat extends com.google.protobuf.GeneratedMessageV3 implements WorkerHeartbeatOrBuilderWorker info message, contains information about the worker and its current state. All information is provided by the worker itself. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Removing those words make names less clear. --)Protobuf typetemporal.api.worker.v1.WorkerHeartbeat- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkerHeartbeat.BuilderWorker info message, contains information about the worker and its current state.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)WorkerPollerInfogetActivityPollerInfo().temporal.api.worker.v1.WorkerPollerInfo activity_poller_info = 18;WorkerPollerInfoOrBuildergetActivityPollerInfoOrBuilder().temporal.api.worker.v1.WorkerPollerInfo activity_poller_info = 18;WorkerSlotsInfogetActivityTaskSlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo activity_task_slots_info = 13;WorkerSlotsInfoOrBuildergetActivityTaskSlotsInfoOrBuilder().temporal.api.worker.v1.WorkerSlotsInfo activity_task_slots_info = 13;intgetCurrentStickyCacheSize()Current cache size, expressed in number of Workflow Executions.static WorkerHeartbeatgetDefaultInstance()WorkerHeartbeatgetDefaultInstanceForType()WorkerDeploymentVersiongetDeploymentVersion().temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 5;WorkerDeploymentVersionOrBuildergetDeploymentVersionOrBuilder().temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 5;static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.DurationgetElapsedSinceLastHeartbeat()Elapsed time since the last heartbeat from the worker.com.google.protobuf.DurationOrBuildergetElapsedSinceLastHeartbeatOrBuilder()Elapsed time since the last heartbeat from the worker.com.google.protobuf.TimestampgetHeartbeatTime()Timestamp of this heartbeat, coming from the worker.com.google.protobuf.TimestampOrBuildergetHeartbeatTimeOrBuilder()Timestamp of this heartbeat, coming from the worker.WorkerHostInfogetHostInfo()Worker host information.WorkerHostInfoOrBuildergetHostInfoOrBuilder()Worker host information.WorkerSlotsInfogetLocalActivitySlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo local_activity_slots_info = 15;WorkerSlotsInfoOrBuildergetLocalActivitySlotsInfoOrBuilder().temporal.api.worker.v1.WorkerSlotsInfo local_activity_slots_info = 15;WorkerPollerInfogetNexusPollerInfo().temporal.api.worker.v1.WorkerPollerInfo nexus_poller_info = 19;WorkerPollerInfoOrBuildergetNexusPollerInfoOrBuilder().temporal.api.worker.v1.WorkerPollerInfo nexus_poller_info = 19;WorkerSlotsInfogetNexusTaskSlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo nexus_task_slots_info = 14;WorkerSlotsInfoOrBuildergetNexusTaskSlotsInfoOrBuilder().temporal.api.worker.v1.WorkerSlotsInfo nexus_task_slots_info = 14;com.google.protobuf.Parser<WorkerHeartbeat>getParserForType()PluginInfogetPlugins(int index)Plugins currently in use by this SDK.intgetPluginsCount()Plugins currently in use by this SDK.java.util.List<PluginInfo>getPluginsList()Plugins currently in use by this SDK.PluginInfoOrBuildergetPluginsOrBuilder(int index)Plugins currently in use by this SDK.java.util.List<? extends PluginInfoOrBuilder>getPluginsOrBuilderList()Plugins currently in use by this SDK.java.lang.StringgetSdkName()string sdk_name = 6;com.google.protobuf.ByteStringgetSdkNameBytes()string sdk_name = 6;java.lang.StringgetSdkVersion()string sdk_version = 7;com.google.protobuf.ByteStringgetSdkVersionBytes()string sdk_version = 7;intgetSerializedSize()com.google.protobuf.TimestampgetStartTime()Worker start time.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()Worker start time.WorkerStatusgetStatus()Worker status.intgetStatusValue()Worker status.java.lang.StringgetTaskQueue()Task queue this worker is polling for tasks.com.google.protobuf.ByteStringgetTaskQueueBytes()Task queue this worker is polling for tasks.intgetTotalStickyCacheHit()A Workflow Task found a cached Workflow Execution to run against.intgetTotalStickyCacheMiss()A Workflow Task did not find a cached Workflow execution to run against.java.lang.StringgetWorkerIdentity()Worker identity, set by the client, may not be unique.com.google.protobuf.ByteStringgetWorkerIdentityBytes()Worker identity, set by the client, may not be unique.java.lang.StringgetWorkerInstanceKey()Worker identifier, should be unique for the namespace.com.google.protobuf.ByteStringgetWorkerInstanceKeyBytes()Worker identifier, should be unique for the namespace.WorkerPollerInfogetWorkflowPollerInfo().temporal.api.worker.v1.WorkerPollerInfo workflow_poller_info = 16;WorkerPollerInfoOrBuildergetWorkflowPollerInfoOrBuilder().temporal.api.worker.v1.WorkerPollerInfo workflow_poller_info = 16;WorkerPollerInfogetWorkflowStickyPollerInfo().temporal.api.worker.v1.WorkerPollerInfo workflow_sticky_poller_info = 17;WorkerPollerInfoOrBuildergetWorkflowStickyPollerInfoOrBuilder().temporal.api.worker.v1.WorkerPollerInfo workflow_sticky_poller_info = 17;WorkerSlotsInfogetWorkflowTaskSlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo workflow_task_slots_info = 12;WorkerSlotsInfoOrBuildergetWorkflowTaskSlotsInfoOrBuilder().temporal.api.worker.v1.WorkerSlotsInfo workflow_task_slots_info = 12;booleanhasActivityPollerInfo().temporal.api.worker.v1.WorkerPollerInfo activity_poller_info = 18;booleanhasActivityTaskSlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo activity_task_slots_info = 13;booleanhasDeploymentVersion().temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 5;booleanhasElapsedSinceLastHeartbeat()Elapsed time since the last heartbeat from the worker.inthashCode()booleanhasHeartbeatTime()Timestamp of this heartbeat, coming from the worker.booleanhasHostInfo()Worker host information.booleanhasLocalActivitySlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo local_activity_slots_info = 15;booleanhasNexusPollerInfo().temporal.api.worker.v1.WorkerPollerInfo nexus_poller_info = 19;booleanhasNexusTaskSlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo nexus_task_slots_info = 14;booleanhasStartTime()Worker start time.booleanhasWorkflowPollerInfo().temporal.api.worker.v1.WorkerPollerInfo workflow_poller_info = 16;booleanhasWorkflowStickyPollerInfo().temporal.api.worker.v1.WorkerPollerInfo workflow_sticky_poller_info = 17;booleanhasWorkflowTaskSlotsInfo().temporal.api.worker.v1.WorkerSlotsInfo workflow_task_slots_info = 12;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static WorkerHeartbeat.BuildernewBuilder()static WorkerHeartbeat.BuildernewBuilder(WorkerHeartbeat prototype)WorkerHeartbeat.BuildernewBuilderForType()protected WorkerHeartbeat.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WorkerHeartbeatparseDelimitedFrom(java.io.InputStream input)static WorkerHeartbeatparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkerHeartbeatparseFrom(byte[] data)static WorkerHeartbeatparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkerHeartbeatparseFrom(com.google.protobuf.ByteString data)static WorkerHeartbeatparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkerHeartbeatparseFrom(com.google.protobuf.CodedInputStream input)static WorkerHeartbeatparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkerHeartbeatparseFrom(java.io.InputStream input)static WorkerHeartbeatparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkerHeartbeatparseFrom(java.nio.ByteBuffer data)static WorkerHeartbeatparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<WorkerHeartbeat>parser()WorkerHeartbeat.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
WORKER_INSTANCE_KEY_FIELD_NUMBER
public static final int WORKER_INSTANCE_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKER_IDENTITY_FIELD_NUMBER
public static final int WORKER_IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOST_INFO_FIELD_NUMBER
public static final int HOST_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TASK_QUEUE_FIELD_NUMBER
public static final int TASK_QUEUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPLOYMENT_VERSION_FIELD_NUMBER
public static final int DEPLOYMENT_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SDK_NAME_FIELD_NUMBER
public static final int SDK_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SDK_VERSION_FIELD_NUMBER
public static final int SDK_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEARTBEAT_TIME_FIELD_NUMBER
public static final int HEARTBEAT_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ELAPSED_SINCE_LAST_HEARTBEAT_FIELD_NUMBER
public static final int ELAPSED_SINCE_LAST_HEARTBEAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKFLOW_TASK_SLOTS_INFO_FIELD_NUMBER
public static final int WORKFLOW_TASK_SLOTS_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTIVITY_TASK_SLOTS_INFO_FIELD_NUMBER
public static final int ACTIVITY_TASK_SLOTS_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXUS_TASK_SLOTS_INFO_FIELD_NUMBER
public static final int NEXUS_TASK_SLOTS_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCAL_ACTIVITY_SLOTS_INFO_FIELD_NUMBER
public static final int LOCAL_ACTIVITY_SLOTS_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKFLOW_POLLER_INFO_FIELD_NUMBER
public static final int WORKFLOW_POLLER_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKFLOW_STICKY_POLLER_INFO_FIELD_NUMBER
public static final int WORKFLOW_STICKY_POLLER_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTIVITY_POLLER_INFO_FIELD_NUMBER
public static final int ACTIVITY_POLLER_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXUS_POLLER_INFO_FIELD_NUMBER
public static final int NEXUS_POLLER_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_STICKY_CACHE_HIT_FIELD_NUMBER
public static final int TOTAL_STICKY_CACHE_HIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_STICKY_CACHE_MISS_FIELD_NUMBER
public static final int TOTAL_STICKY_CACHE_MISS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CURRENT_STICKY_CACHE_SIZE_FIELD_NUMBER
public static final int CURRENT_STICKY_CACHE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLUGINS_FIELD_NUMBER
public static final int PLUGINS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getWorkerInstanceKey
public java.lang.String getWorkerInstanceKey()
Worker identifier, should be unique for the namespace. It is distinct from worker identity, which is not necessarily namespace-unique.
string worker_instance_key = 1;- Specified by:
getWorkerInstanceKeyin interfaceWorkerHeartbeatOrBuilder- Returns:
- The workerInstanceKey.
-
getWorkerInstanceKeyBytes
public com.google.protobuf.ByteString getWorkerInstanceKeyBytes()
Worker identifier, should be unique for the namespace. It is distinct from worker identity, which is not necessarily namespace-unique.
string worker_instance_key = 1;- Specified by:
getWorkerInstanceKeyBytesin interfaceWorkerHeartbeatOrBuilder- Returns:
- The bytes for workerInstanceKey.
-
getWorkerIdentity
public java.lang.String getWorkerIdentity()
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.
string worker_identity = 2;- Specified by:
getWorkerIdentityin interfaceWorkerHeartbeatOrBuilder- Returns:
- The workerIdentity.
-
getWorkerIdentityBytes
public com.google.protobuf.ByteString getWorkerIdentityBytes()
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.
string worker_identity = 2;- Specified by:
getWorkerIdentityBytesin interfaceWorkerHeartbeatOrBuilder- Returns:
- The bytes for workerIdentity.
-
hasHostInfo
public boolean hasHostInfo()
Worker host information.
.temporal.api.worker.v1.WorkerHostInfo host_info = 3;- Specified by:
hasHostInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the hostInfo field is set.
-
getHostInfo
public WorkerHostInfo getHostInfo()
Worker host information.
.temporal.api.worker.v1.WorkerHostInfo host_info = 3;- Specified by:
getHostInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The hostInfo.
-
getHostInfoOrBuilder
public WorkerHostInfoOrBuilder getHostInfoOrBuilder()
Worker host information.
.temporal.api.worker.v1.WorkerHostInfo host_info = 3;- Specified by:
getHostInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
getTaskQueue
public java.lang.String getTaskQueue()
Task queue this worker is polling for tasks.
string task_queue = 4;- Specified by:
getTaskQueuein interfaceWorkerHeartbeatOrBuilder- Returns:
- The taskQueue.
-
getTaskQueueBytes
public com.google.protobuf.ByteString getTaskQueueBytes()
Task queue this worker is polling for tasks.
string task_queue = 4;- Specified by:
getTaskQueueBytesin interfaceWorkerHeartbeatOrBuilder- Returns:
- The bytes for taskQueue.
-
hasDeploymentVersion
public boolean hasDeploymentVersion()
.temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 5;- Specified by:
hasDeploymentVersionin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the deploymentVersion field is set.
-
getDeploymentVersion
public WorkerDeploymentVersion getDeploymentVersion()
.temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 5;- Specified by:
getDeploymentVersionin interfaceWorkerHeartbeatOrBuilder- Returns:
- The deploymentVersion.
-
getDeploymentVersionOrBuilder
public WorkerDeploymentVersionOrBuilder getDeploymentVersionOrBuilder()
.temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 5;- Specified by:
getDeploymentVersionOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
getSdkName
public java.lang.String getSdkName()
string sdk_name = 6;- Specified by:
getSdkNamein interfaceWorkerHeartbeatOrBuilder- Returns:
- The sdkName.
-
getSdkNameBytes
public com.google.protobuf.ByteString getSdkNameBytes()
string sdk_name = 6;- Specified by:
getSdkNameBytesin interfaceWorkerHeartbeatOrBuilder- Returns:
- The bytes for sdkName.
-
getSdkVersion
public java.lang.String getSdkVersion()
string sdk_version = 7;- Specified by:
getSdkVersionin interfaceWorkerHeartbeatOrBuilder- Returns:
- The sdkVersion.
-
getSdkVersionBytes
public com.google.protobuf.ByteString getSdkVersionBytes()
string sdk_version = 7;- Specified by:
getSdkVersionBytesin interfaceWorkerHeartbeatOrBuilder- Returns:
- The bytes for sdkVersion.
-
getStatusValue
public int getStatusValue()
Worker status. Defined by SDK.
.temporal.api.enums.v1.WorkerStatus status = 8;- Specified by:
getStatusValuein interfaceWorkerHeartbeatOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
public WorkerStatus getStatus()
Worker status. Defined by SDK.
.temporal.api.enums.v1.WorkerStatus status = 8;- Specified by:
getStatusin interfaceWorkerHeartbeatOrBuilder- Returns:
- The status.
-
hasStartTime
public boolean hasStartTime()
Worker start time. It can be used to determine worker uptime. (current time - start time)
.google.protobuf.Timestamp start_time = 9;- Specified by:
hasStartTimein interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Worker start time. It can be used to determine worker uptime. (current time - start time)
.google.protobuf.Timestamp start_time = 9;- Specified by:
getStartTimein interfaceWorkerHeartbeatOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Worker start time. It can be used to determine worker uptime. (current time - start time)
.google.protobuf.Timestamp start_time = 9;- Specified by:
getStartTimeOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasHeartbeatTime
public boolean hasHeartbeatTime()
Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
.google.protobuf.Timestamp heartbeat_time = 10;- Specified by:
hasHeartbeatTimein interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the heartbeatTime field is set.
-
getHeartbeatTime
public com.google.protobuf.Timestamp getHeartbeatTime()
Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
.google.protobuf.Timestamp heartbeat_time = 10;- Specified by:
getHeartbeatTimein interfaceWorkerHeartbeatOrBuilder- Returns:
- The heartbeatTime.
-
getHeartbeatTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getHeartbeatTimeOrBuilder()
Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
.google.protobuf.Timestamp heartbeat_time = 10;- Specified by:
getHeartbeatTimeOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasElapsedSinceLastHeartbeat
public boolean hasElapsedSinceLastHeartbeat()
Elapsed time since the last heartbeat from the worker.
.google.protobuf.Duration elapsed_since_last_heartbeat = 11;- Specified by:
hasElapsedSinceLastHeartbeatin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the elapsedSinceLastHeartbeat field is set.
-
getElapsedSinceLastHeartbeat
public com.google.protobuf.Duration getElapsedSinceLastHeartbeat()
Elapsed time since the last heartbeat from the worker.
.google.protobuf.Duration elapsed_since_last_heartbeat = 11;- Specified by:
getElapsedSinceLastHeartbeatin interfaceWorkerHeartbeatOrBuilder- Returns:
- The elapsedSinceLastHeartbeat.
-
getElapsedSinceLastHeartbeatOrBuilder
public com.google.protobuf.DurationOrBuilder getElapsedSinceLastHeartbeatOrBuilder()
Elapsed time since the last heartbeat from the worker.
.google.protobuf.Duration elapsed_since_last_heartbeat = 11;- Specified by:
getElapsedSinceLastHeartbeatOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasWorkflowTaskSlotsInfo
public boolean hasWorkflowTaskSlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo workflow_task_slots_info = 12;- Specified by:
hasWorkflowTaskSlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the workflowTaskSlotsInfo field is set.
-
getWorkflowTaskSlotsInfo
public WorkerSlotsInfo getWorkflowTaskSlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo workflow_task_slots_info = 12;- Specified by:
getWorkflowTaskSlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The workflowTaskSlotsInfo.
-
getWorkflowTaskSlotsInfoOrBuilder
public WorkerSlotsInfoOrBuilder getWorkflowTaskSlotsInfoOrBuilder()
.temporal.api.worker.v1.WorkerSlotsInfo workflow_task_slots_info = 12;- Specified by:
getWorkflowTaskSlotsInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasActivityTaskSlotsInfo
public boolean hasActivityTaskSlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo activity_task_slots_info = 13;- Specified by:
hasActivityTaskSlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the activityTaskSlotsInfo field is set.
-
getActivityTaskSlotsInfo
public WorkerSlotsInfo getActivityTaskSlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo activity_task_slots_info = 13;- Specified by:
getActivityTaskSlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The activityTaskSlotsInfo.
-
getActivityTaskSlotsInfoOrBuilder
public WorkerSlotsInfoOrBuilder getActivityTaskSlotsInfoOrBuilder()
.temporal.api.worker.v1.WorkerSlotsInfo activity_task_slots_info = 13;- Specified by:
getActivityTaskSlotsInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasNexusTaskSlotsInfo
public boolean hasNexusTaskSlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo nexus_task_slots_info = 14;- Specified by:
hasNexusTaskSlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the nexusTaskSlotsInfo field is set.
-
getNexusTaskSlotsInfo
public WorkerSlotsInfo getNexusTaskSlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo nexus_task_slots_info = 14;- Specified by:
getNexusTaskSlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The nexusTaskSlotsInfo.
-
getNexusTaskSlotsInfoOrBuilder
public WorkerSlotsInfoOrBuilder getNexusTaskSlotsInfoOrBuilder()
.temporal.api.worker.v1.WorkerSlotsInfo nexus_task_slots_info = 14;- Specified by:
getNexusTaskSlotsInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasLocalActivitySlotsInfo
public boolean hasLocalActivitySlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo local_activity_slots_info = 15;- Specified by:
hasLocalActivitySlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the localActivitySlotsInfo field is set.
-
getLocalActivitySlotsInfo
public WorkerSlotsInfo getLocalActivitySlotsInfo()
.temporal.api.worker.v1.WorkerSlotsInfo local_activity_slots_info = 15;- Specified by:
getLocalActivitySlotsInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The localActivitySlotsInfo.
-
getLocalActivitySlotsInfoOrBuilder
public WorkerSlotsInfoOrBuilder getLocalActivitySlotsInfoOrBuilder()
.temporal.api.worker.v1.WorkerSlotsInfo local_activity_slots_info = 15;- Specified by:
getLocalActivitySlotsInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasWorkflowPollerInfo
public boolean hasWorkflowPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo workflow_poller_info = 16;- Specified by:
hasWorkflowPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the workflowPollerInfo field is set.
-
getWorkflowPollerInfo
public WorkerPollerInfo getWorkflowPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo workflow_poller_info = 16;- Specified by:
getWorkflowPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The workflowPollerInfo.
-
getWorkflowPollerInfoOrBuilder
public WorkerPollerInfoOrBuilder getWorkflowPollerInfoOrBuilder()
.temporal.api.worker.v1.WorkerPollerInfo workflow_poller_info = 16;- Specified by:
getWorkflowPollerInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasWorkflowStickyPollerInfo
public boolean hasWorkflowStickyPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo workflow_sticky_poller_info = 17;- Specified by:
hasWorkflowStickyPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the workflowStickyPollerInfo field is set.
-
getWorkflowStickyPollerInfo
public WorkerPollerInfo getWorkflowStickyPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo workflow_sticky_poller_info = 17;- Specified by:
getWorkflowStickyPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The workflowStickyPollerInfo.
-
getWorkflowStickyPollerInfoOrBuilder
public WorkerPollerInfoOrBuilder getWorkflowStickyPollerInfoOrBuilder()
.temporal.api.worker.v1.WorkerPollerInfo workflow_sticky_poller_info = 17;- Specified by:
getWorkflowStickyPollerInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasActivityPollerInfo
public boolean hasActivityPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo activity_poller_info = 18;- Specified by:
hasActivityPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the activityPollerInfo field is set.
-
getActivityPollerInfo
public WorkerPollerInfo getActivityPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo activity_poller_info = 18;- Specified by:
getActivityPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The activityPollerInfo.
-
getActivityPollerInfoOrBuilder
public WorkerPollerInfoOrBuilder getActivityPollerInfoOrBuilder()
.temporal.api.worker.v1.WorkerPollerInfo activity_poller_info = 18;- Specified by:
getActivityPollerInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
hasNexusPollerInfo
public boolean hasNexusPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo nexus_poller_info = 19;- Specified by:
hasNexusPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- Whether the nexusPollerInfo field is set.
-
getNexusPollerInfo
public WorkerPollerInfo getNexusPollerInfo()
.temporal.api.worker.v1.WorkerPollerInfo nexus_poller_info = 19;- Specified by:
getNexusPollerInfoin interfaceWorkerHeartbeatOrBuilder- Returns:
- The nexusPollerInfo.
-
getNexusPollerInfoOrBuilder
public WorkerPollerInfoOrBuilder getNexusPollerInfoOrBuilder()
.temporal.api.worker.v1.WorkerPollerInfo nexus_poller_info = 19;- Specified by:
getNexusPollerInfoOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
getTotalStickyCacheHit
public int getTotalStickyCacheHit()
A Workflow Task found a cached Workflow Execution to run against.
int32 total_sticky_cache_hit = 20;- Specified by:
getTotalStickyCacheHitin interfaceWorkerHeartbeatOrBuilder- Returns:
- The totalStickyCacheHit.
-
getTotalStickyCacheMiss
public int getTotalStickyCacheMiss()
A Workflow Task did not find a cached Workflow execution to run against.
int32 total_sticky_cache_miss = 21;- Specified by:
getTotalStickyCacheMissin interfaceWorkerHeartbeatOrBuilder- Returns:
- The totalStickyCacheMiss.
-
getCurrentStickyCacheSize
public int getCurrentStickyCacheSize()
Current cache size, expressed in number of Workflow Executions.
int32 current_sticky_cache_size = 22;- Specified by:
getCurrentStickyCacheSizein interfaceWorkerHeartbeatOrBuilder- Returns:
- The currentStickyCacheSize.
-
getPluginsList
public java.util.List<PluginInfo> getPluginsList()
Plugins currently in use by this SDK.
repeated .temporal.api.worker.v1.PluginInfo plugins = 23;- Specified by:
getPluginsListin interfaceWorkerHeartbeatOrBuilder
-
getPluginsOrBuilderList
public java.util.List<? extends PluginInfoOrBuilder> getPluginsOrBuilderList()
Plugins currently in use by this SDK.
repeated .temporal.api.worker.v1.PluginInfo plugins = 23;- Specified by:
getPluginsOrBuilderListin interfaceWorkerHeartbeatOrBuilder
-
getPluginsCount
public int getPluginsCount()
Plugins currently in use by this SDK.
repeated .temporal.api.worker.v1.PluginInfo plugins = 23;- Specified by:
getPluginsCountin interfaceWorkerHeartbeatOrBuilder
-
getPlugins
public PluginInfo getPlugins(int index)
Plugins currently in use by this SDK.
repeated .temporal.api.worker.v1.PluginInfo plugins = 23;- Specified by:
getPluginsin interfaceWorkerHeartbeatOrBuilder
-
getPluginsOrBuilder
public PluginInfoOrBuilder getPluginsOrBuilder(int index)
Plugins currently in use by this SDK.
repeated .temporal.api.worker.v1.PluginInfo plugins = 23;- Specified by:
getPluginsOrBuilderin interfaceWorkerHeartbeatOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WorkerHeartbeat parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerHeartbeat parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerHeartbeat parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerHeartbeat parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerHeartbeat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerHeartbeat parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerHeartbeat parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static WorkerHeartbeat parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static WorkerHeartbeat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static WorkerHeartbeat parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static WorkerHeartbeat parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static WorkerHeartbeat parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public WorkerHeartbeat.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WorkerHeartbeat.Builder newBuilder()
-
newBuilder
public static WorkerHeartbeat.Builder newBuilder(WorkerHeartbeat prototype)
-
toBuilder
public WorkerHeartbeat.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WorkerHeartbeat.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WorkerHeartbeat getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WorkerHeartbeat> parser()
-
getParserForType
public com.google.protobuf.Parser<WorkerHeartbeat> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WorkerHeartbeat getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-