Package io.jenkins.plugins.specsmonitor
Class SpecsAction
java.lang.Object
io.jenkins.plugins.specsmonitor.SpecsAction
- All Implemented Interfaces:
Action,ModelObject
Adds a "Specs" page to the computer page of a node that lists its CPU, GPU, RAM and the drives and volumes it can use.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFails unless the user may see the specs, so the page can check this before it loads its sections.org.kohsuke.stapler.HttpResponseThe sections are rendered on their own, so the page does not wait for the node.org.kohsuke.stapler.HttpResponseorg.kohsuke.stapler.HttpResponseorg.kohsuke.stapler.HttpResponsegetCpu()Asks the node for its CPU.getGpu()Asks the node for its GPU.getRam()Asks the node for its RAM.Asks the node for its drives and volumes.
-
Constructor Details
-
SpecsAction
-
-
Method Details
-
getComputer
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
doCpuSection
@GET public org.kohsuke.stapler.HttpResponse doCpuSection()The sections are rendered on their own, so the page does not wait for the node. -
doGpuSection
@GET public org.kohsuke.stapler.HttpResponse doGpuSection() -
doRamSection
@GET public org.kohsuke.stapler.HttpResponse doRamSection() -
doVolumesSection
@GET public org.kohsuke.stapler.HttpResponse doVolumesSection() -
checkPermitted
public boolean checkPermitted()Fails unless the user may see the specs, so the page can check this before it loads its sections. -
getVolumes
Asks the node for its drives and volumes. Returnsnullif the node is offline or does not answer in time, since there is no meaningful last known value. -
getCpu
Asks the node for its CPU. Returnsnullif the node is offline or does not answer in time. -
getGpu
Asks the node for its GPU. Returnsnullif the node is offline or does not answer in time. -
getRam
Asks the node for its RAM. Returnsnullif the node is offline or does not answer in time.
-