Class: Google::Apis::DataprocV1::YarnApplication

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: This report is available for testing purposes only. It may be changed before final release.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YarnApplication

Returns a new instance of YarnApplication.



6410
6411
6412
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6410

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Required. The application name. Corresponds to the JSON property name

Returns:

  • (String)


6390
6391
6392
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6390

def name
  @name
end

#progressFloat

Required. The numerical progress of the application, from 1 to 100. Corresponds to the JSON property progress

Returns:

  • (Float)


6395
6396
6397
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6395

def progress
  @progress
end

#stateString

Required. The application state. Corresponds to the JSON property state

Returns:

  • (String)


6400
6401
6402
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6400

def state
  @state
end

#tracking_urlString

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. Corresponds to the JSON property trackingUrl

Returns:

  • (String)


6408
6409
6410
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6408

def tracking_url
  @tracking_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6415
6416
6417
6418
6419
6420
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6415

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @progress = args[:progress] if args.key?(:progress)
  @state = args[:state] if args.key?(:state)
  @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
end