| Constructor and Description |
|---|
LscServerImpl(SimpleSynchronize synchronize) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAsyncTasksName()
List all asynchronous manageable tasks (running or not)
|
String |
getConfigurationDirectory()
Accessor
|
String |
getPid()
Return LSC process identifier
|
SimpleSynchronize |
getSynchronize() |
String[] |
getSyncTasksName()
List all synchronous manageable tasks (running or not)
|
String |
getTaskStatus(String taskName)
Get status line of a task
|
boolean |
isAsyncTaskRunning(String taskName)
Check if the named task is running or not
|
void |
launchCleanTask(String taskName)
Launch a clean task
|
boolean |
launchSyncTask(String taskName,
SimpleBean bean)
Start a task with the corresponding bean object (bypass the source lookup)
|
boolean |
launchSyncTaskById(String taskName,
String id,
Map<String,String> attributes)
Start a named task
|
boolean |
ping()
Just ping the LSC instance
|
void |
run() |
void |
shutdownAsyncTask(String taskName)
Schedule for shutdown a named task
|
void |
startAsyncTask(String taskName)
Start a named task
|
static void |
startJmx(SimpleSynchronize sync)
Register LSC as JMX MBean
|
String |
status()
Return the status of the current LSC instance
|
void |
stop()
Stop the whole LSC instance
|
@ConstructorProperties(value="synchronize") public LscServerImpl(SimpleSynchronize synchronize)
public SimpleSynchronize getSynchronize()
public String[] getAsyncTasksName()
LscServergetAsyncTasksName in interface LscServerpublic String[] getSyncTasksName()
LscServergetSyncTasksName in interface LscServerpublic boolean isAsyncTaskRunning(String taskName)
LscServerisAsyncTaskRunning in interface LscServerpublic static void startJmx(SimpleSynchronize sync)
sync - the synchronization object to use as callbackpublic boolean launchSyncTaskById(String taskName, String id, Map<String,String> attributes)
LscServerlaunchSyncTaskById in interface LscServerpublic void launchCleanTask(String taskName) throws Exception
LscServerlaunchCleanTask in interface LscServerExceptionpublic void shutdownAsyncTask(String taskName)
LscServershutdownAsyncTask in interface LscServerpublic void startAsyncTask(String taskName)
LscServerstartAsyncTask in interface LscServerpublic boolean ping()
LscServerpublic String getPid()
LscServerpublic String status()
LscServerpublic void stop()
LscServerpublic String getConfigurationDirectory()
LscServergetConfigurationDirectory in interface LscServerpublic boolean launchSyncTask(String taskName, SimpleBean bean)
LscServerlaunchSyncTask in interface LscServertaskName - the corresponding task namebean - the object beanpublic String getTaskStatus(String taskName)
LscServergetTaskStatus in interface LscServerCopyright © 2005-2017 LSC project. All Rights Reserved.