package saker.std.api.util
public class SakerStandardTaskUtils
Utility class providing access to build tasks in the saker.standard package.
saker.standard 0.8.3
public static TaskFactory< | createMirroringTaskFactory( Creates a task that performs mirroring for the argument path. |
public static TaskIdentifier | createMirroringTaskIdentifier( Creates a task identifier for the mirroring task. |
public static TaskFactory< | createPrepareDirectoryTaskFactory( Creates a prepare directory worker task for the specified inputs. |
public static TaskFactory< | createPrepareDirectoryTaskFactory( Creates a prepare directory worker task for the specified inputs. |
public static TaskIdentifier | createPrepareDirectoryTaskIdentifier( Creates a task identifier for the directory prepare
worker task. |
public static TaskFactory<? extends SakerPath> createMirroringTaskFactory(SakerPath executionPath) throws NullPointerException, InvalidPathFormatException
Creates a task that performs mirroring for the argument path.
The task should be started with the task identifier retrieved from
createMirroringTaskIdentifier(
executionPathThe absolute execution path of the file or directory to mirror.
The task factory.
NullPointerExceptionIf the argument is
null
.InvalidPathFormatExceptionIf the argument is not absolute.
public static TaskIdentifier createMirroringTaskIdentifier(SakerPath executionPath) throws NullPointerException, InvalidPathFormatException
Creates a task identifier for the mirroring task.
executionPathThe absolute execution path of the file or directory to mirror. This should be the same as the path
passed to createMirroringTaskFactory(SakerPath) .
The task factory.
NullPointerExceptionIf the argument is
null
.InvalidPathFormatExceptionIf the argument is not absolute.
public static TaskIdentifier createPrepareDirectoryTaskIdentifier(SakerPath outputpath) throws NullPointerException, InvalidPathFormatException
Creates a task identifier for the directory prepare
worker task.
outputpathThe forward relative output path.
The task identifier.
NullPointerExceptionIf the argument is
null
.InvalidPathFormatExceptionIf the output path is not forward relative or has no file name.
saker.standard 0.8.4