|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.AbstractSynchronize
org.lsc.SimpleSynchronize
public class SimpleSynchronize
Extends AbstractSynchronize to instantiate a simple synchronization engine This class is responsible for reading LSC properties and using specified classes and objects to avoid implementing each every time. You may want to override this class to implement your own way of synchronizing - but you also need to rewrite the org.lsc.Launcher class.
| Field Summary | |
|---|---|
static String |
ALL_TASKS_KEYWORD
the magic keyword for all synchronization. |
static String |
BEAN_PROPS_PREFIX
lsc.tasks.TASKNAME.bean property. |
static String |
CUSTOMLIBRARY_PROPS_PREFIX
lsc.tasks.TASKNAME.customLibrary property. |
static String |
DSTSERVICE_PROPS_PREFIX
lsc.tasks.TASKNAME.dstService property. |
static String |
LSC_PROPS_PREFIX
lsc prefix. |
static String |
OBJECT_PROPS_PREFIX
lsc.tasks.TASKNAME.object property. |
static String |
POST_CLEAN_HOOK_PROPS_PREFIX
lsc.tasks.TASKNAME.postCleanHook property. |
static String |
POST_SYNC_HOOK_PROPS_PREFIX
lsc.tasks.TASKNAME.postSyncHook property. |
static String |
SRCSERVICE_PROPS_PREFIX
lsc.tasks.TASKNAME.srcService property. |
static String |
TASKS_PROPS_PREFIX
lsc.tasks property. |
| Constructor Summary | |
|---|---|
SimpleSynchronize()
Default constructor |
|
| Method Summary | |
|---|---|
boolean |
launch(List<String> syncTasks,
List<String> cleanTasks)
Main method Check properties, and for each task, launch the synchronization and the cleaning phases. |
| Methods inherited from class org.lsc.AbstractSynchronize |
|---|
getOptions, parseOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ALL_TASKS_KEYWORD
public static final String LSC_PROPS_PREFIX
public static final String TASKS_PROPS_PREFIX
public static final String SRCSERVICE_PROPS_PREFIX
public static final String DSTSERVICE_PROPS_PREFIX
public static final String CUSTOMLIBRARY_PROPS_PREFIX
public static final String OBJECT_PROPS_PREFIX
public static final String BEAN_PROPS_PREFIX
public static final String POST_SYNC_HOOK_PROPS_PREFIX
public static final String POST_CLEAN_HOOK_PROPS_PREFIX
| Constructor Detail |
|---|
public SimpleSynchronize()
| Method Detail |
|---|
public final boolean launch(List<String> syncTasks,
List<String> cleanTasks)
throws Exception
syncTasks - string list of the synchronization tasks to launchcleanTasks - string list of the cleaning tasks to launch
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||