org.jenkinsci.plugins.periodicreincarnation
Class PeriodicReincarnationGlobalConfiguration.RegEx

java.lang.Object
  extended by org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnationGlobalConfiguration.RegEx
Enclosing class:
PeriodicReincarnationGlobalConfiguration

public static class PeriodicReincarnationGlobalConfiguration.RegEx
extends Object

Class for handling regular expressions.

Author:
yboev

Constructor Summary
PeriodicReincarnationGlobalConfiguration.RegEx(String value, String description, String cronTime, String nodeAction, String masterAction)
          Constructor.
 
Method Summary
 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 correspondin to this reg ex.
 String getValue()
          Returns this reg ex.
 boolean isTimeToRestart(long currentTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicReincarnationGlobalConfiguration.RegEx

@DataBoundConstructor
public PeriodicReincarnationGlobalConfiguration.RegEx(String value,
                                                                           String description,
                                                                           String cronTime,
                                                                           String nodeAction,
                                                                           String masterAction)
Constructor. Creates a reg ex.

Parameters:
value - the reg ex.
description - regex description
cronTime - cron time format.
nodeAction - node script.
masterAction - master script
Method Detail

getValue

public String getValue()
Returns this reg ex.

Returns:
the reg ex value.

getDescription

public String getDescription()
Returns a description for this regex.

Returns:
Description as String.

getCronTime

public String getCronTime()
Returns the cron time for this particular regex.

Returns:
crontime as String.

getPattern

public Pattern getPattern()
                   throws hudson.AbortException
Returns the pattern correspondin to this reg ex.

Returns:
the pattern.
Throws:
hudson.AbortException - if the pattern could not be compiled.

getNodeAction

public String getNodeAction()
Returns the node script.

Returns:
the script as String.

getMasterAction

public String getMasterAction()
Returns the master script.

Returns:
the script as String.

isTimeToRestart

public boolean isTimeToRestart(long currentTime)


Copyright © 2004-2013. All Rights Reserved.