Class CpuCountMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="cpu-count",
          defaultPhase=INITIALIZE,
          threadSafe=true)
    public class CpuCountMojo
    extends AbstractDefinePropertyMojo
    Retrieve number of CPUs with project factor, and place it under a configurable project property
    Since:
    1.9
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String cpuCount
      The name of the property in which to store the CPU count.
      private float factor
      Projection factor.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      CpuCountMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cpuCount

        @Parameter(defaultValue="cpu.count")
        private java.lang.String cpuCount
        The name of the property in which to store the CPU count.
      • factor

        @Parameter(defaultValue="1.0")
        private float factor
        Projection factor.
    • Constructor Detail

      • CpuCountMojo

        public CpuCountMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException