public interface DesignAgent extends DesignElement.NamedDesignElement
Modifier and Type | Interface and Description |
---|---|
static class |
DesignAgent.AgentLanguage |
DesignElement.NamedDesignElement
Modifier and Type | Method and Description |
---|---|
AgentContent |
getAgentContent()
Retrieves the action content of the agent.
|
DesignAgent.AgentLanguage |
getAgentLanguage()
Language the agent is written using
|
Optional<DominoDateTime> |
getEndDate()
Gets the last date that the agent is able to run, if applicable
|
OptionalInt |
getInterval()
Retrieves the interval value for the agent.
|
AgentInterval |
getIntervalType()
Interval type for the agent
|
OptionalLong |
getLastRunDuration()
Analyses the last run log to work out the number of seconds for last run duration
|
OptionalInt |
getRunDayOfMonth()
Retrieves the 1-based day of the month that the agent should run.
|
Optional<DayOfWeek> |
getRunDayOfWeek()
Retrieves the day of the week that the agent should run.
|
Optional<LocalTime> |
getRunEndLocalTime()
Retrieves the local time of day when the agent should no longer be executed.
|
Optional<LocalTime> |
getRunLocalTime()
|
String |
getRunLocation()
Gets the server to run on.
|
String |
getRunLog()
Gets the last run log for the agent.
|
List<String> |
getRunLogAsList()
Splits the run log into a String for each line
|
Optional<DominoDateTime> |
getStartDate()
Gets the earliest date that the agent is able to run, if applicable
|
AgentTrigger |
getTrigger() |
DesignAgent |
initializeAgentLanguage(DesignAgent.AgentLanguage lang)
Language the agent should parse as
|
boolean |
isLastRunExceededTimeLimit()
Analyses the last run log to work out if the last run exceeded the max run time for agents.
|
boolean |
isRunOnWeekends()
Whether or not the agent runs on weekends, only relevant for DAILY or MORE_THAN_DAILY
|
getAliases, getTitle, setTitle
getComment, getDesignerVersion, getDocument, getItemNames, isHideFromMobile, isHideFromNotes, isHideFromWeb, isProhibitRefresh, save, setComment, setHideFromMobile, setHideFromNotes, setHideFromWeb, setProhibitRefresh, sign, sign
AgentTrigger getTrigger()
AgentTrigger#NONE
if the agent
is unavailableDesignAgent.AgentLanguage getAgentLanguage()
DesignAgent initializeAgentLanguage(DesignAgent.AgentLanguage lang)
lang
- the agent languageAgent
String getRunLocation()
"*"
when set to run on any server""
when set to prompt for a server name when enabledAgentInterval getIntervalType()
AgentInterval#NONE
if not applicableOptionalInt getInterval()
getIntervalType()
:
NONE
MINUTES
DAYS
WEEK
MONTH
AgentInterval.EVENT
Note: other than for MINUTES
, the interval value is not expressible
in Domino Designer and may not affect the behavior of the agent on the server.
OptionalInt
describing the interval, or an empty one if it is not applicableOptional<DominoDateTime> getStartDate()
Optional
representing the start date as a DominoDateTime
, or an empty
one if this is not applicableOptional<DominoDateTime> getEndDate()
Optional
representing the end datte as a DominoDateTime
, or an empty
one if this is not applicableOptional<LocalTime> getRunLocalTime()
NONE
or EVENT
.Optional
describing the local time to run, or an empty one if
this value does not applyOptional<LocalTime> getRunEndLocalTime()
MINUTES
.Optional<DayOfWeek> getRunDayOfWeek()
WEEK
.OptionalInt getRunDayOfMonth()
MONTH
.OptionalInt
describing the day of the month to execute, or an empty one if
the agent interval is not MONTH
boolean isRunOnWeekends()
String getRunLog()
List<String> getRunLogAsList()
OptionalLong getLastRunDuration()
OptionalLong
describing the number of seconds between start and end
of last run time, or an empty one if it has no run recordboolean isLastRunExceededTimeLimit()
getLastRunDuration()
to work out what that max run time setting is.AgentContent getAgentContent()
language
of the agent.AgentContent
instance representing the content of the agentCopyright © 2019–2021 HCL. All rights reserved.