public class SimpleSynchronize extends AbstractSynchronize
Modifier and Type | Field and Description |
---|---|
static String |
ALL_TASKS_KEYWORD
the magic keyword for all synchronization.
|
static List<String> |
EMPTY_LIST |
Constructor and Description |
---|
SimpleSynchronize()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Task |
getTask(String taskName) |
Task[] |
getTasks() |
Set<Map.Entry<String,Task>> |
getTasksName() |
void |
init() |
boolean |
isAsynchronousTask(String taskName) |
boolean |
launch(List<String> asyncTasks,
List<String> syncTasks,
List<String> cleanTasks)
Main method Check properties, and for each task, launch the
synchronization and the cleaning phases.
|
boolean |
launch(String taskName,
IBean bean) |
boolean |
launchById(String taskName,
Map<String,LscDatasets> entries)
Launch a sequential synchronization based on identifiers got from the source
|
getOptions, getTaskFullStatus, getThreads, getTimeLimit, isAsynchronousTaskRunning, parseOptions, setThreads, setTimeLimit, shutdownAsynchronousSynchronize2Ldap, startAsynchronousSynchronize2Ldap
public static final String ALL_TASKS_KEYWORD
public void init() throws LscConfigurationException
LscConfigurationException
public final boolean launch(List<String> asyncTasks, List<String> syncTasks, List<String> cleanTasks) throws Exception
asyncTasks
- string list of the asynchronous synchronization tasks to launchsyncTasks
- string list of the synchronization tasks to launchcleanTasks
- string list of the cleaning tasks to launchException
public boolean isAsynchronousTask(String taskName)
isAsynchronousTask
in class AbstractSynchronize
public Task getTask(String taskName)
getTask
in class AbstractSynchronize
public Task[] getTasks()
getTasks
in class AbstractSynchronize
public final boolean launchById(String taskName, Map<String,LscDatasets> entries)
taskName
- the task name to launchentries
- the entries to synchronizeCopyright © 2005-2024 LSC project. All Rights Reserved.