public class PeriodicTrigger extends Object
Modifier and Type | Field and Description |
---|---|
String |
cronTime
Cron time format for this periodic trigger.
|
String |
description
Description for this periodic trigger.
|
String |
masterAction
Script for master.
|
String |
nodeAction
Script for node.
|
String |
value
Value of the periodic trigger as String.
|
Constructor and Description |
---|
PeriodicTrigger(String value,
String description,
String cronTime,
String nodeAction,
String masterAction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCronTime()
Returns the cron time for this particular periodic trigger.
|
String |
getDescription()
Returns a description for this periodic trigger.
|
String |
getMasterAction()
Returns the master script.
|
String |
getNodeAction()
Returns the node script.
|
String |
getValue()
Returns this periodic trigger value.
|
boolean |
isTimeToRestart(long currentTime)
Checks if the current time corresponds to the cron tab configured for
this value.
|
public String value
public String description
public String cronTime
public String nodeAction
public String masterAction
@DataBoundConstructor public PeriodicTrigger(String value, String description, String cronTime, String nodeAction, String masterAction)
value
- the value of the specific class - like a regex or failure id.description
- periodic trigger descriptioncronTime
- cron time format.nodeAction
- node script.masterAction
- master scriptpublic String getValue()
public String getDescription()
public String getCronTime()
public String getNodeAction()
public String getMasterAction()
public boolean isTimeToRestart(long currentTime)
currentTime
- current time from SystemCopyright © 2016–2019. All rights reserved.