Class Rack

All Implemented Interfaces:
PollingTarget

public class Rack extends DataCollectionTarget implements PollingTarget
Rack object
  • Field Details

  • Constructor Details

    • Rack

      public Rack(NXCPMessage msg, NXCSession session)
      Create from NXCP message.
      Parameters:
      msg - NXCP message
      session - owning client session
  • Method Details

    • getObjectClassName

      public String getObjectClassName()
      Description copied from class: AbstractObject
      Get name of NetXMS object's class.
      Overrides:
      getObjectClassName in class AbstractObject
      Returns:
      Name of NetXMS object's class
      See Also:
    • isAllowedOnMap

      public boolean isAllowedOnMap()
      Description copied from class: AbstractObject
      If this method returns true object is allowed to be on custom network map. Default implementation always returns false.
      Overrides:
      isAllowedOnMap in class AbstractObject
      Returns:
      true if object is allowed to be on custom network map
      See Also:
    • isAlarmsVisible

      public boolean isAlarmsVisible()
      Description copied from class: AbstractObject
      If this method returns true object can have visible alarms. Default implementation always returns false.
      Overrides:
      isAlarmsVisible in class AbstractObject
      Returns:
      true if object can contain visible alarms
      See Also:
    • getHeight

      public int getHeight()
      Returns:
      the height
    • isTopBottomNumbering

      public boolean isTopBottomNumbering()
      Returns:
      the topBottomNumbering
    • getPassiveElements

      public List<PassiveRackElement> getPassiveElements()
      Get rack attribute config entry list
      Returns:
      entryList
    • getUnits

      public List<HardwareEntity> getUnits()
      Get rack units, ordered by unit numbers
      Returns:
      rack units, ordered by unit numbers
    • getPassiveElement

      public PassiveRackElement getPassiveElement(long id)
      Get passive element by ID.
      Parameters:
      id - element ID
      Returns:
      passive element with given ID or null if such element does not exist
    • getWidth

      public int getWidth()
      Get external cabinet width.
      Returns:
      external cabinet width in millimetres
    • getDepth

      public int getDepth()
      Get external cabinet depth.
      Returns:
      external cabinet depth in millimetres
    • getRoomX

      public int getRoomX()
      Get X coordinate of rack footprint reference corner on room floor plan. Only meaningful if rack is placed in room.
      Returns:
      X coordinate in room coordinates, millimetres
    • getRoomY

      public int getRoomY()
      Get Y coordinate of rack footprint reference corner on room floor plan. Only meaningful if rack is placed in room.
      Returns:
      Y coordinate in room coordinates, millimetres
    • getRoomRotation

      public int getRoomRotation()
      Get rotation of rack on room floor plan (front direction). Only meaningful if rack is placed in room.
      Returns:
      rotation in degrees (0..359)
    • isPlacedInRoom

      public boolean isPlacedInRoom()
      Check if this rack was positioned on floor plan of its room. Server clears this flag when rack is removed from the room.
      Returns:
      true if rack was positioned on room floor plan
    • isFrontSideOnly

      public boolean isFrontSideOnly()
      Check if "front side only" flag is set for this rack.
      Returns:
      true if "front side only" flag is set for this rack
    • getFlags

      public int getFlags()
      Description copied from interface: PollingTarget
      Get object flags.
      Specified by:
      getFlags in interface PollingTarget
      Returns:
      object flags
      See Also:
    • getIfXTablePolicy

      public int getIfXTablePolicy()
      Description copied from interface: PollingTarget
      Get ifXTable usage policy.
      Specified by:
      getIfXTablePolicy in interface PollingTarget
      Returns:
      ifXTable usage policy
      See Also:
    • getAgentCacheMode

      public AgentCacheMode getAgentCacheMode()
      Description copied from interface: PollingTarget
      Get agent cache mode.
      Specified by:
      getAgentCacheMode in interface PollingTarget
      Returns:
      agent cache mode
      See Also:
    • getPollerNodeId

      public long getPollerNodeId()
      Description copied from interface: PollingTarget
      Get poller node ID.
      Specified by:
      getPollerNodeId in interface PollingTarget
      Returns:
      poller node ID or 0 if object cannot have poler node
      See Also:
    • canHaveAgent

      public boolean canHaveAgent()
      Description copied from interface: PollingTarget
      Identify if this object can have NetXMS agent.
      Specified by:
      canHaveAgent in interface PollingTarget
      Returns:
      true if this object can have NetXMS agent
      See Also:
    • canHaveInterfaces

      public boolean canHaveInterfaces()
      Description copied from interface: PollingTarget
      Identify if this object can have network interfaces.
      Specified by:
      canHaveInterfaces in interface PollingTarget
      Returns:
      true if this object can have network interfaces
      See Also:
    • canHavePollerNode

      public boolean canHavePollerNode()
      Description copied from interface: PollingTarget
      Identify if this object can have poller node property.
      Specified by:
      canHavePollerNode in interface PollingTarget
      Returns:
      true if this object can have poller node property
      See Also:
    • canUseEtherNetIP

      public boolean canUseEtherNetIP()
      Description copied from interface: PollingTarget
      Identify if this object can use EtherNet/IP for communications.
      Specified by:
      canUseEtherNetIP in interface PollingTarget
      Returns:
      true if this object can use EtherNet/IP for communications
      See Also:
    • canUseModbus

      public boolean canUseModbus()
      Description copied from interface: PollingTarget
      Identify if this object can use Modbus for communications.
      Specified by:
      canUseModbus in interface PollingTarget
      Returns:
      true if this object can use Modbus for communications
      See Also:
    • getPollStates

      public PollState[] getPollStates()
      Description copied from interface: PollingTarget
      Get poll states.
      Specified by:
      getPollStates in interface PollingTarget
      Returns:
      array of poll states or null if object doesn't have any
      See Also: