public class RegEx extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
cronTime
Cron time format for this regex.
|
String |
description
Description for this regex.
|
String |
masterAction
Script for master.
|
String |
nodeAction
Script for node.
|
String |
value
Value of the reg ex as String.
|
| Constructor and Description |
|---|
RegEx(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 regex.
|
String |
getDescription()
Returns a description for this regex.
|
String |
getMasterAction()
Returns the master script.
|
String |
getNodeAction()
Returns the node script.
|
Pattern |
getPattern()
Returns the pattern corresponding to this reg ex.
|
String |
getValue()
Returns this reg ex.
|
boolean |
isTimeToRestart(long currentTime)
Checks if the current time corresponds to the cron tab configured for
this RegEx.
|
public String value
public String description
public String cronTime
public String nodeAction
public String masterAction
@DataBoundConstructor public RegEx(String value, String description, String cronTime, String nodeAction, String masterAction)
value - the reg ex.description - regex descriptioncronTime - cron time format.nodeAction - node script.masterAction - master scriptpublic String getValue()
public String getDescription()
public String getCronTime()
public Pattern getPattern() throws hudson.AbortException
hudson.AbortException - if the pattern could not be compiled.public String getNodeAction()
public String getMasterAction()
public boolean isTimeToRestart(long currentTime)
currentTime - current time from SystemCopyright © 2004–2014. All rights reserved.