Package com.uc4.api.objects
Class AttributesSLO
- java.lang.Object
-
- com.uc4.api.objects.AttributesSLO
-
public class AttributesSLO extends java.lang.ObjectThis class represents information of the attributes tab of an object.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributesSLO(com.uc4.util.XMLDocument doc)Constructs aSLO attributesusing the specified XML document
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimegetOperationWindowFrom()Returns "From" time of operation window.TimegetOperationWindowTo()Returns "To" time of operation window.UC4TimezoneNamegetTimezone()Returns the time zone of this SLO Object.booleanisEnableSLOMonitoring()Checks if SLO is enabled for monitoring.booleanisMonitorPermanently()Checks if monitor mode is set to "Permanently".booleanisMonitorRestricted()Checks if monitor mode is set to restricted.voidsetEnableSLOMonitoring(boolean enableSLOMonitoring)Sets and enable SLO monitoring.voidsetMonitorPermanently()Sets monitor mode to "Permanently".voidsetMonitorRestricted()Sets monitor mode to "Restricted to daily operation window".voidsetOperationWindowFrom(Time operationWindowFrom)Sets "From" time of operation window.voidsetOperationWindowTo(Time operationWindowTo)Sets "To" time of operation window.voidsetTimezone(UC4TimezoneName timezone)Sets the time zone of this SLO Object.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)Stores data of this object under therequestelement.
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)Stores data of this object under therequestelement.- Parameters:
doc- XML Documentrequest- root element, the SLO attributes is stored in children elements ofrequest
-
isEnableSLOMonitoring
public boolean isEnableSLOMonitoring()
Checks if SLO is enabled for monitoring.- Returns:
- true, if enable is already set
-
setEnableSLOMonitoring
public void setEnableSLOMonitoring(boolean enableSLOMonitoring)
Sets and enable SLO monitoring.- Parameters:
enableSLOMonitoring- enableSLOMonitoring
-
isMonitorPermanently
public boolean isMonitorPermanently()
Checks if monitor mode is set to "Permanently".- Returns:
- true, if monitor mode is permanently
-
setMonitorPermanently
public void setMonitorPermanently()
Sets monitor mode to "Permanently".
-
isMonitorRestricted
public boolean isMonitorRestricted()
Checks if monitor mode is set to restricted.- Returns:
- true, if monitor mode is set to "Restricted to daily operation window"
-
setMonitorRestricted
public void setMonitorRestricted()
Sets monitor mode to "Restricted to daily operation window".
-
getOperationWindowFrom
public Time getOperationWindowFrom()
Returns "From" time of operation window.- Returns:
- "From" time of operation window.
-
setOperationWindowFrom
public void setOperationWindowFrom(Time operationWindowFrom)
Sets "From" time of operation window.- Parameters:
operationWindowFrom- From Time of operation window
-
getOperationWindowTo
public Time getOperationWindowTo()
Returns "To" time of operation window.- Returns:
- "To" time of operation window.
-
setOperationWindowTo
public void setOperationWindowTo(Time operationWindowTo)
Sets "To" time of operation window.- Parameters:
operationWindowTo- To Time of operation window.
-
getTimezone
public UC4TimezoneName getTimezone()
Returns the time zone of this SLO Object.This time zone applies for the actual SLO object. If no time zone has been chosen, the Automation Engine's UTC applies client-wide.
- Returns:
- Name of the TimeZone object
-
setTimezone
public void setTimezone(UC4TimezoneName timezone)
Sets the time zone of this SLO Object.This time zone applies for the actual SLO object. If no time zone has been chosen, the Automation Engine's UTC applies client-wide.
- Parameters:
timezone- Name of the TimeZone object
-
-