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()
LscServer
getAsyncTasksName
in interface LscServer
public String[] getSyncTasksName()
LscServer
getSyncTasksName
in interface LscServer
public boolean isAsyncTaskRunning(String taskName)
LscServer
isAsyncTaskRunning
in interface LscServer
public static void startJmx(SimpleSynchronize sync)
sync
- the synchronization object to use as callbackpublic boolean launchSyncTaskById(String taskName, String id, Map<String,String> attributes)
LscServer
launchSyncTaskById
in interface LscServer
public void launchCleanTask(String taskName) throws Exception
LscServer
launchCleanTask
in interface LscServer
Exception
public void shutdownAsyncTask(String taskName)
LscServer
shutdownAsyncTask
in interface LscServer
public void startAsyncTask(String taskName)
LscServer
startAsyncTask
in interface LscServer
public boolean ping()
LscServer
public String getPid()
LscServer
public String status()
LscServer
public void stop()
LscServer
public String getConfigurationDirectory()
LscServer
getConfigurationDirectory
in interface LscServer
public boolean launchSyncTask(String taskName, SimpleBean bean)
LscServer
launchSyncTask
in interface LscServer
taskName
- the corresponding task namebean
- the object beanpublic String getTaskStatus(String taskName)
LscServer
getTaskStatus
in interface LscServer
Copyright © 2005-2024 LSC project. All Rights Reserved.