Package org.netxms.client
Class PhysicalComponent
- java.lang.Object
-
- org.netxms.client.PhysicalComponent
-
public class PhysicalComponent extends Object
Represents node's physical component
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPhysicalComponent(org.netxms.base.NXCPMessage msg, long baseId, PhysicalComponent parent)Create object from NXCP message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetDisplayName()Get display name for component.StringgetFirmware()intgetIfIndex()intgetIndex()Get unique index of this component.StringgetModel()StringgetName()PhysicalComponentgetParent()intgetParentIndex()Get index of parent component.intgetPhyClass()intgetPosition()Get relative position within parent.StringgetSerialNumber()List<PhysicalComponent>getSubcomponents()StringgetVendor()
-
-
-
Field Detail
-
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
CHASSIS
public static final int CHASSIS
- See Also:
- Constant Field Values
-
BACKPLANE
public static final int BACKPLANE
- See Also:
- Constant Field Values
-
CONTAINER
public static final int CONTAINER
- See Also:
- Constant Field Values
-
PSU
public static final int PSU
- See Also:
- Constant Field Values
-
FAN
public static final int FAN
- See Also:
- Constant Field Values
-
SENSOR
public static final int SENSOR
- See Also:
- Constant Field Values
-
MODULE
public static final int MODULE
- See Also:
- Constant Field Values
-
PORT
public static final int PORT
- See Also:
- Constant Field Values
-
STACK
public static final int STACK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PhysicalComponent
protected PhysicalComponent(org.netxms.base.NXCPMessage msg, long baseId, PhysicalComponent parent)Create object from NXCP message- Parameters:
msg- The NXCPMessagebaseId- The base IDparent- The PhysycalComponent parent
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Get display name for component. Returns description if name is empty.- Returns:
- display name for component
-
getIndex
public int getIndex()
Get unique index of this component.- Returns:
- unique index of this component
-
getParentIndex
public int getParentIndex()
Get index of parent component.- Returns:
- index of parent component or 0 for root component
-
getPosition
public int getPosition()
Get relative position within parent.- Returns:
- relative position within parent
-
getIfIndex
public int getIfIndex()
- Returns:
- the ifIndex
-
getPhyClass
public int getPhyClass()
- Returns:
- the phyClass
-
getName
public String getName()
- Returns:
- the name
-
getDescription
public String getDescription()
- Returns:
- the description
-
getModel
public String getModel()
- Returns:
- the model
-
getSerialNumber
public String getSerialNumber()
- Returns:
- the serialNumber
-
getFirmware
public String getFirmware()
- Returns:
- the firmware
-
getVendor
public String getVendor()
- Returns:
- the vendor
-
getSubcomponents
public List<PhysicalComponent> getSubcomponents()
- Returns:
- the subcomponents
-
getParent
public PhysicalComponent getParent()
- Returns:
- the parent
-
-