Class LinkConfig

java.lang.Object
org.netxms.client.maps.configs.LinkConfig

public class LinkConfig extends Object
  • Constructor Details

    • LinkConfig

      public LinkConfig()
      Default constructor
    • LinkConfig

      public LinkConfig(SingleDciConfig[] dciList, List<Long> objectStatusList, int routing, long[] bendPoints, boolean useActiveThresholds, boolean isLocked)
      Create link object from scratch.
      Parameters:
      dciList - DCI list
      objectStatusList - list of object identifiers for status calculation (can be null)
      routing - routing type
      bendPoints - list of bend points (can be null)
      useActiveThresholds - true to use active DCI thresholds for status calculation
      isLocked - true if link is locked
  • Method Details

    • createXml

      public String createXml() throws Exception
      Create XML from configuration.
      Returns:
      XML document
      Throws:
      Exception - if the schema for the object is not valid
    • getObjectStatusList

      public List<Long> getObjectStatusList()
      Returns:
      the objectStatusList
    • setObjectStatusList

      public void setObjectStatusList(List<Long> objectStatusList)
      Parameters:
      objectStatusList - the objectStatusList to set
    • getDciList

      public SingleDciConfig[] getDciList()
      Returns:
      the dciList
    • setDciList

      public void setDciList(SingleDciConfig[] dciList)
      Parameters:
      dciList - the dciList to set
    • getRouting

      public int getRouting()
      Returns:
      the routing
    • setRouting

      public void setRouting(int routing)
      Parameters:
      routing - the routing to set
    • getBendPoints

      public long[] getBendPoints()
      Returns:
      the bendPoints
    • setBendPoints

      public void setBendPoints(long[] bendPoints)
      Parameters:
      bendPoints - the bendPoints to set
    • setUseActiveThresholds

      public void setUseActiveThresholds(boolean useActiveThresholds)
      Parameters:
      useActiveThresholds - set use active thresholds
    • isUseActiveThresholds

      public boolean isUseActiveThresholds()
      Returns:
      are active thresholds used
    • isLocked

      public boolean isLocked()
      Check if link is locked.
      Returns:
      true if link is locked
    • setLocked

      public void setLocked(boolean isLocked)
      Set link's "locked" state.
      Parameters:
      isLocked - true to mark link as locked
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: