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 useInterfaceUtilization, 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
    • isUseInterfaceUtilization

      public boolean isUseInterfaceUtilization()
      Returns:
      the useInterfaceUtilization
    • setUseInterfaceUtilization

      public void setUseInterfaceUtilization(boolean useInterfaceUtilization)
      Parameters:
      useInterfaceUtilization - the useInterfaceUtilization to set
    • getLabelPosition

      public int getLabelPosition()
      Returns:
      the labelPosition
    • setLabelPosition

      public void setLabelPosition(int labelPosition)
      Parameters:
      labelPosition - the labelPosition to set
    • getStyle

      public int getStyle()
      Returns:
      the style
    • setStyle

      public void setStyle(int style)
      Parameters:
      style - the style to set
    • getWidth

      public int getWidth()
      Returns:
      the width
    • setWidth

      public void setWidth(int width)
      Parameters:
      width - the width to set
    • toString

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