Package org.jclouds.compute.callables
Class InitScriptConfigurationForTasks
java.lang.Object
org.jclouds.compute.callables.InitScriptConfigurationForTasks
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
com.google.common.base.Supplier
<String> Directory where the init script is stored.initScriptPattern
(String initScriptPattern)
-
Field Details
-
PROPERTY_INIT_SCRIPT_PATTERN
- See Also:
-
-
Constructor Details
-
InitScriptConfigurationForTasks
protected InitScriptConfigurationForTasks()
-
-
Method Details
-
create
-
initScriptPattern
@Inject(optional=true) public InitScriptConfigurationForTasks initScriptPattern(@Named("jclouds.compute.init-script-pattern") String initScriptPattern) -
appendCurrentTimeMillisToAnonymousTaskNames
-
appendIncrementingNumberToAnonymousTaskNames
-
getBasedir
Directory where the init script is stored. the runtime directory of the process will be in this dir/taskName -
getInitScriptPattern
- Returns:
- the naming convention of init scripts. ex.
/tmp/init-%s
, noting logs are under the basedir/%s where %s is the taskName - See Also:
-
getAnonymousTaskSuffixSupplier
- Returns:
- suffix where the taskName isn't set. by default this is
System.currentTimeMillis()
- See Also:
-