Class HardwareComponent


  • public class HardwareComponent
    extends Object
    Hardware component information
    • Constructor Detail

      • HardwareComponent

        public HardwareComponent​(org.netxms.base.NXCPMessage msg,
                                 long baseId)
        Create hardware component from NXCPMessage
        Parameters:
        msg - the NXCPMessage
        baseId - the base id
    • Method Detail

      • getIndex

        public int getIndex()
        Get component index (handle).
        Returns:
        component index
      • getType

        public String getType()
        Get component type.
        Returns:
        component type
      • getVendor

        public String getVendor()
        Get component's vendor name.
        Returns:
        component's vendor name
      • getModel

        public String 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

        public String getSerialNumber()
        Get component's serial number.
        Returns:
        component's serial number
      • getPartNumber

        public String getPartNumber()
        Get component's part number.
        Returns:
        component's part number
      • getLocation

        public String getLocation()
        Get component's location within chassis or parent component.
        Returns:
        component's location
      • getDescription

        public String getDescription()
        Get category specific component description.
        Returns:
        component's description