public interface HistorySkylineStore
ResourceSkylines in all
runs. Estimator will query the ResourceSkylines for pipeline
jobs. Parser will parse various types of job logs, construct
ResourceSkylines out of the logs and store them in the SkylineStore.| Modifier and Type | Method and Description |
|---|---|
void |
addHistory(RecurrenceId recurrenceId,
List<ResourceSkyline> resourceSkylines)
Add job's resource skyline to the store indexed by the job's
RecurrenceId. |
void |
deleteHistory(RecurrenceId recurrenceId)
Delete all
ResourceSkylines belonging to given
RecurrenceId. |
Map<RecurrenceId,List<ResourceSkyline>> |
getHistory(RecurrenceId recurrenceId)
Return all
ResourceSkylines belonging to RecurrenceId. |
void |
updateHistory(RecurrenceId recurrenceId,
List<ResourceSkyline> resourceSkylines)
Update
RecurrenceId with given ResourceSkylines. |
void addHistory(RecurrenceId recurrenceId, List<ResourceSkyline> resourceSkylines) throws SkylineStoreException
RecurrenceId. RecurrenceId is used to identify recurring
pipeline jobs, and we assume that ResourceEstimatorServer users will provide the correct
RecurrenceId. If ResourceSkylines to be added contain
null elements, the function will skip them.
recurrenceId - the unique id of user's recurring pipeline jobs.resourceSkylines - the list of ResourceSkylines in one run.SkylineStoreException - if: (1) input parameters are invalid; (2)
ResourceSkylines to be added contain some duplicate
RecurrenceIds which already exist in the
HistorySkylineStore.void deleteHistory(RecurrenceId recurrenceId) throws SkylineStoreException
ResourceSkylines belonging to given
RecurrenceId.
Note that for safety considerations, we only allow users to
deleteHistory ResourceSkylines of one job run.
recurrenceId - the unique id of user's recurring pipeline jobs.SkylineStoreException - if: (1) input parameters are invalid; (2)
recurrenceId does not exist in the HistorySkylineStore.void updateHistory(RecurrenceId recurrenceId, List<ResourceSkyline> resourceSkylines) throws SkylineStoreException
RecurrenceId with given ResourceSkylines. This
function will deleteHistory all the ResourceSkylines belonging to
the RecurrenceId, and re-insert the given ResourceSkylines
to the SkylineStore.
If ResourceSkylines contain null elements,
the function will skip them.
recurrenceId - the unique id of the pipeline job.resourceSkylines - the list of ResourceSkylines in one run.SkylineStoreException - if: (1) input parameters are invalid; (2)
recurrenceId does not exist in the SkylineStore.Map<RecurrenceId,List<ResourceSkyline>> getHistory(RecurrenceId recurrenceId) throws SkylineStoreException
ResourceSkylines belonging to RecurrenceId.
This function supports the following special wildcard operations
regarding RecurrenceId: If the pipelineId is "*", it will
return all entries in the store; else, if the runId is "*", it
will return all ResourceSkylines belonging to the
pipelineId; else, it will return all ResourceSkylines
belonging to the {pipelineId, runId}. If the
RecurrenceId does not exist, it will return null.
recurrenceId - the unique id of the pipeline job.ResourceSkylines belonging to the recurrenceId.SkylineStoreException - if recurrenceId is null.Copyright © 2019 Apache Software Foundation. All Rights Reserved.