Class SystemInformation

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.SystemInformation
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class SystemInformation extends DatabaseBean
A bean to store system information.
Since:
6.4
Version:
7.5
Author:
Luke
See Also:
  • Constructor Details

    • SystemInformation

      public SystemInformation(int userID)
      Creates a new System Information bean.
      Parameters:
      userID - the user ID
  • Method Details

    • getDate

      public Instant getDate()
      Returns the Installation date.
      Returns:
      the date/time the installer was run
    • getOSVersion

      public String getOSVersion()
      Returns the Operating System name.
      Returns:
      the operating system name
    • getCLRVersion

      public String getCLRVersion()
      Returns the Microsoft .NET Common Language Runtime version.
      Returns:
      the CLR version
    • getDotNETVersion

      public String getDotNETVersion()
      Returns the Microsoft .NET version.
      Returns:
      the .NET version
    • getLocale

      public String getLocale()
      Returns the user locale.
      Returns:
      the locale
    • getTimeZone

      public String getTimeZone()
      Returns the user's OS-specific time zone.
      Returns:
      the time zone name
    • getSimulator

      public Simulator getSimulator()
      Returns the user's simulator.
      Returns:
      a Simulator enum
    • getBridgeInfo

      public String getBridgeInfo()
      Returns the user's simulator bridge information.
      Returns:
      the bridge version, or null if unknown
    • getCPU

      public String getCPU()
      Returns the name and speed of the CPU.
      Returns:
      the CPU data
    • getCPUSpeed

      public int getCPUSpeed()
      Returns the CPU speed.
      Returns:
      the speed in megahertz
    • getSockets

      public int getSockets()
      Returns the number of CPU sockets in the machine.
      Returns:
      the number of sockets
    • getCores

      public int getCores()
      Returns the total number of cores in the machine.
      Returns:
      the number of cores
    • getThreads

      public int getThreads()
      Returns the total number of logical cores in the machine.
      Returns:
      the number of logical cores
    • is64Bit

      public boolean is64Bit()
      Returns whether the machine uses a 64-bit operating system.
      Returns:
      TRUE if 64-bit, otherwise FALSE
    • isSLI

      public boolean isSLI()
      Returns whether the machine has more than 1 GPU.
      Returns:
      TRUE if multiple GPUs, otherwise FALSE
    • getGPU

      public String getGPU()
      Returns the name of the GPU.
      Returns:
      the GPU name
      See Also:
    • getGPUDriverVersion

      public String getGPUDriverVersion()
      Returns the GPU driver version.
      Returns:
      the version
    • getVideoMemorySize

      public int getVideoMemorySize()
      Returns the video memory size.
      Returns:
      the memory size, in megabytes
    • getWidth

      public int getWidth()
      Returns the screen width.
      Returns:
      the width in pixels
    • getHeight

      public int getHeight()
      Returns the screen height.
      Returns:
      the height in pixels
    • getColorDepth

      public int getColorDepth()
      Returns the screen color depth.
      Returns:
      the depth in bits per pixel
    • getScreenCount

      public int getScreenCount()
      Returns the number of screens attached to the machine.
      Returns:
      the number of screens
    • getMemorySize

      public int getMemorySize()
      Returns the size of the memory.
      Returns:
      the memory size in megabytes
    • setCPU

      public void setCPU(String cpuID)
      Updates the CPU information.
      Parameters:
      cpuID - the CPU information
    • setGPU

      public void setGPU(String gpuID)
      Updates the GPU information.
      Parameters:
      gpuID - the GPU information
    • setDate

      public void setDate(Instant dt)
      Updates the Installation Date.
      Parameters:
      dt - the date/time the Installer was executed
    • setOSVersion

      public void setOSVersion(String osName)
      Updates the Operating System name.
      Parameters:
      osName - the operating system name
    • setCLRVersion

      public void setCLRVersion(String v)
      Updates the Microsoft .NET Common Language Runtime version.
      Parameters:
      v - the CLR version
    • setDotNETVersion

      public void setDotNETVersion(String v)
      Updates the Microsoft .NET Framework version.
      Parameters:
      v - the version
    • setLocale

      public void setLocale(String l)
      Updates the user Locale.
      Parameters:
      l - the locale
    • setTimeZone

      public void setTimeZone(String tz)
      Updates the user's time zone.
      Parameters:
      tz - the time zone name
    • setSimulator

      public void setSimulator(Simulator sim)
      Updates the user's simulator.
      Parameters:
      sim - a Simulator
    • setBridgeInfo

      public void setBridgeInfo(String info)
      Updates the user's simulator bridge version.
      Parameters:
      info - the Bridge info
    • setMemorySize

      public void setMemorySize(int memSize)
      Updates the memory size.
      Parameters:
      memSize - the memory size in kilobytes
    • setCPUSpeed

      public void setCPUSpeed(int mhz)
      Updates the CPU speed.
      Parameters:
      mhz - the speed in megahertz
    • setSockets

      public void setSockets(int s)
      Updates the number of CPU sockets.
      Parameters:
      s - the number of scokets
    • setCores

      public void setCores(int c)
      Updates the number of CPU cores.
      Parameters:
      c - the number of cores
    • setThreads

      public void setThreads(int t)
      Updates the number of CPU logical cores.
      Parameters:
      t - the number of logical cores
    • setIs64Bit

      public void setIs64Bit(boolean is64)
      Updates whether the machine is running a 64-bit Operating System.
      Parameters:
      is64 - TRUE if using a 64-bit operating system, otherwise FALSE
    • setIsSLI

      public void setIsSLI(boolean sli)
      Updates whether there are multiple GPUs in the machine.
      Parameters:
      sli - TRUE if multiple, otherwise FALSE
    • setGPUDriverVersion

      public void setGPUDriverVersion(String v)
      Updates the GPU driver version.
      Parameters:
      v - the version
    • setVideoMemorySize

      public void setVideoMemorySize(int kb)
      Updates the video memory size.
      Parameters:
      kb - the size in megabytes
    • setScreenSize

      public void setScreenSize(int w, int h)
      Updates the screen size.
      Parameters:
      w - the screen width in pixels
      h - the screen size in pixels
    • setColorDepth

      public void setColorDepth(int bpp)
      Updates the screen color depth.
      Parameters:
      bpp - the color depth in bits per pixel
    • setScreenCount

      public void setScreenCount(int s)
      Updates the number of screens attached to the machine.
      Parameters:
      s - the number of screens