Class ProcessInformation.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of ProcessInformation.
    • Method Detail

      • setCommand

        public ProcessInformation.Builder setCommand​(java.lang.String command)
        Display the command line used to start the process.
        Parameters:
        command - New value for the property.
      • setCpuUsage

        public ProcessInformation.Builder setCpuUsage​(java.lang.Double cpuUsage)
        The process's share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time.
        Parameters:
        cpuUsage - New value for the property.
      • setMemoryUsage

        public ProcessInformation.Builder setMemoryUsage​(java.lang.Double memoryUsage)
        A process's currently used share of available physical memory.
        Parameters:
        memoryUsage - New value for the property.
      • setNiceValue

        public ProcessInformation.Builder setNiceValue​(java.lang.String niceValue)
        A negative nice value means higher priority, whereas a positive nice value means lower priority. Zero in this field simply means priority will not be adjusted in determining a process's dispatch-ability.
        Parameters:
        niceValue - New value for the property.
      • setProcessId

        public ProcessInformation.Builder setProcessId​(java.lang.String processId)
        Display the process id.
        Parameters:
        processId - New value for the property.
      • setResidentMemorySize

        public ProcessInformation.Builder setResidentMemorySize​(java.lang.Double residentMemorySize)
        The non-swapped physical memoery a task is using.
        Parameters:
        residentMemorySize - New value for the property.
      • setSharedMemorySize

        public ProcessInformation.Builder setSharedMemorySize​(java.lang.Double sharedMemorySize)
        The amount of shared memory available to a process, not all of which is typically resident. It simply reflects memory that could be potentially shared with other processes.
        Parameters:
        sharedMemorySize - New value for the property.
      • setUser

        public ProcessInformation.Builder setUser​(java.lang.String user)
        Display the process user.
        Parameters:
        user - New value for the property.
      • setVirtualMemorySize

        public ProcessInformation.Builder setVirtualMemorySize​(java.lang.Double virtualMemorySize)
        The total amount of virtual memory used by the process. It includes all code, data and shared libraries plus pages that have been swapped out and pages that have been mapped but not used.
        Parameters:
        virtualMemorySize - New value for the property.