Class Asset


public class Asset extends GenericObject
Asset object
  • Constructor Details

    • Asset

      public Asset(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:
    • getLinkedObjectId

      public long getLinkedObjectId()
      Returns:
      the linkedObjectId
    • getComponentSerial

      public String getComponentSerial()
      Get serial number of linked component. Asset can be linked either to an object as a whole or to a component of a node (stack member, transceiver, disk, etc.) identified by serial number.
      Returns:
      serial number of linked component or empty string if asset is linked to an object as a whole (or not linked)
    • isComponent

      public boolean isComponent()
      Check if this asset represents a component of linked node rather than the node itself.
      Returns:
      true if asset is linked to a component of a node
    • getLastUpdateTimestamp

      public Date getLastUpdateTimestamp()
      Returns:
      the lastUpdateTimestamp
    • getLastUpdateUserId

      public int getLastUpdateUserId()
      Returns:
      the lastUpdateUserId
    • getProperties

      public Map<String,String> getProperties()
      Returns:
      the properties