Class ClusterMetrics (4.15.0)

public final class ClusterMetrics extends GeneratedMessageV3 implements ClusterMetricsOrBuilder

Contains cluster daemon metrics, such as HDFS and YARN stats. Beta Feature: This report is available for testing purposes only. It may be changed before final release.

Protobuf type google.cloud.dataproc.v1.ClusterMetrics

Static Fields

HDFS_METRICS_FIELD_NUMBER

public static final int HDFS_METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

YARN_METRICS_FIELD_NUMBER

public static final int YARN_METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClusterMetrics getDefaultInstance()
Returns
TypeDescription
ClusterMetrics

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ClusterMetrics.Builder newBuilder()
Returns
TypeDescription
ClusterMetrics.Builder

newBuilder(ClusterMetrics prototype)

public static ClusterMetrics.Builder newBuilder(ClusterMetrics prototype)
Parameter
NameDescription
prototypeClusterMetrics
Returns
TypeDescription
ClusterMetrics.Builder

parseDelimitedFrom(InputStream input)

public static ClusterMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ClusterMetrics parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClusterMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClusterMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClusterMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClusterMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ClusterMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ClusterMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClusterMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ClusterMetrics> parser()
Returns
TypeDescription
Parser<ClusterMetrics>

Methods

containsHdfsMetrics(String key)

public boolean containsHdfsMetrics(String key)

The HDFS metrics.

map<string, int64> hdfs_metrics = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsYarnMetrics(String key)

public boolean containsYarnMetrics(String key)

YARN metrics.

map<string, int64> yarn_metrics = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ClusterMetrics getDefaultInstanceForType()
Returns
TypeDescription
ClusterMetrics

getHdfsMetrics()

public Map<String,Long> getHdfsMetrics()

Use #getHdfsMetricsMap() instead.

Returns
TypeDescription
Map<String,java.lang.Long>

getHdfsMetricsCount()

public int getHdfsMetricsCount()

The HDFS metrics.

map<string, int64> hdfs_metrics = 1;

Returns
TypeDescription
int

getHdfsMetricsMap()

public Map<String,Long> getHdfsMetricsMap()

The HDFS metrics.

map<string, int64> hdfs_metrics = 1;

Returns
TypeDescription
Map<String,java.lang.Long>

getHdfsMetricsOrDefault(String key, long defaultValue)

public long getHdfsMetricsOrDefault(String key, long defaultValue)

The HDFS metrics.

map<string, int64> hdfs_metrics = 1;

Parameters
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
long

getHdfsMetricsOrThrow(String key)

public long getHdfsMetricsOrThrow(String key)

The HDFS metrics.

map<string, int64> hdfs_metrics = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
long

getParserForType()

public Parser<ClusterMetrics> getParserForType()
Returns
TypeDescription
Parser<ClusterMetrics>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getYarnMetrics()

public Map<String,Long> getYarnMetrics()

Use #getYarnMetricsMap() instead.

Returns
TypeDescription
Map<String,java.lang.Long>

getYarnMetricsCount()

public int getYarnMetricsCount()

YARN metrics.

map<string, int64> yarn_metrics = 2;

Returns
TypeDescription
int

getYarnMetricsMap()

public Map<String,Long> getYarnMetricsMap()

YARN metrics.

map<string, int64> yarn_metrics = 2;

Returns
TypeDescription
Map<String,java.lang.Long>

getYarnMetricsOrDefault(String key, long defaultValue)

public long getYarnMetricsOrDefault(String key, long defaultValue)

YARN metrics.

map<string, int64> yarn_metrics = 2;

Parameters
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
long

getYarnMetricsOrThrow(String key)

public long getYarnMetricsOrThrow(String key)

YARN metrics.

map<string, int64> yarn_metrics = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ClusterMetrics.Builder newBuilderForType()
Returns
TypeDescription
ClusterMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClusterMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ClusterMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ClusterMetrics.Builder toBuilder()
Returns
TypeDescription
ClusterMetrics.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException