@Singleton public class InitScriptConfigurationForTasks extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_INIT_SCRIPT_PATTERN |
Modifier | Constructor and Description |
---|---|
protected |
InitScriptConfigurationForTasks() |
Modifier and Type | Method and Description |
---|---|
InitScriptConfigurationForTasks |
appendCurrentTimeMillisToAnonymousTaskNames() |
InitScriptConfigurationForTasks |
appendIncrementingNumberToAnonymousTaskNames() |
static InitScriptConfigurationForTasks |
create() |
com.google.common.base.Supplier<String> |
getAnonymousTaskSuffixSupplier() |
String |
getBasedir()
Directory where the init script is stored.
|
String |
getInitScriptPattern() |
InitScriptConfigurationForTasks |
initScriptPattern(String initScriptPattern) |
public static final String PROPERTY_INIT_SCRIPT_PATTERN
public static InitScriptConfigurationForTasks create()
@Inject(optional=true) public InitScriptConfigurationForTasks initScriptPattern(@Named(value="jclouds.compute.init-script-pattern") String initScriptPattern)
public InitScriptConfigurationForTasks appendCurrentTimeMillisToAnonymousTaskNames()
public InitScriptConfigurationForTasks appendIncrementingNumberToAnonymousTaskNames()
public String getBasedir()
public String getInitScriptPattern()
/tmp/init-%s
, noting logs are under
the basedir/%s where %s is the taskNameInitScript#getHomeDir
,
InitScript.getLogDir()
public com.google.common.base.Supplier<String> getAnonymousTaskSuffixSupplier()
System.currentTimeMillis()
appendCurrentTimeMillisToAnonymousTaskNames()
,
appendIncrementingNumberToAnonymousTaskNames()
Copyright © 2009-2012 jclouds. All Rights Reserved.