Enum Cimv2
- All Implemented Interfaces:
Serializable, Comparable<Cimv2>
Enum representing the predefined WMI (CIM) queries for the classes available in the
root/cimv2 namespace.
Each constant holds a PowerShell query that queries a specific class in the namespace
and returns the result in JSON format. These queries are typically executed
using PowerShell and mapped to
corresponding Java objects.
- Since:
- 4.1.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuery to fetch the properties ofWin32_AssociatedProcessorMemoryclass in a custom objectQuery to fetch the properties ofWin32_BaseboardclassQuery to fetch the properties ofWin32_BatteryclassQuery to fetch the properties ofWin32_BIOSclassQuery to fetch the properties ofWin32_CacheMemoryclassQuery to fetch the properties ofWin32_ComputerSystemclassQuery to fetch the properties ofWin32_DesktopMonitorclassQuery to fetch the properties ofWin32_DiskDriveclassQuery to fetch the properties ofWin32_DiskDriveToDiskPartitionclass in a custom objectQuery to fetch the properties ofWin32_DiskPartitionclassQuery to fetch the properties ofWin32_EnvironmentclassQuery to fetch the properties ofWin32_LogicalDiskclassQuery to fetch the properties ofWin32_LogicalDiskToPartitionclass in a custom objectQuery to fetch the properties ofWin32_NetworkAdapterclassQuery to fetch the properties ofWin32_NetworkAdapterConfigurationclassQuery to fetch the properties ofWin32_NetworkAdapterSettingin a custom objectQuery to fetch the properties ofWin32_OperatingSystemclassQuery to fetch the properties ofWin32_PhysicalMemoryclassQuery to fetch the properties ofWin32_PnPEntityclassQuery to fetch the properties ofWin32_PortConnectorclassQuery to fetch the properties ofWin32_PrinterclassQuery to fetch some select properties ofWin32_ProcessclassQuery to fetch the properties ofWin32_ProcessorclassQuery to fetch the properties ofWin32_SoundDeviceclassQuery to fetch the properties ofWin32_UserAccountclassQuery to fetch the properties ofWin32_VideoControllerclass -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> @NotNull StringgenerateQuery(@NonNull Class<T> wmiClass) static Cimv2Returns the enum constant of this type with the specified name.static Cimv2[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WIN32_BATTERY
Query to fetch the properties ofWin32_Batteryclass- Since:
- 4.1.0
-
WIN32_DESKTOP_MONITOR
Query to fetch the properties ofWin32_DesktopMonitorclass- Since:
- 4.1.0
-
WIN32_VIDEO_CONTROLLER
Query to fetch the properties ofWin32_VideoControllerclass- Since:
- 4.1.0
-
WIN32_PROCESSOR
Query to fetch the properties ofWin32_Processorclass- Since:
- 4.1.0
-
WIN32_CACHE_MEMORY
Query to fetch the properties ofWin32_CacheMemoryclass- Since:
- 4.1.0
-
WIN32_ASSOCIATED_PROCESSOR_MEMORY
Query to fetch the properties ofWin32_AssociatedProcessorMemoryclass in a custom object- Since:
- 4.1.0
-
WIN32_BIOS
-
WIN32_BASEBOARD
Query to fetch the properties ofWin32_Baseboardclass- Since:
- 4.1.0
-
WIN32_PORT_CONNECTOR
Query to fetch the properties ofWin32_PortConnectorclass- Since:
- 4.1.0
-
WIN32_PHYSICAL_MEMORY
Query to fetch the properties ofWin32_PhysicalMemoryclass- Since:
- 4.1.0
-
WIN32_NETWORK_ADAPTER
Query to fetch the properties ofWin32_NetworkAdapterclass- Since:
- 4.1.0
-
WIN32_NETWORK_ADAPTER_CONFIGURATION
Query to fetch the properties ofWin32_NetworkAdapterConfigurationclass- Since:
- 4.1.0
-
WIN32_NETWORK_ADAPTER_SETTING
Query to fetch the properties ofWin32_NetworkAdapterSettingin a custom object- Since:
- 4.1.0
-
WIN32_OPERATING_SYSTEM
Query to fetch the properties ofWin32_OperatingSystemclass- Since:
- 4.1.0
-
WIN32_DISK_DRIVE
Query to fetch the properties ofWin32_DiskDriveclass- Since:
- 4.1.0
-
WIN32_DISK_PARTITION
Query to fetch the properties ofWin32_DiskPartitionclass- Since:
- 4.1.0
-
WIN32_LOGICAL_DISK
Query to fetch the properties ofWin32_LogicalDiskclass- Since:
- 4.1.0
-
WIN32_DISK_DRIVE_TO_DISK_PARTITION
Query to fetch the properties ofWin32_DiskDriveToDiskPartitionclass in a custom object- Since:
- 4.1.0
-
WIN32_LOGICAL_DISK_TO_PARTITION
Query to fetch the properties ofWin32_LogicalDiskToPartitionclass in a custom object- Since:
- 4.1.0
-
WIN32_COMPUTER_SYSTEM
Query to fetch the properties ofWin32_ComputerSystemclass- Since:
- 4.1.0
-
WIN32_ENVIRONMENT
Query to fetch the properties ofWin32_Environmentclass- Since:
- 4.1.0
-
WIN32_PRINTER
Query to fetch the properties ofWin32_Printerclass- Since:
- 4.1.0
-
WIN32_USER_ACCOUNT
Query to fetch the properties ofWin32_UserAccountclass- Since:
- 4.1.0
-
WIN32_PROCESS
Query to fetch some select properties ofWin32_Processclass- Since:
- 4.1.0
-
WIN32_SOUND_DEVICE
Query to fetch the properties ofWin32_SoundDeviceclass- Since:
- 4.1.0
-
WIN32_PNP_ENTITY
Query to fetch the properties ofWin32_PnPEntityclass
-
-
Field Details
-
query
-
-
Constructor Details
-
Cimv2
private Cimv2()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
generateQuery
-