#[non_exhaustive]pub struct YarnApplication {
pub name: String,
pub state: State,
pub progress: f32,
pub tracking_url: String,
pub vcore_seconds: i64,
pub memory_mb_seconds: i64,
/* private fields */
}Expand description
A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The application name.
state: StateRequired. The application state.
progress: f32Required. The numerical progress of the application, from 1 to 100.
tracking_url: StringOptional. 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.
vcore_seconds: i64Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds.
memory_mb_seconds: i64Optional. The cumulative memory usage of the application for a job, measured in mb-seconds.
Implementations§
Source§impl YarnApplication
impl YarnApplication
Sourcepub fn set_progress<T: Into<f32>>(self, v: T) -> Self
pub fn set_progress<T: Into<f32>>(self, v: T) -> Self
Sourcepub fn set_tracking_url<T: Into<String>>(self, v: T) -> Self
pub fn set_tracking_url<T: Into<String>>(self, v: T) -> Self
Sets the value of tracking_url.
§Example
let x = YarnApplication::new().set_tracking_url("example");Sourcepub fn set_vcore_seconds<T: Into<i64>>(self, v: T) -> Self
pub fn set_vcore_seconds<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_memory_mb_seconds<T: Into<i64>>(self, v: T) -> Self
pub fn set_memory_mb_seconds<T: Into<i64>>(self, v: T) -> Self
Sets the value of memory_mb_seconds.
§Example
let x = YarnApplication::new().set_memory_mb_seconds(42);Trait Implementations§
Source§impl Clone for YarnApplication
impl Clone for YarnApplication
Source§fn clone(&self) -> YarnApplication
fn clone(&self) -> YarnApplication
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for YarnApplication
impl Debug for YarnApplication
Source§impl Default for YarnApplication
impl Default for YarnApplication
Source§fn default() -> YarnApplication
fn default() -> YarnApplication
Source§impl Message for YarnApplication
impl Message for YarnApplication
Source§impl PartialEq for YarnApplication
impl PartialEq for YarnApplication
impl StructuralPartialEq for YarnApplication
Auto Trait Implementations§
impl Freeze for YarnApplication
impl RefUnwindSafe for YarnApplication
impl Send for YarnApplication
impl Sync for YarnApplication
impl Unpin for YarnApplication
impl UnsafeUnpin for YarnApplication
impl UnwindSafe for YarnApplication
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request