public class AnalyticsProcessorAdminService
extends org.wso2.carbon.core.AbstractAdmin
| Constructor and Description |
|---|
AnalyticsProcessorAdminService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteScript(String scriptName)
Delete the script with provided name.
|
AnalyticsQueryResultDto[] |
execute(String scriptContent)
Execute the given script content.
|
void |
executeInBackground(String scriptContent)
Execute the given script content in a different background thread.
|
AnalyticsQueryResultDto |
executeQuery(String query)
Execute the provided query and return the result for the query.
|
AnalyticsQueryResultDto[] |
executeScript(String scriptName)
Execute the script with given script name and return the Array of Results returned.
|
void |
executeScriptInBackground(String scriptName)
Execute the script with given script name in a different thread in background.
|
AnalyticsScriptDto[] |
getAllScripts()
Get all the script names.
|
AnalyticsScriptDto |
getScript(String name)
Get the analytics script information for the given name.
|
boolean |
isAnalyticsExecutionEnabled()
Checks and returns whether analytics execution is enabled for this node.
|
boolean |
isAnalyticsScriptExecuting(String scriptName)
Checks and returns whether particular analytics script is running in background
|
boolean |
isAnalyticsTaskExecuting(String scriptName)
Checks and returns whether scheduled analytics task executing already
|
void |
saveScript(String scriptName,
String scriptContent,
String cronExpression)
Saving the script with given details.
|
void |
saveScriptContent(String scriptName,
String scriptContent)
Saving the script with provided content and this script will not have any scheduling information.
|
void |
updateScript(String scriptName,
String scriptContent,
String cronExpression)
Update the script with provided information.
|
void |
updateScriptContent(String scriptName,
String scriptContent)
Update the script content of the provided script name.
|
void |
updateScriptTask(String scriptName,
String cronExpression)
Update the task information of the script.
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic void saveScript(String scriptName, String scriptContent, String cronExpression) throws AnalyticsProcessorAdminException
scriptName - Name of the script.scriptContent - content of the script.cronExpression - cron expression.AnalyticsProcessorAdminExceptionpublic void saveScriptContent(String scriptName, String scriptContent) throws AnalyticsProcessorAdminException
scriptName - Name of the script.scriptContent - Queries content of the script.AnalyticsProcessorAdminExceptionpublic void deleteScript(String scriptName) throws AnalyticsProcessorAdminException
scriptName - Name of the script.AnalyticsProcessorAdminExceptionpublic void updateScriptContent(String scriptName, String scriptContent) throws AnalyticsProcessorAdminException
scriptName - Name of the script.scriptContent - queries content of the script.AnalyticsProcessorAdminExceptionpublic void updateScriptTask(String scriptName, String cronExpression) throws AnalyticsProcessorAdminException
scriptName - Name of the script.cronExpression - New cron expression of the task.AnalyticsProcessorAdminExceptionpublic void updateScript(String scriptName, String scriptContent, String cronExpression) throws AnalyticsProcessorAdminException
scriptName - Name of the script.scriptContent - Queries content of the script.cronExpression - Cron expression of the script.AnalyticsProcessorAdminExceptionpublic AnalyticsScriptDto[] getAllScripts() throws AnalyticsProcessorAdminException
AnalyticsProcessorAdminExceptionpublic AnalyticsScriptDto getScript(String name) throws AnalyticsProcessorAdminException
name - Name of the script.AnalyticsProcessorAdminExceptionpublic AnalyticsQueryResultDto[] executeScript(String scriptName) throws AnalyticsProcessorAdminException
scriptName - Name of the script.AnalyticsProcessorAdminExceptionpublic void executeScriptInBackground(String scriptName) throws AnalyticsProcessorAdminException
scriptName - Name of the script.AnalyticsProcessorAdminExceptionpublic AnalyticsQueryResultDto[] execute(String scriptContent) throws AnalyticsProcessorAdminException
scriptContent - queries content to be executed.AnalyticsProcessorAdminExceptionpublic void executeInBackground(String scriptContent) throws AnalyticsProcessorAdminException
scriptContent - queries content to be executed.AnalyticsProcessorAdminExceptionpublic AnalyticsQueryResultDto executeQuery(String query) throws AnalyticsProcessorAdminException
query - Query which needs to be executed.AnalyticsProcessorAdminExceptionpublic boolean isAnalyticsExecutionEnabled()
public boolean isAnalyticsScriptExecuting(String scriptName)
scriptName - public boolean isAnalyticsTaskExecuting(String scriptName) throws AnalyticsProcessorAdminException
AnalyticsProcessorAdminExceptionCopyright © 2016 WSO2. All rights reserved.