Class VManagerChartsLayoutStore
java.lang.Object
org.jenkinsci.plugins.vmanager.charts.util.VManagerChartsLayoutStore
Persists the per-job dashboard layout (chart order and per-chart width) for
the two chart pages (
VManagerChartsAction and BuildChartAction).
Storage is one JSON file per scope, placed under Job.getRootDir()
(i.e. $JENKINS_HOME/jobs/<job>/). One layout is shared by all
users; the build-scope layout is shared by every build of the job.
The JSON shape is opaque to Java — just a string blob written by the
dashboard JS and replayed back to it. Java only validates length and that
it parses as a JSON object (see doSaveLayout on the action classes).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringloadBuildLayout(Job<?, ?> job) static StringloadJobLayout(Job<?, ?> job) static voidsaveBuildLayout(Job<?, ?> job, String json) static voidsaveJobLayout(Job<?, ?> job, String json)
-
Field Details
-
JOB_LAYOUT_FILE
- See Also:
-
BUILD_LAYOUT_FILE
- See Also:
-
MAX_LAYOUT_BYTES
public static final int MAX_LAYOUT_BYTESHard cap on payload size, just to keep a misbehaving client honest.- See Also:
-
-
Method Details
-
loadJobLayout
-
loadBuildLayout
-
saveJobLayout
- Throws:
IOException
-
saveBuildLayout
- Throws:
IOException
-