Class SystemInformation
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.SystemInformation
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store system information.
- Since:
- 6.4
- Version:
- 7.5
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the user's simulator bridge information.Returns the Microsoft .NET Common Language Runtime version.int
Returns the screen color depth.int
getCores()
Returns the total number of cores in the machine.getCPU()
Returns the name and speed of the CPU.int
Returns the CPU speed.getDate()
Returns the Installation date.Returns the Microsoft .NET version.getGPU()
Returns the name of the GPU.Returns the GPU driver version.int
Returns the screen height.Returns the user locale.int
Returns the size of the memory.Returns the Operating System name.int
Returns the number of screens attached to the machine.Returns the user's simulator.int
Returns the number of CPU sockets in the machine.int
Returns the total number of logical cores in the machine.Returns the user's OS-specific time zone.int
Returns the video memory size.int
getWidth()
Returns the screen width.boolean
is64Bit()
Returns whether the machine uses a 64-bit operating system.boolean
isSLI()
Returns whether the machine has more than 1 GPU.void
setBridgeInfo
(String info) Updates the user's simulator bridge version.void
Updates the Microsoft .NET Common Language Runtime version.void
setColorDepth
(int bpp) Updates the screen color depth.void
setCores
(int c) Updates the number of CPU cores.void
Updates the CPU information.void
setCPUSpeed
(int mhz) Updates the CPU speed.void
Updates the Installation Date.void
Updates the Microsoft .NET Framework version.void
Updates the GPU information.void
Updates the GPU driver version.void
setIs64Bit
(boolean is64) Updates whether the machine is running a 64-bit Operating System.void
setIsSLI
(boolean sli) Updates whether there are multiple GPUs in the machine.void
Updates the user Locale.void
setMemorySize
(int memSize) Updates the memory size.void
setOSVersion
(String osName) Updates the Operating System name.void
setScreenCount
(int s) Updates the number of screens attached to the machine.void
setScreenSize
(int w, int h) Updates the screen size.void
setSimulator
(Simulator sim) Updates the user's simulator.void
setSockets
(int s) Updates the number of CPU sockets.void
setThreads
(int t) Updates the number of CPU logical cores.void
setTimeZone
(String tz) Updates the user's time zone.void
setVideoMemorySize
(int kb) Updates the video memory size.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
SystemInformation
public SystemInformation(int userID) Creates a new System Information bean.- Parameters:
userID
- the user ID
-
-
Method Details
-
getDate
Returns the Installation date.- Returns:
- the date/time the installer was run
-
getOSVersion
-
getCLRVersion
Returns the Microsoft .NET Common Language Runtime version.- Returns:
- the CLR version
-
getDotNETVersion
-
getLocale
-
getTimeZone
-
getSimulator
-
getBridgeInfo
Returns the user's simulator bridge information.- Returns:
- the bridge version, or null if unknown
-
getCPU
-
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
-
getGPUDriverVersion
-
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
Updates the CPU information.- Parameters:
cpuID
- the CPU information
-
setGPU
Updates the GPU information.- Parameters:
gpuID
- the GPU information
-
setDate
Updates the Installation Date.- Parameters:
dt
- the date/time the Installer was executed
-
setOSVersion
Updates the Operating System name.- Parameters:
osName
- the operating system name
-
setCLRVersion
Updates the Microsoft .NET Common Language Runtime version.- Parameters:
v
- the CLR version
-
setDotNETVersion
Updates the Microsoft .NET Framework version.- Parameters:
v
- the version
-
setLocale
-
setTimeZone
Updates the user's time zone.- Parameters:
tz
- the time zone name
-
setSimulator
-
setBridgeInfo
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
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 pixelsh
- 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
-