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.intReturns the screen color depth.intgetCores()Returns the total number of cores in the machine.getCPU()Returns the name and speed of the CPU.intReturns 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.intReturns the screen height.Returns the user locale.intReturns the size of the memory.Returns the Operating System name.intReturns the number of screens attached to the machine.Returns the user's simulator.intReturns the number of CPU sockets in the machine.intReturns the total number of logical cores in the machine.Returns the user's OS-specific time zone.intReturns the video memory size.intgetWidth()Returns the screen width.booleanis64Bit()Returns whether the machine uses a 64-bit operating system.booleanisSLI()Returns whether the machine has more than 1 GPU.voidsetBridgeInfo(String info) Updates the user's simulator bridge version.voidUpdates the Microsoft .NET Common Language Runtime version.voidsetColorDepth(int bpp) Updates the screen color depth.voidsetCores(int c) Updates the number of CPU cores.voidUpdates the CPU information.voidsetCPUSpeed(int mhz) Updates the CPU speed.voidUpdates the Installation Date.voidUpdates the Microsoft .NET Framework version.voidUpdates the GPU information.voidUpdates the GPU driver version.voidsetIs64Bit(boolean is64) Updates whether the machine is running a 64-bit Operating System.voidsetIsSLI(boolean sli) Updates whether there are multiple GPUs in the machine.voidUpdates the user Locale.voidsetMemorySize(int memSize) Updates the memory size.voidsetOSVersion(String osName) Updates the Operating System name.voidsetScreenCount(int s) Updates the number of screens attached to the machine.voidsetScreenSize(int w, int h) Updates the screen size.voidsetSimulator(Simulator sim) Updates the user's simulator.voidsetSockets(int s) Updates the number of CPU sockets.voidsetThreads(int t) Updates the number of CPU logical cores.voidsetTimeZone(String tz) Updates the user's time zone.voidsetVideoMemorySize(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
-