Package org.netxms.client
Class HardwareComponent
java.lang.Object
org.netxms.client.HardwareComponent
Hardware component information
-
Constructor Summary
ConstructorDescriptionHardwareComponent
(NXCPMessage msg, long baseId) Create hardware component from NXCPMessage -
Method Summary
Modifier and TypeMethodDescriptionlong
Get component's capacity.Get component category.Get category specific component description.int
getIndex()
Get component index (handle).Get component's location within chassis or parent component.getModel()
Get component's mode name.Get component's part number.Get component's serial number.getType()
Get component type.Get component's vendor name.
-
Constructor Details
-
HardwareComponent
Create hardware component from NXCPMessage- Parameters:
msg
- the NXCPMessagebaseId
- the base id
-
-
Method Details
-
getCategory
Get component category.- Returns:
- component category
-
getIndex
public int getIndex()Get component index (handle).- Returns:
- component index
-
getType
Get component type.- Returns:
- component type
-
getVendor
Get component's vendor name.- Returns:
- component's vendor name
-
getModel
Get component's mode name.- Returns:
- component's mode name
-
getCapacity
public long getCapacity()Get component's capacity. Actual meaning depends on component category:Capacity in bytes for storage and memory devices
Speed in kHz for processors
Capacity in mWh for batteries
- Returns:
- component's capacity
-
getSerialNumber
Get component's serial number.- Returns:
- component's serial number
-
getPartNumber
Get component's part number.- Returns:
- component's part number
-
getLocation
Get component's location within chassis or parent component.- Returns:
- component's location
-
getDescription
Get category specific component description.- Returns:
- component's description
-