public interface SchedulerManager extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
SchedulerManager.ExportedContent |
Modifier and Type | Method and Description |
---|---|
Configuration |
addDataSource(int projectID,
Configuration config)
Creates a new data source using the given configuration and associates it to
the specified project.
|
DriverInfo |
addJDBCDriver(Set<<any>> files,
String dataBaseAdapter,
String version,
String className,
String uriTemplate)
Adds a new jdbc driver to the scheduler.
|
Configuration |
addJob(int projectID,
Configuration config)
Creates a new job using the given configuration and associates it to
the specified project.
|
PluginInfo |
addPlugin(String fileName,
byte[] fileContents)
Adds a new plugin (custom element implementation) to the scheduler.
|
ProjectView |
addProject(String name,
String description)
Creates a new project using the default structure from the template
configuration file project-template.xml.
|
void |
assignPrivileges(RoleInfo role)
Assigns the privileges to a role, overriding its previous ones if the
role existed, or creating it otherwise.
|
ClusterConfig |
changeClusterSettings(ClusterConfig cluster)
Modifies the cluster settings used by the server.
|
byte[] |
changeDatabaseConfig(DatabaseConfig settings,
boolean exportCurrentMetadata,
boolean checkConnectivity)
Modifies the database settings and exports the current metadata if the user specifies it.
|
KerberosSettings |
changeKerberosSettings(KerberosSettings kerberosSettings)
Modifies the kerberos settings used by the server.
|
void |
changePassword(String oldClearPassword,
String newClearPassword)
Method that allows clients to modify their passwords they use to log on
to the server.
|
ServerPorts |
changeServerPorts(ServerPorts ports)
Modifies the port numbers used by the server.
|
ServerSettings |
changeServerSettings(ServerSettings settings)
Modifies the server settings.
|
VDPDataSourceSettings |
changeVDPDataSourceSettings(VDPDataSourceSettings settings)
Modifies the VDP data source settings.
|
void |
compressReportsTable()
Compresses the job reports table in database.
|
byte[] |
exportData(boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties)
Deprecated.
Deprecated since 8.0u01.
Use |
byte[] |
exportData(boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties,
boolean permissions)
Deprecated.
Deprecated since 8.0u01.
Use |
byte[] |
exportData(Collection<Integer> projectsToExport,
boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties)
Deprecated.
Deprecated since 8.0u01.
Use |
byte[] |
exportData(Collection<Integer> projectsToExport,
boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties,
boolean permissions)
Deprecated.
Deprecated since 8.0u01.
Use |
byte[] |
exportData(Collection<Integer> projectsToExport,
ExportOptions exportOptions) |
byte[] |
exportData(ExportOptions exportOptions) |
byte[] |
exportData(Map<Integer,Set<Integer>> elementsToExport,
boolean exportDependencies,
boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties)
Deprecated.
Deprecated since 8.0u01.
Use |
byte[] |
exportData(Map<Integer,Set<Integer>> elementsToExport,
boolean exportDependencies,
boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties,
boolean permissions)
Deprecated.
Deprecated since 8.0u01.
Use |
byte[] |
exportData(Map<Integer,Set<Integer>> elementsToExport,
ExportOptions exportOptions) |
Map<SchedulerManager.ExportedContent,byte[]> |
exportDataMap(Map<Integer,Set<Integer>> elementsToExport,
boolean exportDependencies,
boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties)
Deprecated.
Deprecated since 8.0u01.
Use |
Map<SchedulerManager.ExportedContent,byte[]> |
exportDataMap(Map<Integer,Set<Integer>> elementsToExport,
boolean exportDependencies,
boolean config,
boolean drivers,
boolean plugins,
boolean exportWithProperties,
boolean permissions)
Deprecated.
Deprecated since 8.0u01.
Use |
Map<SchedulerManager.ExportedContent,byte[]> |
exportDataMap(Map<Integer,Set<Integer>> elementsToExport,
ExportOptions exportOptions) |
JobReportChunk |
getAllJobReports()
Gets the collection of all reports.
|
JobReportChunk |
getAllJobReports(int startIndex,
int count)
Gets the collection of all reports.
|
ClusterConfig |
getClusterSettings()
Gets the cluster settings used by the server.
|
User |
getCurrentUser()
Obtains the user authenticated against the scheduler this facade belongs
to.
|
DatabaseConfig |
getDatabaseConfig()
Gets the database settings.
|
Configuration |
getDataSource(int projectID,
int elementID)
Obtains the configuration of the given data source.
|
Collection<String> |
getElasticSearchAnalyzers()
Retrieves the collection of analyzers provided by Elastic.
|
Configuration |
getElementByName(String projectName,
String elementName,
String type)
Gets the configuration of an element by its name, its type and the name of the project it belongs to.
|
Collection<Configuration> |
getElementsBySubType(int projectID,
String type,
String subType)
Gets the collection of elements of the given type and subType associated
to the specified project.
|
Collection<Configuration> |
getElementsByType(int projectID,
String type)
Gets the collection of elements of the given type associated to the
specified project.
|
Collection<String> |
getElementSubTypes(String type)
Obtains all the subTypes for the given element type with their
meta-configuration available in the system.
|
Map<String,Set<Configuration>> |
getElementsUsedByElement(int elementID)
Gets the elements used by an specified configuration element.
|
Collection<String> |
getElementTypes()
Obtains all the types of elements with their meta-configuration available
in the system.
|
Configuration |
getExporterConfigurationByName(int projectID,
int jobID,
String exporterName)
Obtains the exporter configuration from the job it belongs to.
|
Collection<String> |
getI18ns() |
DriverInfo |
getJDBCDriver(long id)
Obtains the JDBC driver registered in the scheduler with that identifier.
|
Collection<DriverInfo> |
getJDBCDrivers()
Obtains the collection of JDBC drivers registered in the scheduler.
|
Configuration |
getJob(int projectID,
int elementID)
Obtains the configuration of the given job.
|
Collection<Integer> |
getJobDependents(Integer jobId)
Obtains the collection of job identifiers that have dependencies
with the specified job.
|
JobData |
getJobInformation(int projectID,
int jobID)
Returns the JobData object that represents the currently job in the
scheduler server.
|
JobReportChunk |
getJobReports(int projectID,
int jobID,
int startIndex,
int count)
Gets the collection of reports associated to the given job.
|
Collection<JobData> |
getJobsInformation()
Returns a list of JobData objects that represent all current jobs in the
scheduler server.
|
Collection<JobData> |
getJobsInformation(List<Integer> jobIDs)
Returns a list of JobData objects that represent the status of the asked jobs in the
scheduler server.
|
KerberosSettings |
getKerberosSettings()
Gets the kerberos settings used by the server.
|
MailConfig |
getMailConfiguration()
Gets the mail configuration used by the server.
|
MetaConfiguration |
getMetaConfiguration(String type,
String subType)
Obtains the
MetaConfiguration for the element matching the
specified type and subType. |
Collection<MetaConfiguration> |
getMetaConfigurations(String type)
Obtains a Collection of
MetaConfiguration . |
Collection<PluginInfo> |
getPlugins()
Obtains the collection of plugins (custom element implementation)
registered in the scheduler.
|
ProjectView |
getProject(int projectID)
Obtains the project with the specified identifier.
|
ProjectView |
getProject(String projectName)
Obtains the project with the specified name.
|
Collection<Item> |
getProjects()
Obtains the current projects in the system.
|
Map<Integer,Integer> |
getProjectsByElement()
Gets a map mapping the configuration elements with the project identifier
they belong to.
|
Map<Integer,Integer> |
getProjectsByElement(String type)
Gets a map mapping the configuration elements of the specified type with
the project identifier they belong to.
|
JobReport |
getReport(int reportID)
Gets the job report .
|
RoleInfo |
getRole(String roleName)
Obtains the permissions configured for the given role name.
|
Set<RoleData> |
getRoleNames()
Obtains the names and descriptions of the roles stored in the server.
|
Set<RoleInfo> |
getRoles()
Obtains the roles and their permissions stored in the server,
already merged with the ones coming from VDP.
|
String |
getSchedulerMode()
Gets the Scheduler server running mode.
|
ServerData |
getServerData(boolean refresh) |
String |
getServerKerberosPrincipal()
Gets the Server Principal Name of this Scheduler server.
|
ServerPorts |
getServerPorts()
Gets the port numbers used by the server.
|
ServerSettings |
getServerSettings()
Gets the server settings.
|
Set<RoleInfo> |
getUserPermissionsByRole()
Gets the roles (with their permissions) the authenticated user has
assigned.
|
VDPDataSourceSettings |
getVDPDataSourceSettings()
Gets the VDP data source settings.
|
VDPManager |
getVDPManager()
Gets the manager to introspect a VDP server.
|
Map<String,Collection<String>> |
importData(byte[] zipFile,
boolean replace)
Imports a Scheduler backup in the server.
|
Map<String,Collection<String>> |
importData(byte[] zipFile,
boolean replace,
boolean legacy)
Deprecated.
Deprecated since 8.0u01.
Use |
Map<String,Collection<String>> |
importData(byte[] zipFile,
boolean replaceJobs,
boolean replaceDataSources,
boolean replaceFilterSequences,
boolean replacePlugins,
boolean replaceDrivers)
Deprecated.
Deprecated since 8.0u01.
Filter Sequences are no longer supported, so replacedFilterSequences parameter has no effect
Use |
Map<String,Collection<String>> |
importData(byte[] zipFile,
boolean replaceJobs,
boolean replaceDataSources,
boolean replaceFilterSequences,
boolean replacePlugins,
boolean replaceDrivers,
boolean legacy)
Deprecated.
Deprecated since 8.0u01.
Filter Sequences are no longer supported, so replacedFilterSequences parameter has no effect
Use |
Map<String,Collection<String>> |
importData(byte[] zipFile,
byte[] propertiesFile,
Map<String,Map<String,Set<String>>> elementsToImport,
boolean replaceJobs,
boolean replaceDataSources,
boolean replaceFilterSequences,
boolean replacePlugins,
boolean replaceDrivers)
Deprecated.
Deprecated since 8.0u01.
Filter Sequences are no longer supported, so replacedFilterSequences parameter has no effect
Use |
Map<String,Collection<String>> |
importData(byte[] zipFile,
byte[] propertiesFile,
Map<String,Map<String,Set<String>>> elementsToImport,
boolean replaceJobs,
boolean replaceDataSources,
boolean replaceFilterSequences,
boolean replacePlugins,
boolean replaceDrivers,
boolean legacy)
Deprecated.
Deprecated since 8.0u01.
Filter Sequences are no longer supported, so replacedFilterSequences parameter has no effect
Use |
Map<String,Collection<String>> |
importData(byte[] zipFile,
Map<String,Map<String,Set<String>>> elementsToImport,
boolean replaceJobs,
boolean replaceDataSources,
boolean replaceFilterSequences,
boolean replacePlugins,
boolean replaceDrivers)
Deprecated.
Deprecated since 8.0u01.
Filter Sequences are no longer supported, so replacedFilterSequences parameter has no effect
Use |
Map<String,Collection<String>> |
importData(ImportData importData,
ImportOptions importOptions)
Imports a Scheduler backup in the server.
|
Map<String,Collection<String>> |
importData(ImportData importData,
Map<String,Map<String,Set<String>>> elementsToImport,
ImportOptions importOptions)
Imports a Scheduler backup in the server.
|
Map<String,Map<String,Set<<any>>>> |
importDataContents(byte[] zipFile)
Shows the contents (projects with their jobs, data sources) of a zip file that represents a
Scheduler backup.
|
Set<RoleData> |
importRoleNamesFromVDP()
Imports the roles created in the VDP Server.
|
void |
init(Context context)
Initializes the scheduler manager using the provided context.
|
boolean |
isImportDataWithProperties(byte[] zipFile)
Returns true if the zip file that represents a Scheduler backup contains the properties inside.
|
boolean |
isUserAuthorizedToExecute(String methodFirm,
Object... args)
Checks if the current user is authorized to perform some operation
over the server.
|
void |
logout()
Method to logout the user from the server.
|
Configuration |
moveDataSourceToProject(int projectID,
Configuration config,
int destinationProjectID)
Modifies the configuration of the data source and saves it in the target project.
|
Configuration |
moveJobToProject(int projectID,
Configuration config,
int destinationProjectID)
Modifies the configuration of the job and saves it in the target project.
|
Map<Integer,String> |
pauseJob(int projectID,
Collection<Integer> jobID)
Pauses the given jobs if they are not in their execution phase.
|
void |
pauseJob(int projectID,
int jobID)
Pauses the given job if it is not in its execution phase.
|
boolean |
pauseScheduler()
Pauses the scheduler server if there are no jobs in its execution phase.
|
void |
ping()
Ping Scheduler server
|
void |
removeAllReports()
Removes all the reports by recreating the reports table.
|
void |
removeDataSource(int projectID,
int elementID)
Removes the data source with the specified identifier.
|
Map<Integer,String> |
removeDataSources(int projectID,
Collection<Integer> elementID)
Removes the datasources with the specified identifier.
|
void |
removeJDBCDriver(long driverID)
Removes the specified JDBC driver.
|
void |
removeJDBCDriver(String dbAdapter,
String dbVersion)
Removes the JDBC driver for the specified database and version.
|
void |
removeJob(int projectID,
int elementID)
Removes the job with the specified identifier.
|
Map<Integer,String> |
removeJobReports(int projectID,
Collection<Integer> jobID)
Removes all reports associated to the given jobs.
|
void |
removeJobReports(int projectID,
int jobID)
Removes all reports associated to the given job.
|
Map<Integer,String> |
removeJobs(int projectID,
Collection<Integer> elementID)
Removes the jobs with the specified identifier.
|
void |
removePlugin(String pluginName)
Removes the plugin (custom element implementation) with the specified
identifier and its metadata.
|
void |
removeProject(int projectID)
Removes the project with the specified identifier and all the
configuration elements that belong to the project (e.g.
|
Map<Integer,String> |
removeProjects(Collection<Integer> projectID)
Removes the projects with the specified identifiers and all the
configuration elements that belong to the projects (e.g.
|
void |
removeRole(String roleName)
Removes the role with the specified name.
|
Set<String> |
removeRoles(Set<String> roleNames)
Removes the roles with the specified names.
|
Configuration |
replicateDataSource(int projectID,
String newName,
Configuration config)
Replicates a data source by cloning a given one an setting a new
name for the data source.
|
Configuration |
replicateJob(int projectID,
String newName,
Configuration config)
Replicates a job by cloning a given one an setting a new
name for the job.
|
void |
replicateRole(String existingRoleName,
String newRoleName)
Creates a new role using the given new name and the permissions of the
copied role.
|
Map<Integer,String> |
resumeJob(int projectID,
Collection<Integer> jobID)
Resumes the jobs execution.
|
void |
resumeJob(int projectID,
int jobID)
Resumes the job execution.
|
void |
resumeScheduler()
Resumes the scheduler server execution.
|
Map<Integer,String> |
retryOrContinueJob(int projectID,
Collection<Integer> jobID)
Executes the given job once retrying the errors occured (if any) during
the last execution of the job and executing queries not yet executed
(if any) for some unexpected error.
|
void |
retryOrContinueJob(int projectID,
int jobID)
Executes the given job once retrying the errors occured (if any) during
the last execution of the job and executing queries not yet executed
(if any) for some unexpected error.
|
boolean |
startBatchMode()
Starts the batch mode for the user's session.
|
Map<Integer,String> |
startJob(int projectID,
Collection<Integer> jobID)
Executes the given job once.
|
void |
startJob(int projectID,
int jobID)
Executes the given job once.
|
Map<Integer,String> |
startJobWithDependencies(int projectID,
Collection<Integer> jobID)
Executes the given job once with its dependencies (if any).
|
void |
startJobWithDependencies(int projectID,
int jobID)
Executes the given job once with its dependencies (if any).
|
boolean |
stopBatchMode(boolean confirmChanges)
Stops the batch mode for the user's session.
|
Map<Integer,String> |
stopJob(int projectID,
Collection<Integer> jobID)
Stops the given jobs if they were being executed.
|
void |
stopJob(int projectID,
int jobID)
Stops the given job if it was being executed.
|
boolean |
testMailConfiguration(Collection<String> recipients)
Tests the configuration of the mail server used by the mail handler.
|
Configuration |
updateDataSource(int projectID,
Configuration config)
Modifies the configuration of the element.
|
Configuration |
updateJob(int projectID,
Configuration config)
Modifies the configuration of the job.
|
MailConfig |
updateMailConfiguration(MailConfig mailConfig)
Modifies the configuration of the mail server used by the mail handler.
|
Item |
updateProject(Item project)
Modifies the configuration of the project.
|
void init(Context context) throws ConnectException, AuthenticationException, InternalErrorException
context
- a context for locating and initializing the scheduler
manager.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.AuthenticationException
- if an authentication error occurs.
Typically when the credentials supplied by the user are invalid.InternalErrorException
- if an error occurs during the process.void changePassword(String oldClearPassword, String newClearPassword) throws ConnectException, AuthenticationException, InternalErrorException
oldClearPassword
- the current password of the user.newClearPassword
- the password of the user.AuthenticationException
- if an authentication error occurs.
Typically when the credentials supplied by the user are invalid.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if a severe error occurs.User getCurrentUser() throws ConnectException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.void logout() throws ConnectException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.boolean isUserAuthorizedToExecute(String methodFirm, Object... args) throws ConnectException, InternalErrorException
methodFirm
- The firm of the method the user wants to execute.args
- The method arguments.ConnectException
- If a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if a severe error occurs.ProjectView addProject(String name, String description) throws ConnectException, DuplicateInstanceException, InternalErrorException
name
- the name of the project.description
- the description of the project.ProjectView
with the Item
with
projectName as the currentProject and a
Collection of Item (currentProject) is not
included), each encapsulating the basic information of a project,
not including its children or values (if any).ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.DuplicateInstanceException
- if a project with the same name
already exists.InternalErrorException
- if an error occurs during the process.ProjectView getProject(int projectID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- identifier of the project.ProjectView
with the Item
with
projectID as the currentProject and a
Collection of Item (currentProject) is not
included), each encapsulating the basic information of a project,
not including its children or values (if any).ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no project with the specified
identifier could be found.InternalErrorException
- if an error occurs during the process.ProjectView getProject(String projectName) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectName
- name of the project.ProjectView
with the Item
with
projectName as the currentProject and a
Collection of Item (currentProject) is not
included), each encapsulating the basic information of a project,
not including its children or values (if any).ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no project with the specified
identifier could be found.InternalErrorException
- if an error occurs during the process.Collection<Item> getProjects() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Item updateProject(Item project) throws ConnectException, DuplicateInstanceException, InstanceNotFoundException, InternalErrorException
project
- the configuration of the project.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.DuplicateInstanceException
- if the project name is modified and a
project with the same name already exists.InstanceNotFoundException
- if the project does not exist.InternalErrorException
- if an error occurs during the process.void removeProject(int projectID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the project.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no project with the specified
identifier could be found.InternalErrorException
- if an error occurs during the process.Map<Integer,String> removeProjects(Collection<Integer> projectID) throws ConnectException, InternalErrorException
projectID
- Collection of project identifiersConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processConfiguration addDataSource(int projectID, Configuration config) throws ConnectException, DuplicateInstanceException, InternalErrorException
projectID
- the identifier of the projectconfig
- the configuration of the new data sourceConfiguration
of the created data sourceConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyDuplicateInstanceException
- if an element with the same name
already existsInternalErrorException
- if an error occurs during the processConfiguration addJob(int projectID, Configuration config) throws ConnectException, DuplicateInstanceException, InternalErrorException
projectID
- the identifier of the projectconfig
- the configuration of the new jobConfiguration
of the created jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyDuplicateInstanceException
- if an element with the same name
already existsJobLimitExceededException
- if new element (job) cannot be createdInternalErrorException
- if an error occurs during the processConfiguration replicateDataSource(int projectID, String newName, Configuration config) throws ConnectException, DuplicateInstanceException, InternalErrorException
projectID
- the project idnewName
- the name for the replicated data sourceconfig
- The Configuration
of the data source to be replicatedConfiguration
of the replicated data sourceConnectException
DuplicateInstanceException
InternalErrorException
Configuration replicateJob(int projectID, String newName, Configuration config) throws ConnectException, DuplicateInstanceException, InternalErrorException
projectID
- the project idnewName
- the name for the replicated jobconfig
- The Configuration
of the job to be replicatedConfiguration
of the replicated jobConnectException
DuplicateInstanceException
InternalErrorException
Configuration getDataSource(int projectID, int elementID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the project idelementID
- identifier of the data source.Configuration
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no data source with the specified
identifier could be found.InternalErrorException
- if an error occurs during the process.Configuration getJob(int projectID, int elementID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the project idelementID
- identifier of the job.Configuration
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no job with the specified
identifier could be found.InternalErrorException
- if an error occurs during the process.Collection<Configuration> getElementsByType(int projectID, String type) throws ConnectException, InternalErrorException
projectID
- identifier of the project.type
- the type of the elements required.Configuration
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Collection<Configuration> getElementsBySubType(int projectID, String type, String subType) throws ConnectException, InternalErrorException
projectID
- identifier of the project.type
- the type of the elements required.subType
- the subType of the elements required.Configuration
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Configuration getElementByName(String projectName, String elementName, String type) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectName
- the name of the project the element belongs to.elementName
- the name of the searched element.type
- the type of the element required.Configuration
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no element with the specified
name could be found.InternalErrorException
- if an error occurs during the process.Map<Integer,Integer> getProjectsByElement(String type) throws ConnectException, InternalErrorException
type
- the type of the elements required.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException
- if an error occurs during the process.Map<Integer,Integer> getProjectsByElement() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException
- if an error occurs during the process.Map<String,Set<Configuration>> getElementsUsedByElement(int elementID) throws ConnectException, InstanceNotFoundException, InternalErrorException
elementID
- the specified element to search the configuration elements it depends on.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InstanceNotFoundException
- if the element does not exist.InternalErrorException
- if an error occurs during the process.Configuration updateDataSource(int projectID, Configuration config) throws ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
projectID
- Identifier of the projectconfig
- the configuration of the element.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyDuplicateInstanceException
- if the data source name is modified and an
data source with the same name already existsInstanceNotFoundException
- if the data source does not existInternalErrorException
- if an error occurs during the processConfiguration moveDataSourceToProject(int projectID, Configuration config, int destinationProjectID) throws ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
projectID
- Identifier of the projectconfig
- the configuration of the data source.destinationProjectID
- Identifier of the project where the data source will be moved to.ConnectException
- if a connection error occurs. Typically, the connection was refused
remotelyDuplicateInstanceException
- if the data source name is modified and an data source with
the same name already existsInstanceNotFoundException
- if the data source does not existInternalErrorException
- if an error occurs during the processConfiguration updateJob(int projectID, Configuration config) throws ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
projectID
- Identifier of the projectconfig
- The Configuration
of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyDuplicateInstanceException
- if the job name is modified and an
job with the same name already existsInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processJobLimitExceededException
- if new element (job) cannot be createdInternalErrorException
- if an error occurs during the process.Configuration moveJobToProject(int projectID, Configuration config, int destinationProjectID) throws ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
projectID
- Identifier of the projectconfig
- the configuration of the job.destinationProjectID
- Identifier of the project where the job will be moved to.ConnectException
- if a connection error occurs. Typically, the connection was refused
remotelyDuplicateInstanceException
- if the job name is modified and a job with
the same name already existsInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processvoid removeDataSource(int projectID, int elementID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- Identifier of the projectelementID
- the identifier of the data sourceConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if no data source with the specified
identifier could be foundInternalErrorException
- if an error occurs during the processvoid removeJob(int projectID, int elementID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- Identifier of the projectelementID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if no job with the specified
identifier could be foundInternalErrorException
- if an error occurs during the processMap<Integer,String> removeDataSources(int projectID, Collection<Integer> elementID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectelementID
- Collection of data source identifiersConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processMap<Integer,String> removeJobs(int projectID, Collection<Integer> elementID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectelementID
- Collection of job identifiersConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processCollection<String> getElementTypes() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if a severe error occurs.Collection<String> getElementSubTypes(String type) throws ConnectException, InstanceNotFoundException, InternalErrorException
type
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no element with the specified type
could be found.InternalErrorException
- if a severe error occurs.Collection<MetaConfiguration> getMetaConfigurations(String type) throws ConnectException, InstanceNotFoundException, InternalErrorException
MetaConfiguration
. If the element
is categorized according to its type its meta-configuration is returned.
If the element is categorized according to its type and subtype the
meta-configuration of all its subTypes is returned.type
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no element with the specified type
could be found.InternalErrorException
- if a severe error occurs.MetaConfiguration getMetaConfiguration(String type, String subType) throws ConnectException, InstanceNotFoundException, InternalErrorException
MetaConfiguration
for the element matching the
specified type and subType.type
- subType
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no element with the specified type
and subType could be found.InternalErrorException
- if a severe error occurs.Collection<Integer> getJobDependents(Integer jobId) throws ConnectException, InstanceNotFoundException, InternalErrorException
jobId
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no element with the specified type
and subType could be found.InternalErrorException
- if a severe error occurs.Configuration getExporterConfigurationByName(int projectID, int jobID, String exporterName) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the project identifier.jobID
- the identifier of the job that owns the exporter.exporterName
- the name of the exporter which Configuration
wants to be retrieved.
This name is the exporter key stored in the map of exported resources in the job report.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no job with the specified
identifier could be found.InternalErrorException
- if a severe error occurs.PluginInfo addPlugin(String fileName, byte[] fileContents) throws ConnectException, DuplicateInstanceException, InternalErrorException
fileName
- the name of the plugin jar file, that is the last name in
the pathname's name sequence.fileContents
- a byte array with the plugin jar file contents.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.DuplicateInstanceException
- if a plugin with the same name already
exists.InternalErrorException
- if a severe error occurs.Collection<PluginInfo> getPlugins() throws ConnectException, InternalErrorException
PluginInfo
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if a severe error occurs.void removePlugin(String pluginName) throws ConnectException, InstanceNotFoundException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if the plugin does not exist.InternalErrorException
- if a severe error occurs.DriverInfo addJDBCDriver(Set<<any>> files, String dataBaseAdapter, String version, String className, String uriTemplate) throws ConnectException, DuplicateInstanceException, InternalErrorException
files
- a set of jar files that conform the classpath of this driver. Each entry of the set
is a Pair
of {fileName, fileContents}.dataBaseAdapter
- name of the DBMS.version
- DBMS version.className
- the driver class name.uriTemplate
- uri template to connect to the database.DriverInfo
with the information about the added driver.ConnectException
- if a connection error occurs. Typically, the connection was refused
remotely.DuplicateInstanceException
- if a driver with the same name already exists.InternalErrorException
- if a severe error occurs.Collection<DriverInfo> getJDBCDrivers() throws ConnectException, InternalErrorException
DriverInfo
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if a severe error occurs.DriverInfo getJDBCDriver(long id) throws ConnectException, InstanceNotFoundException, InternalErrorException
DriverInfo
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if the element does not exist.InternalErrorException
- if a severe error occurs.void removeJDBCDriver(String dbAdapter, String dbVersion) throws ConnectException, InstanceNotFoundException, InternalErrorException
dbAdapter
- dbVersion
- ConnectException
- if a connection error occurs. Typically, the connection was refused
remotely.InstanceNotFoundException
- if the driver does not exist.InternalErrorException
- if a severe error occurs.IllegalOperationException
- if user tries to remove a driver registered by "SYSTEM" user.void removeJDBCDriver(long driverID) throws ConnectException, InstanceNotFoundException, InternalErrorException
driverID
- the driver identifierConnectException
- if a connection error occurs. Typically, the connection was refused
remotely.InstanceNotFoundException
- if the driver does not exist.InternalErrorException
- if a severe error occurs.IllegalOperationException
- if user tries to remove a driver registered by "SYSTEM" user.JobReportChunk getJobReports(int projectID, int jobID, int startIndex, int count) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- identifier of the jobstartIndex
- the index (starting from 1) of the first report to
returncount
- the maximum number of reports to returnJobReportChunk
with the job reportsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not exist.InternalErrorException
- if an error occurs during the processJobReportChunk getAllJobReports() throws ConnectException, InternalErrorException
JobReportChunk
with the job reportsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processJobReportChunk getAllJobReports(int startIndex, int count) throws ConnectException, InternalErrorException
startIndex
- the index (starting from 1) of the first report to
returncount
- the maximum number of reports to returnJobReportChunk
with the job reportsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processJobReport getReport(int reportID) throws ConnectException, InstanceNotFoundException, InternalErrorException
reportID
- identifier of the report.JobReport
with the job report requested.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if the report does not exist.InternalErrorException
- if an error occurs during the process.void removeJobReports(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> removeJobReports(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- identifiers of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processvoid removeAllReports() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.void compressReportsTable() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.void startJob(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> startJob(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processvoid stopJob(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> stopJob(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifiers of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processvoid retryOrContinueJob(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> retryOrContinueJob(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processvoid startJobWithDependencies(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> startJobWithDependencies(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processvoid pauseJob(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> pauseJob(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifiers of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processvoid resumeJob(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException
- if the job does not existInternalErrorException
- if an error occurs during the processMap<Integer,String> resumeJob(int projectID, Collection<Integer> jobID) throws ConnectException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobsConnectException
- if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException
- if an error occurs during the processboolean pauseScheduler() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.void resumeScheduler() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Collection<JobData> getJobsInformation() throws ConnectException, InternalErrorException
JobData
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Collection<JobData> getJobsInformation(List<Integer> jobIDs) throws ConnectException, InternalErrorException
jobIDs
- the identifier of the jobsJobData
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.JobData getJobInformation(int projectID, int jobID) throws ConnectException, InstanceNotFoundException, InternalErrorException
projectID
- the identifier of the projectjobID
- the identifier of the jobJobData
representing the state of the job.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InstanceNotFoundException
- if no role with the specified name could be found.InternalErrorException
- if an error occurs during the process.ServerPorts getServerPorts() throws ConnectException, InternalErrorException
ServerPorts
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.ServerPorts changeServerPorts(ServerPorts ports) throws ConnectException, InternalErrorException
ports
- ServerPorts
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.ServerSettings getServerSettings() throws ConnectException, InternalErrorException
ServerSettings
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.ServerSettings changeServerSettings(ServerSettings settings) throws ConnectException, InternalErrorException
settings
- ServerSettings
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.IllegalArgumentException
- if corePoolSize, or keepAliveTime less
than zero, or if maxPoolSize less than or equal to zero, or if
corePoolSize greater than maxPoolSize.InternalErrorException
- if an error occurs during the process.MailConfig getMailConfiguration() throws ConnectException, InternalErrorException
MailConfig
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.MailConfig updateMailConfiguration(MailConfig mailConfig) throws ConnectException, InternalErrorException
mailConfig
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.boolean testMailConfiguration(Collection<String> recipients) throws ConnectException, InternalErrorException
recipients
- lists of email addresses to send a testing email.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Map<String,Collection<String>> importData(byte[] zipFile, boolean replace) throws ConnectException, InternalErrorException
zipFile
- the Scheduler backup to be imported in the server.replace
- whether to replace or not existing elements.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated Map<String,Collection<String>> importData(byte[] zipFile, boolean replace, boolean legacy) throws ConnectException, InternalErrorException
Use importData(byte[], boolean)
instead.
zipFile
- the Scheduler backup to be imported in the server.replace
- whether to replace or not existing elements.legacy
- if legacy, not unescape characters when importing;
otherwise, unescape characters.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Map<String,Collection<String>> importData(ImportData importData, ImportOptions importOptions) throws ConnectException, InternalErrorException
importData
- data to be imported in the server.importOptions
- rules to apply in importMap
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Map<String,Collection<String>> importData(ImportData importData, Map<String,Map<String,Set<String>>> elementsToImport, ImportOptions importOptions) throws ConnectException, InternalErrorException
importData
- data to be imported in the server.elementsToImport
- a Map
with the elements to be imported.
It has the project name as a key and as a value another Map
with the element type as a key and the Collection
of elements to be imported as a value.importOptions
- rules to apply in importMap
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated Map<String,Collection<String>> importData(byte[] zipFile, boolean replaceJobs, boolean replaceDataSources, boolean replaceFilterSequences, boolean replacePlugins, boolean replaceDrivers) throws ConnectException, InternalErrorException
Use importData(ImportData, ImportOptions)
instead.
zipFile
- the Scheduler backup to be imported in the server.replaceJobs
- whether to replace or not existing jobs.replaceDataSources
- whether to replace or not existing data sources.replaceFilterSequences
- Deprecated. No effect.replacePlugins
- whether to replace or not existing plugins.replaceDrivers
- whether to replace or not existing drivers.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated Map<String,Collection<String>> importData(byte[] zipFile, boolean replaceJobs, boolean replaceDataSources, boolean replaceFilterSequences, boolean replacePlugins, boolean replaceDrivers, boolean legacy) throws ConnectException, InternalErrorException
Use importData(ImportData, ImportOptions)
instead.
zipFile
- the Scheduler backup to be imported in the server.replaceJobs
- whether to replace or not existing jobs.replaceDataSources
- whether to replace or not existing data sources.replaceFilterSequences
- Deprecated. No effect.replacePlugins
- whether to replace or not existing plugins.replaceDrivers
- whether to replace or not existing drivers.legacy
- if legacy, not unescape characters when importing;
otherwise, unescape characters.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated Map<String,Collection<String>> importData(byte[] zipFile, Map<String,Map<String,Set<String>>> elementsToImport, boolean replaceJobs, boolean replaceDataSources, boolean replaceFilterSequences, boolean replacePlugins, boolean replaceDrivers) throws ConnectException, InternalErrorException
Use importData(ImportData, Map, ImportOptions)
instead.
zipFile
- the Scheduler backup to be imported in the server.elementsToImport
- a Map
with the elements to be imported.
It has the project name as a key and as a value another Map
with the element type as a key and the Collection
of elements to be imported as a value.replaceJobs
- whether to replace or not existing jobs.replaceDataSources
- whether to replace or not existing data sources.replaceFilterSequences
- Deprecated. No effect.replacePlugins
- whether to replace or not existing plugins.replaceDrivers
- whether to replace or not existing drivers.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated Map<String,Collection<String>> importData(byte[] zipFile, byte[] propertiesFile, Map<String,Map<String,Set<String>>> elementsToImport, boolean replaceJobs, boolean replaceDataSources, boolean replaceFilterSequences, boolean replacePlugins, boolean replaceDrivers) throws ConnectException, InternalErrorException
Use importData(ImportData, Map, ImportOptions)
instead.
zipFile
- the Scheduler backup to be imported in the server.elementsToImport
- a Map
with the elements to be imported.
It has the project name as a key and as a value another Map
with the element type as a key and the Collection
of elements to be imported as a value.replaceJobs
- whether to replace or not existing jobs.replaceDataSources
- whether to replace or not existing data sources.replaceFilterSequences
- Deprecated. No effect.replacePlugins
- whether to replace or not existing plugins.replaceDrivers
- whether to replace or not existing drivers.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated Map<String,Collection<String>> importData(byte[] zipFile, byte[] propertiesFile, Map<String,Map<String,Set<String>>> elementsToImport, boolean replaceJobs, boolean replaceDataSources, boolean replaceFilterSequences, boolean replacePlugins, boolean replaceDrivers, boolean legacy) throws ConnectException, InternalErrorException
Use importData(ImportData, Map, ImportOptions)
instead.
zipFile
- the Scheduler backup to be imported in the server.elementsToImport
- a Map
with the elements to be imported.
It has the project name as a key and as a value another Map
with the element type as a key and the Collection
of elements to be imported as a value.replaceJobs
- whether to replace or not existing jobs.replaceDataSources
- whether to replace or not existing data sources.replaceFilterSequences
- Deprecated. No effect.replacePlugins
- whether to replace or not existing plugins.replaceDrivers
- whether to replace or not existing drivers.legacy
- if legacy, not unescape characters when importing;
otherwise, unescape characters.Map
} with the Collection
} of warnings for each element imported.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Map<String,Map<String,Set<<any>>>> importDataContents(byte[] zipFile) throws ConnectException, InternalErrorException
zipFile
- the Scheduler backup to show its contents.Map
that contains the project name as a key and as the value a Map
that contains as a
key the element type (data source or job) and as a value the Set
of elements,
indicating if they already exists on the server or not.ConnectException
- if a connection error occurs. Typically, the connection was refused remotely.InternalErrorException
- if an error occurs during the process.boolean isImportDataWithProperties(byte[] zipFile) throws ConnectException, InternalErrorException
zipFile
- the Scheduler backup.ConnectException
- if a connection error occurs. Typically, the connection was refused remotely.InternalErrorException
- if an error occurs during the process.byte[] exportData(ExportOptions exportOptions) throws ConnectException, InternalErrorException
exportOptions
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.byte[] exportData(Collection<Integer> projectsToExport, ExportOptions exportOptions) throws ConnectException, InternalErrorException
projectsToExport
- exportOptions
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.byte[] exportData(Map<Integer,Set<Integer>> elementsToExport, ExportOptions exportOptions) throws ConnectException, InternalErrorException
elementsToExport
- exportOptions
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated byte[] exportData(boolean config, boolean drivers, boolean plugins, boolean exportWithProperties) throws ConnectException, InternalErrorException
Use exportData(ExportOptions)
instead.
config
- drivers
- plugins
- exportWithProperties
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated byte[] exportData(boolean config, boolean drivers, boolean plugins, boolean exportWithProperties, boolean permissions) throws ConnectException, InternalErrorException
Use exportData(ExportOptions)
instead.
config
- drivers
- plugins
- exportWithProperties
- permissions
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated byte[] exportData(Collection<Integer> projectsToExport, boolean config, boolean drivers, boolean plugins, boolean exportWithProperties) throws ConnectException, InternalErrorException
Use exportData(Collection, ExportOptions)
instead.
projectsToExport
- config
- drivers
- plugins
- exportWithProperties
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated byte[] exportData(Collection<Integer> projectsToExport, boolean config, boolean drivers, boolean plugins, boolean exportWithProperties, boolean permissions) throws ConnectException, InternalErrorException
Use exportData(Collection, ExportOptions)
instead.
projectsToExport
- config
- drivers
- plugins
- exportWithProperties
- permissions
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated byte[] exportData(Map<Integer,Set<Integer>> elementsToExport, boolean exportDependencies, boolean config, boolean drivers, boolean plugins, boolean exportWithProperties) throws ConnectException, InternalErrorException
Use exportData(Map, ExportOptions)
instead.
elementsToExport
- exportDependencies
- config
- drivers
- plugins
- exportWithProperties
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.@Deprecated byte[] exportData(Map<Integer,Set<Integer>> elementsToExport, boolean exportDependencies, boolean config, boolean drivers, boolean plugins, boolean exportWithProperties, boolean permissions) throws ConnectException, InternalErrorException
Use exportData(Map, ExportOptions)
instead.
elementsToExport
- exportDependencies
- config
- drivers
- plugins
- exportWithProperties
- permissions
- ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Map<SchedulerManager.ExportedContent,byte[]> exportDataMap(Map<Integer,Set<Integer>> elementsToExport, ExportOptions exportOptions) throws ConnectException, InternalErrorException
elementsToExport
- exportOptions
- ConnectException
InternalErrorException
@Deprecated Map<SchedulerManager.ExportedContent,byte[]> exportDataMap(Map<Integer,Set<Integer>> elementsToExport, boolean exportDependencies, boolean config, boolean drivers, boolean plugins, boolean exportWithProperties) throws ConnectException, InternalErrorException
Use exportDataMap(Map, ExportOptions)
instead.
elementsToExport
- exportDependencies
- config
- drivers
- plugins
- exportWithProperties
- ConnectException
InternalErrorException
@Deprecated Map<SchedulerManager.ExportedContent,byte[]> exportDataMap(Map<Integer,Set<Integer>> elementsToExport, boolean exportDependencies, boolean config, boolean drivers, boolean plugins, boolean exportWithProperties, boolean permissions) throws ConnectException, InternalErrorException
Use exportDataMap(Map, ExportOptions)
instead.
elementsToExport
- exportDependencies
- config
- drivers
- plugins
- exportWithProperties
- permissions
- ConnectException
InternalErrorException
Collection<String> getI18ns() throws ConnectException, InternalErrorException
void assignPrivileges(RoleInfo role) throws ConnectException, InstanceNotFoundException, InternalErrorException
role
- the configuration of the role.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InstanceNotFoundException
- if no role with the specified name could be found.InternalErrorException
- if an error occurs during the process.Set<RoleData> getRoleNames() throws ConnectException, InternalErrorException
Set<RoleData>
of roles.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException
- if an error occurs during the process.Set<RoleInfo> getRoles() throws ConnectException, InternalErrorException
Set<RoleInfo>
of roles.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException
- if an error occurs during the process.RoleInfo getRole(String roleName) throws ConnectException, InstanceNotFoundException, InternalErrorException
roleName
- the name of the role.RoleInfo
of permissions associated to the role
name.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InstanceNotFoundException
- if no role with the specified name could be found.InternalErrorException
- if an error occurs during the process.void replicateRole(String existingRoleName, String newRoleName) throws ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
existingRoleName
- the name of the existing role.newRoleName
- the name for the replicated role.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InstanceNotFoundException
- if the role does not exist.DuplicateInstanceException
- if a role with the same name already exists.InternalErrorException
- if an error occurs during the process.void removeRole(String roleName) throws ConnectException, InstanceNotFoundException, InternalErrorException
roleName
- the name of the role.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InstanceNotFoundException
- if no role with the specified identifier could be found.InternalErrorException
- if an error occurs during the process.Set<String> removeRoles(Set<String> roleNames) throws ConnectException, InternalErrorException
roleNames
- the names of the roles.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException
- if an error occurs during the process.Set<RoleData> importRoleNamesFromVDP() throws ConnectException, InternalErrorException
IllegalOperationException
is thrown.Set<RoleData>
of roles from the VDP serverConnectException
- if a connection error occurs. Typically, the connection was refused remotelyInternalErrorException
- if an error occurs during the processIllegalOperationException
- if a local user invokes this methodSet<RoleInfo> getUserPermissionsByRole() throws ConnectException, InternalErrorException
Set<RoleInfo>
of the roles the
authenticated user has assigned.ConnectException
- if a connection error occurs. Typically, the connection was
refused remotelyInternalErrorException
- if an error occurs during the processVDPDataSourceSettings getVDPDataSourceSettings() throws ConnectException, InternalErrorException
VDPDataSourceSettings
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.VDPDataSourceSettings changeVDPDataSourceSettings(VDPDataSourceSettings settings) throws ConnectException, InternalErrorException
settings
- VDPDataSourceSettings
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.VDPManager getVDPManager() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.Collection<String> getElasticSearchAnalyzers() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.ClusterConfig getClusterSettings() throws ConnectException, InternalErrorException
ClusterConfig
representing the cluster configuration.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.ClusterConfig changeClusterSettings(ClusterConfig cluster) throws ConnectException, InternalErrorException
cluster
- Cluster
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.DatabaseConfig getDatabaseConfig() throws ConnectException, InternalErrorException
DatabaseConfig
representing the database configuration for the metadata.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.byte[] changeDatabaseConfig(DatabaseConfig settings, boolean exportCurrentMetadata, boolean checkConnectivity) throws ConnectException, InvalidConnectionException, InvalidTablesException, InternalErrorException
settings
- the new database settings for the Scheduler metadata.exportCurrentMetadata
- whether to export or not the current metadata, so that the user could import it in the new database.checkConnectivity
- whether to check or not the connectivity against the new database.ConnectException
- if a connection error occurs. Typically, the connection was refused remotely.InvalidConnectionException
- if the new database is not accessible.InvalidTablesException
- if the new database does not contain the metadata tables needed by Scheduler.InternalErrorException
- if an error occurs during the process.KerberosSettings getKerberosSettings() throws ConnectException, InternalErrorException
KerberosSettings
representing the kerberos properties.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.KerberosSettings changeKerberosSettings(KerberosSettings kerberosSettings) throws ConnectException, InternalErrorException
kerberosSettings
- the new KerberosSettings
.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.String getServerKerberosPrincipal() throws ConnectException, InternalErrorException
ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.String getSchedulerMode() throws ConnectException, InternalErrorException
ConnectException
InternalErrorException
ServerData getServerData(boolean refresh) throws ConnectException, InternalErrorException
boolean startBatchMode() throws ConnectException, InternalErrorException
stopBatchMode(boolean)
method. Nevertheless, the behavior for other connected users is
not affected (it depends on the underlying database's transaction management).ConnectException
- if a connection error occurs. Typically, the connection was refused
remotely.InternalErrorException
- if an error occurs during the process.IllegalStateException
- if the user's session is already in batch mode.boolean stopBatchMode(boolean confirmChanges) throws ConnectException, InternalErrorException
startBatchMode()
method.confirmChanges
- true
to commit the changes, false
to reject them.ConnectException
- if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException
- if an error occurs during the process.IllegalStateException
- if trying to stop the batch mode and it was not previously started.void ping() throws InvalidConnectionException
InvalidConnectionException
- if a connection error occurs. Typically, the connection was refused
remotely.Copyright © 2022 Denodo Technologies. All rights reserved.