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.StringgetProcessKey()Worker process identifier.com.google.protobuf.ByteStringgetProcessKeyBytes()Worker process 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.
-
getProcessKey
java.lang.String getProcessKey()
Worker process identifier. This id should be unique for all _processes_ running workers in the namespace, and should be shared by all workers in the same process. This will be used to build the worker command nexus task queue name: "temporal-sys/worker-commands/{process_key}"string process_key = 5;- Returns:
- The processKey.
-
getProcessKeyBytes
com.google.protobuf.ByteString getProcessKeyBytes()
Worker process identifier. This id should be unique for all _processes_ running workers in the namespace, and should be shared by all workers in the same process. This will be used to build the worker command nexus task queue name: "temporal-sys/worker-commands/{process_key}"string process_key = 5;- Returns:
- The bytes for processKey.
-
getProcessId
java.lang.String getProcessId()
Worker process identifier. Unlike process_key, 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. Unlike process_key, 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.
-
-