public class ResourceSkyline
extends java.lang.Object
containers information during its lifespan.| Constructor | Description |
|---|---|
ResourceSkyline() |
Empty constructor.
|
ResourceSkyline(java.lang.String jobIdConfig,
double jobInputDataSizeConfig,
long jobSubmissionTimeConfig,
long jobFinishTimeConfig,
org.apache.hadoop.yarn.api.records.Resource containerSpecConfig,
org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation skylineListConfig) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.api.records.Resource |
getContainerSpec() |
Get the resource spec of the job's allocated
containers. |
long |
getJobFinishTime() |
Get the job's finish time.
|
java.lang.String |
getJobId() |
Get the id of the job.
|
double |
getJobInputDataSize() |
Get the job's input data size.
|
long |
getJobSubmissionTime() |
Get the job's submission time.
|
org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation |
getSkylineList() |
Get the list of
Resources allocated to the job. |
void |
setContainerSpec(org.apache.hadoop.yarn.api.records.Resource containerSpecConfig) |
Set containerSpec.
|
void |
setJobFinishTime(long jobFinishTimeConfig) |
Set jobFinishTime.
|
void |
setJobId(java.lang.String jobIdConfig) |
Set jobId.
|
void |
setJobInputDataSize(double jobInputDataSizeConfig) |
Set jobInputDataSize.
|
void |
setJobSubmissionTime(long jobSubmissionTimeConfig) |
Set jobSubmissionTime.
|
void |
setSkylineList(org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation skylineListConfig) |
Set skylineList.
|
public ResourceSkyline(java.lang.String jobIdConfig,
double jobInputDataSizeConfig,
long jobSubmissionTimeConfig,
long jobFinishTimeConfig,
org.apache.hadoop.yarn.api.records.Resource containerSpecConfig,
org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation skylineListConfig)
jobIdConfig - the id of the job.jobInputDataSizeConfig - the input data size of the job.jobSubmissionTimeConfig - the submission time of the job.jobFinishTimeConfig - the finish time of the job.containerSpecConfig - the resource spec of containers allocated
to the job.skylineListConfig - the list of Resource allocated in
one run.public ResourceSkyline()
public final java.lang.String getJobId()
public final void setJobId(java.lang.String jobIdConfig)
jobIdConfig - jobId.public final double getJobInputDataSize()
public final void setJobInputDataSize(double jobInputDataSizeConfig)
jobInputDataSizeConfig - jobInputDataSize.public final long getJobSubmissionTime()
public final void setJobSubmissionTime(long jobSubmissionTimeConfig)
jobSubmissionTimeConfig - jobSubmissionTime.public final long getJobFinishTime()
public final void setJobFinishTime(long jobFinishTimeConfig)
jobFinishTimeConfig - jobFinishTime.public final org.apache.hadoop.yarn.api.records.Resource getContainerSpec()
containers.
Key assumption: during job's lifespan, its allocated containers
have the same Resource spec.
Resource spec of the job's allocated
containers.public final void setContainerSpec(org.apache.hadoop.yarn.api.records.Resource containerSpecConfig)
containerSpecConfig - containerSpec.public final org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation getSkylineList()
Resources allocated to the job.RLESparseResourceAllocation which contains the list of
Resources allocated to the job.public final void setSkylineList(org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation skylineListConfig)
skylineListConfig - skylineList.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.