flux
Interface MercurialTrigger

All Superinterfaces:
flux.Action, Cloneable, flux.runtimedatamap.RuntimeDataMap, Serializable, flux.Trigger

public interface MercurialTrigger
extends flux.Trigger

Mercurial trigger. Watches mercurial repository and fires when a new revision is seen.

Usage Example

Here is a sample job that watches OpenJDK Mercurial repository every hour and fires when a new changeset is seen:

 FlowChart flowChart = Factory.makeInstance().makeEngineHelper().makeFlowChart("Mercurial Trigger Example");
 MercurialTriggerFactory triggerFactory = (MercurialTriggerFactory) flowChart.makeFactory("MercurialTriggerFactory");
 MercurialTrigger mercurialTrigger = triggerFactory.makeMercurialTrigger("HgT");
 mercurialTrigger.setRepositoryUrl("http://hg.openjdk.java.net/jdk7/jdk7");
 mercurialTrigger.setPollingDelay("+1H");
 

Author:
arul@fluxcorp.com

Nested Class Summary
static class MercurialTrigger.MercurialTriggerResult
          The response from the MercurialTrigger.
 
Method Summary
 void setPath(String path)
          Sets the path of the hg executable.
 void setPollingDelay(String timeExpression)
          Sets the delay that occurs between changelog polling.
 void setRepositoryUrl(String url)
          Sets the mercurial repository URL.
 
Methods inherited from interface flux.Action
addFlow, addFlow, addSignalFlow, clone, execute, getDescription, getFlows, getHiddenVariableNames, getJoinExpression, getName, getPostscript, getPostscriptLanguage, getPrescript, getPrescriptLanguage, getResultInfo, getSignalsToMonitor, getTimeoutBusinessInterval, getTimeoutExpression, getVariableManager, isEndOfRun, isJoinPoint, isSkippable, isStartAction, isStartOfRun, isTransactionBreak, removeFlow, reset, setDescription, setElseFlow, setEndOfRun, setErrorFlow, setErrorFlowWithoutRollback, setErrorFlowWithRollback, setJoinExpression, setJoinPoint, setName, setPostscript, setPostscriptLanguage, setPrescript, setPrescriptLanguage, setSignalsToMonitor, setSkippable, setStartAction, setStartOfRun, setTimeoutBusinessInterval, setTimeoutExpression, setTimeoutFlow, setTransactionBreak, verify, verifyOnClient
 
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap
getRuntimeDataMap, setRuntimeDataMap
 

Method Detail

setPath

void setPath(String path)
Sets the path of the hg executable.

Parameters:
path - the path of the hg executable.

setPollingDelay

void setPollingDelay(String timeExpression)
Sets the delay that occurs between changelog polling. Defaults to +1m, one minute.

Parameters:
timeExpression - the delay that occurs between changelog polling.

setRepositoryUrl

void setRepositoryUrl(String url)
Sets the mercurial repository URL.

Parameters:
url - the mercurial repository URL.


© 2000-2011 Flux Corporation. All rights reserved.