public class LocalWorkerState extends JDOSupport<org.apache.taverna.server.master.localworker.PersistedState> implements WorkerModel
JDOSupport.PersistenceManagerBuilder, JDOSupport.TransactionAspect, JDOSupport.WithinSingleTransaction
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_GENERATE_PROVENANCE |
Constructor and Description |
---|
LocalWorkerState() |
delete, detach, getById, isPersistent, namedQuery, persist, query, setPersistenceManagerBuilder
public static final boolean DEFAULT_GENERATE_PROVENANCE
public void setSelf(LocalWorkerState self)
public void setDefaultLifetime(int defaultLifetime)
setDefaultLifetime
in interface WorkerModel
defaultLifetime
- how long a workflow run should live by default, in minutes.public int getDefaultLifetime()
getDefaultLifetime
in interface WorkerModel
public void setMaxRuns(int maxRuns)
setMaxRuns
in interface WorkerModel
maxRuns
- the maximum number of extant workflow runspublic int getMaxRuns()
getMaxRuns
in interface PolicyLimits
public int getOperatingLimit()
getOperatingLimit
in interface PolicyLimits
public void setOperatingLimit(int operatingLimit)
setOperatingLimit
in interface WorkerModel
operatingLimit
- the maximum number of runs in the
operating state at oncepublic void setFactoryProcessNamePrefix(String factoryProcessNamePrefix)
setFactoryProcessNamePrefix
in interface WorkerModel
factoryProcessNamePrefix
- the prefix used for factory processes in RMIpublic String getFactoryProcessNamePrefix()
getFactoryProcessNamePrefix
in interface WorkerModel
public void setExecuteWorkflowScript(String executeWorkflowScript)
setExecuteWorkflowScript
in interface WorkerModel
executeWorkflowScript
- the script to run to actually run a workflowpublic String getExecuteWorkflowScript()
getExecuteWorkflowScript
in interface WorkerModel
public void setDefaultExecuteWorkflowScript(String defaultScript)
defaultScript
- Full path to the script to use.public void setExtraArgs(String[] extraArgs)
setExtraArgs
in interface WorkerModel
extraArgs
- the extra arguments to pass into the workflow runnerpublic String[] getExtraArgs()
getExtraArgs
in interface WorkerModel
public void setWaitSeconds(int waitSeconds)
setWaitSeconds
in interface WorkerModel
waitSeconds
- the number of seconds to wait for subprocesses to startpublic int getWaitSeconds()
getWaitSeconds
in interface WorkerModel
public void setSleepMS(int sleepMS)
setSleepMS
in interface WorkerModel
sleepMS
- milliseconds to wait between polling for a started
subprocess's statuspublic int getSleepMS()
getSleepMS
in interface WorkerModel
public void setServerWorkerJar(String serverWorkerJar)
setServerWorkerJar
in interface WorkerModel
serverWorkerJar
- the full path name of the file system access worker
subprocess's implementation JARpublic String getServerWorkerJar()
getServerWorkerJar
in interface WorkerModel
public void setServerForkerJar(String serverForkerJar)
setServerForkerJar
in interface WorkerModel
serverForkerJar
- the full path name of the impersonation engine's
implementation JARpublic String getServerForkerJar()
getServerForkerJar
in interface WorkerModel
public void setJavaBinary(String javaBinary)
setJavaBinary
in interface WorkerModel
javaBinary
- the full path name to the Java binary to usepublic String getJavaBinary()
getJavaBinary
in interface WorkerModel
public void setPasswordFile(String passwordFile)
setPasswordFile
in interface WorkerModel
passwordFile
- the full path name of a file containing a password to use with
sudo (or empty for none)public String getPasswordFile()
getPasswordFile
in interface WorkerModel
public void setRegistryHost(String registryHost)
setRegistryHost
in interface WorkerModel
registryHost
- what host (network interface) is the RMI registry onpublic String getRegistryHost()
getRegistryHost
in interface WorkerModel
public void setRegistryPort(int registryPort)
setRegistryPort
in interface WorkerModel
registryPort
- what port is the RMI registry onpublic int getRegistryPort()
getRegistryPort
in interface WorkerModel
public String getRegistryJar()
getRegistryJar
in interface WorkerModel
public void setRegistryJar(String rmiRegistryJar)
setRegistryJar
in interface WorkerModel
rmiRegistryJar
- the full path name of the RMI registry subprocess's
implementation JARpublic List<URI> getPermittedWorkflowURIs()
getPermittedWorkflowURIs
in interface PolicyLimits
public void setPermittedWorkflowURIs(List<URI> permittedWorkflows)
setPermittedWorkflowURIs
in interface PolicyLimits
setPermittedWorkflowURIs
in interface WorkerModel
permittedWorkflows
- the list of URIs to workflows that may be used to create
workflow runs.public boolean getGenerateProvenance()
getGenerateProvenance
in interface WorkerModel
public void setGenerateProvenance(boolean generate)
setGenerateProvenance
in interface WorkerModel
generate
- whether a run should generate provenance information by
default@PostConstruct @JDOSupport.WithinSingleTransaction public void load()
@JDOSupport.WithinSingleTransaction public void store()
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.