Package io.temporal.api.worker.v1
Interface WorkerHostInfoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
WorkerHostInfo,WorkerHostInfo.Builder
@Generated(value="protoc", comments="annotations:WorkerHostInfoOrBuilder.java.pb.meta") public interface WorkerHostInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetCurrentHostCpuUsage()System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all cores on the host pegged.floatgetCurrentHostMemUsage()System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as all available memory on the host is used.java.lang.StringgetHostName()Worker host identifier.com.google.protobuf.ByteStringgetHostNameBytes()Worker host identifier.java.lang.StringgetProcessId()Worker process identifier.com.google.protobuf.ByteStringgetProcessIdBytes()Worker process identifier.java.lang.StringgetWorkerGroupingKey()Worker grouping identifier.com.google.protobuf.ByteStringgetWorkerGroupingKeyBytes()Worker grouping identifier.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getHostName
java.lang.String getHostName()
Worker host identifier.
string host_name = 1;- Returns:
- The hostName.
-
getHostNameBytes
com.google.protobuf.ByteString getHostNameBytes()
Worker host identifier.
string host_name = 1;- Returns:
- The bytes for hostName.
-
getWorkerGroupingKey
java.lang.String getWorkerGroupingKey()
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}"string worker_grouping_key = 5;- Returns:
- The workerGroupingKey.
-
getWorkerGroupingKeyBytes
com.google.protobuf.ByteString getWorkerGroupingKeyBytes()
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}"string worker_grouping_key = 5;- Returns:
- The bytes for workerGroupingKey.
-
getProcessId
java.lang.String getProcessId()
Worker process identifier. This id only needs to be unique within one host (so using e.g. a unix pid would be appropriate).
string process_id = 2;- Returns:
- The processId.
-
getProcessIdBytes
com.google.protobuf.ByteString getProcessIdBytes()
Worker process identifier. This id only needs to be unique within one host (so using e.g. a unix pid would be appropriate).
string process_id = 2;- Returns:
- The bytes for processId.
-
getCurrentHostCpuUsage
float getCurrentHostCpuUsage()
System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all cores on the host pegged.
float current_host_cpu_usage = 3;- Returns:
- The currentHostCpuUsage.
-
getCurrentHostMemUsage
float getCurrentHostMemUsage()
System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as all available memory on the host is used.
float current_host_mem_usage = 4;- Returns:
- The currentHostMemUsage.
-
-