@MXBean public interface LscServer
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
|
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 |
shutdownAsyncTask(String taskName)
Schedule for shutdown a named task
|
void |
startAsyncTask(String taskName)
Start a named task
|
String |
status()
Return the status of the current LSC instance
|
void |
stop()
Stop the whole LSC instance
|
String[] getAsyncTasksName()
String[] getSyncTasksName()
boolean isAsyncTaskRunning(String taskName)
taskName
- void startAsyncTask(String taskName)
taskName
- boolean launchSyncTaskById(String taskName, String id, Map<String,String> attributes)
taskName
- boolean launchSyncTask(String taskName, SimpleBean bean)
taskName
- the corresponding task namebean
- the object beanvoid shutdownAsyncTask(String taskName)
taskName
- boolean ping()
String getPid()
String status()
void stop()
String getConfigurationDirectory()
void launchCleanTask(String taskName) throws Exception
taskName
- Exception
Copyright © 2005-2024 LSC project. All Rights Reserved.