Package org.netxms.client.maps.configs
Class LinkConfig
java.lang.Object
org.netxms.client.maps.configs.LinkConfig
-
Constructor Summary
ConstructorDescriptionDefault constructorLinkConfig
(SingleDciConfig[] dciList, List<Long> objectStatusList, int routing, long[] bendPoints, boolean useActiveThresholds, boolean useInterfaceUtilization, boolean isLocked) Create link object from scratch. -
Method Summary
Modifier and TypeMethodDescriptionCreate XML from configuration.long[]
int
int
int
getStyle()
int
getWidth()
boolean
boolean
void
setBendPoints
(long[] bendPoints) void
setDciList
(SingleDciConfig[] dciList) void
setLabelPosition
(int labelPosition) void
setObjectStatusList
(List<Long> objectStatusList) void
setRouting
(int routing) void
setStyle
(int style) void
setUseActiveThresholds
(boolean useActiveThresholds) void
setUseInterfaceUtilization
(boolean useInterfaceUtilization) void
setWidth
(int width) toString()
-
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 listobjectStatusList
- list of object identifiers for status calculation (can be null)routing
- routing typebendPoints
- list of bend points (can be null)useActiveThresholds
- true to use active DCI thresholds for status calculationisLocked
- true if link is locked
-
-
Method Details
-
createXml
Create XML from configuration.- Returns:
- XML document
- Throws:
Exception
- if the schema for the object is not valid
-
getObjectStatusList
- Returns:
- the objectStatusList
-
setObjectStatusList
- Parameters:
objectStatusList
- the objectStatusList to set
-
getDciList
- Returns:
- the dciList
-
setDciList
- 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
-