public interface SchedulerManager
extends java.io.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(java.util.Set<<any>> files,
java.lang.String dataBaseAdapter,
java.lang.String version,
java.lang.String className,
java.lang.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(java.lang.String fileName,
byte[] fileContents)
Adds a new plugin (custom element implementation) to the scheduler.
|
ProjectView |
addProject(java.lang.String name,
java.lang.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(java.lang.String oldClearPassword,
java.lang.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(java.util.Collection<java.lang.Integer> projectsToExport,
ExportOptions exportOptions) |
byte[] |
exportData(ExportOptions exportOptions) |
byte[] |
exportData(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> elementsToExport,
ExportOptions exportOptions) |
java.util.Map<SchedulerManager.ExportedContent,byte[]> |
exportDataMap(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> elementsToExport,
ExportOptions exportOptions) |
byte[] |
generateCompletePropertiesFileToImport(ImportData importData)
Generates the complete properties file needed to import a Scheduler backup that was exported with properties.
|
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.
|
java.util.Collection<java.lang.String> |
getElasticSearchAnalyzers()
Retrieves the collection of analyzers provided by Elastic.
|
Configuration |
getElementByName(java.lang.String projectName,
java.lang.String elementName,
java.lang.String type)
Gets the configuration of an element by its name, its type and the name of the project it belongs to.
|
java.util.Collection<Configuration> |
getElementsBySubType(int projectID,
java.lang.String type,
java.lang.String subType)
Gets the collection of elements of the given type and subType associated
to the specified project.
|
java.util.Collection<Configuration> |
getElementsByType(int projectID,
java.lang.String type)
Gets the collection of elements of the given type associated to the
specified project.
|
java.util.Collection<java.lang.String> |
getElementSubTypes(java.lang.String type)
Obtains all the subTypes for the given element type with their
meta-configuration available in the system.
|
java.util.Map<java.lang.String,java.util.Set<Configuration>> |
getElementsUsedByElement(int elementID)
Gets the elements used by an specified configuration element.
|
java.util.Collection<java.lang.String> |
getElementTypes()
Obtains all the types of elements with their meta-configuration available
in the system.
|
Configuration |
getExporterConfigurationByName(int projectID,
int jobID,
java.lang.String exporterName)
Obtains the exporter configuration from the job it belongs to.
|
DriverInfo |
getJDBCDriver(long id)
Obtains the JDBC driver registered in the scheduler with that identifier.
|
java.util.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.
|
java.util.Collection<java.lang.Integer> |
getJobDependents(java.lang.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.
|
JobData |
getJobInformation(java.lang.String projectName,
java.lang.String jobName)
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.
|
java.util.Collection<JobData> |
getJobsInformation()
Returns a list of JobData objects that represent all current jobs in the
scheduler server.
|
java.util.Collection<JobData> |
getJobsInformation(java.util.List<java.lang.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(java.lang.String type,
java.lang.String subType)
Obtains the
MetaConfiguration for the element matching the
specified type and subType. |
java.util.Collection<MetaConfiguration> |
getMetaConfigurations(java.lang.String type)
Obtains a Collection of
MetaConfiguration. |
java.util.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(java.lang.String projectName)
Obtains the project with the specified name.
|
java.util.Collection<Item> |
getProjects()
Obtains the current projects in the system.
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getProjectsByElement()
Gets a map mapping the configuration elements with the project identifier
they belong to.
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getProjectsByElement(java.lang.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 .
|
java.lang.String |
getReportMailContentAsHtml(int reportID)
Gets the HTML of a report mail applying the template XSLT.
|
RoleInfo |
getRole(java.lang.String roleName)
Obtains the permissions configured for the given role name.
|
java.util.Set<RoleData> |
getRoleNames()
Obtains the names and descriptions of the roles stored in the server.
|
java.util.Set<RoleInfo> |
getRoles()
Obtains the roles and their permissions stored in the server,
already merged with the ones coming from VDP.
|
java.lang.String |
getSchedulerMode()
Gets the Scheduler server running mode.
|
ServerData |
getServerData(boolean refresh) |
java.lang.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.
|
java.util.Set<RoleInfo> |
getUserPermissionsByRole()
Gets the roles (with their permissions) the authenticated user has
assigned.
|
java.util.Collection<VDPCacheJobDataForVDPView> |
getVDPCacheJobsDataForVDPView(java.lang.String viewName)
Return a list of VDPCacheJobDataForVDPView objects representing the status of jobs using
a particular view name on the scheduler server.
|
VDPDataSourceSettings |
getVDPDataSourceSettings()
Gets the VDP data source settings.
|
VDPManager |
getVDPManager()
Gets the manager to introspect a VDP server.
|
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
importData(byte[] backupFile,
boolean replace)
Imports a Scheduler backup in the server.
|
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
importData(ImportData importData,
ImportOptions importOptions)
Imports a Scheduler backup in the server.
|
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
importData(ImportData importData,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<java.lang.String>>> elementsToImport,
ImportOptions importOptions)
Imports a Scheduler backup in the server.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<<any>>>> |
importDataContents(byte[] backupFile)
Shows the contents (projects with their jobs, data sources) of a zip file that represents a
Scheduler backup.
|
java.util.Set<RoleData> |
importRoleNamesFromVDP()
Imports the roles created in the VDP Server.
|
void |
init(Context context)
Initializes the scheduler manager using the provided context.
|
boolean |
isBackupWithSettings(byte[] backupFile)
Shows if a Scheduler backup contains settings files (resources directory).
|
boolean |
isImportDataWithProperties(byte[] backupFile)
Returns true if the zip file that represents a Scheduler backup contains the properties inside.
|
boolean |
isUserAuthorizedToExecute(java.lang.String methodFirm,
java.lang.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.
|
java.util.Map<java.lang.Integer,java.lang.String> |
pauseJob(int projectID,
java.util.Collection<java.lang.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.
|
java.util.Map<java.lang.Integer,java.lang.String> |
removeDataSources(int projectID,
java.util.Collection<java.lang.Integer> elementID)
Removes the datasources with the specified identifier.
|
void |
removeJDBCDriver(long driverID)
Removes the specified JDBC driver.
|
void |
removeJDBCDriver(java.lang.String dbAdapter,
java.lang.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.
|
java.util.Map<java.lang.Integer,java.lang.String> |
removeJobReports(int projectID,
java.util.Collection<java.lang.Integer> jobID)
Removes all reports associated to the given jobs.
|
void |
removeJobReports(int projectID,
int jobID)
Removes all reports associated to the given job.
|
java.util.Map<java.lang.Integer,java.lang.String> |
removeJobs(int projectID,
java.util.Collection<java.lang.Integer> elementID)
Removes the jobs with the specified identifier.
|
void |
removePlugin(java.lang.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.
|
java.util.Map<java.lang.Integer,java.lang.String> |
removeProjects(java.util.Collection<java.lang.Integer> projectID)
Removes the projects with the specified identifiers and all the
configuration elements that belong to the projects (e.g.
|
void |
removeRole(java.lang.String roleName)
Removes the role with the specified name.
|
java.util.Set<java.lang.String> |
removeRoles(java.util.Set<java.lang.String> roleNames)
Removes the roles with the specified names.
|
Configuration |
replicateDataSource(int projectID,
java.lang.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,
java.lang.String newName,
Configuration config)
Replicates a job by cloning a given one an setting a new
name for the job.
|
void |
replicateRole(java.lang.String existingRoleName,
java.lang.String newRoleName)
Creates a new role using the given new name and the permissions of the
copied role.
|
java.util.Map<java.lang.Integer,java.lang.String> |
resumeJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
Resumes the jobs execution.
|
void |
resumeJob(int projectID,
int jobID)
Resumes the job execution.
|
void |
resumeScheduler()
Resumes the scheduler server execution.
|
java.util.Map<java.lang.Integer,java.lang.String> |
retryOrContinueJob(int projectID,
java.util.Collection<java.lang.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.
|
void |
standByScheduler()
Temporarily halts the Scheduler's firing of Triggers.
|
boolean |
startBatchMode()
Starts the batch mode for the user's session.
|
java.util.Map<java.lang.Integer,java.lang.String> |
startJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
Executes the given job once.
|
void |
startJob(int projectID,
int jobID)
Executes the given job once.
|
java.util.Map<java.lang.Integer,java.lang.String> |
startJobWithDependencies(int projectID,
java.util.Collection<java.lang.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.
|
java.util.Map<java.lang.Integer,java.lang.String> |
stopJob(int projectID,
java.util.Collection<java.lang.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(java.util.Collection<java.lang.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 java.net.ConnectException, AuthenticationException, InternalErrorException
context - a context for locating and initializing the scheduler
manager.java.net.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(java.lang.String oldClearPassword,
java.lang.String newClearPassword)
throws java.net.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.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if a severe error occurs.User getCurrentUser() throws java.net.ConnectException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.void logout()
throws java.net.ConnectException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.boolean isUserAuthorizedToExecute(java.lang.String methodFirm,
java.lang.Object... args)
throws java.net.ConnectException,
InternalErrorException
methodFirm - The firm of the method the user wants to execute.args - The method arguments.java.net.ConnectException - If a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if a severe error occurs.ProjectView addProject(java.lang.String name, java.lang.String description) throws java.net.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).java.net.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 java.net.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).java.net.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(java.lang.String projectName) throws java.net.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).java.net.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.java.util.Collection<Item> getProjects() throws java.net.ConnectException, InternalErrorException
java.net.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 java.net.ConnectException, DuplicateInstanceException, InstanceNotFoundException, InternalErrorException
project - the configuration of the project.java.net.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 java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the project.java.net.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.java.util.Map<java.lang.Integer,java.lang.String> removeProjects(java.util.Collection<java.lang.Integer> projectID)
throws java.net.ConnectException,
InternalErrorException
projectID - Collection of project identifiersjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processConfiguration addDataSource(int projectID, Configuration config) throws java.net.ConnectException, DuplicateInstanceException, InternalErrorException
projectID - the identifier of the projectconfig - the configuration of the new data sourceConfiguration of the created data sourcejava.net.ConnectException - 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 java.net.ConnectException, DuplicateInstanceException, InternalErrorException
projectID - the identifier of the projectconfig - the configuration of the new jobConfiguration of the created jobjava.net.ConnectException - 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, java.lang.String newName, Configuration config) throws java.net.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 sourcejava.net.ConnectExceptionDuplicateInstanceExceptionInternalErrorExceptionConfiguration replicateJob(int projectID, java.lang.String newName, Configuration config) throws java.net.ConnectException, DuplicateInstanceException, InternalErrorException
projectID - the project idnewName - the name for the replicated jobconfig - The Configuration of the job to be replicatedConfiguration of the replicated jobjava.net.ConnectExceptionDuplicateInstanceExceptionInternalErrorExceptionConfiguration getDataSource(int projectID, int elementID) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
projectID - the project idelementID - identifier of the data source.Configuration.java.net.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 java.net.ConnectException, InstanceNotFoundException, InternalErrorException
projectID - the project idelementID - identifier of the job.Configuration.java.net.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.java.util.Collection<Configuration> getElementsByType(int projectID, java.lang.String type) throws java.net.ConnectException, InternalErrorException
projectID - identifier of the project.type - the type of the elements required.Configurationjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Collection<Configuration> getElementsBySubType(int projectID, java.lang.String type, java.lang.String subType) throws java.net.ConnectException, InternalErrorException
projectID - identifier of the project.type - the type of the elements required.subType - the subType of the elements required.Configurationjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.Configuration getElementByName(java.lang.String projectName, java.lang.String elementName, java.lang.String type) throws java.net.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.java.net.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.java.util.Map<java.lang.Integer,java.lang.Integer> getProjectsByElement(java.lang.String type)
throws java.net.ConnectException,
InternalErrorException
type - the type of the elements required.java.net.ConnectException - if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<java.lang.Integer,java.lang.Integer> getProjectsByElement()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<java.lang.String,java.util.Set<Configuration>> getElementsUsedByElement(int elementID) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
elementID - the specified element to search the configuration elements it depends on.java.net.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 java.net.ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
projectID - Identifier of the projectconfig - the configuration of the element.java.net.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 java.net.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.java.net.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 java.net.ConnectException, InstanceNotFoundException, DuplicateInstanceException, InternalErrorException
projectID - Identifier of the projectconfig - The Configuration of the jobjava.net.ConnectException - 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 java.net.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.java.net.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 java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - Identifier of the projectelementID - the identifier of the data sourcejava.net.ConnectException - 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 java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - Identifier of the projectelementID - the identifier of the jobjava.net.ConnectException - 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 processjava.util.Map<java.lang.Integer,java.lang.String> removeDataSources(int projectID,
java.util.Collection<java.lang.Integer> elementID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectelementID - Collection of data source identifiersjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> removeJobs(int projectID,
java.util.Collection<java.lang.Integer> elementID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectelementID - Collection of job identifiersjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processjava.util.Collection<java.lang.String> getElementTypes()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if a severe error occurs.java.util.Collection<java.lang.String> getElementSubTypes(java.lang.String type)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
type - java.net.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.java.util.Collection<MetaConfiguration> getMetaConfigurations(java.lang.String type) throws java.net.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 - java.net.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(java.lang.String type, java.lang.String subType) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
MetaConfiguration for the element matching the
specified type and subType.type - subType - java.net.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.java.util.Collection<java.lang.Integer> getJobDependents(java.lang.Integer jobId)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
jobId - java.net.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, java.lang.String exporterName) throws java.net.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.java.net.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(java.lang.String fileName, byte[] fileContents) throws java.net.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.java.net.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.java.util.Collection<PluginInfo> getPlugins() throws java.net.ConnectException, InternalErrorException
PluginInfo.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if a severe error occurs.void removePlugin(java.lang.String pluginName)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
java.net.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(java.util.Set<<any>> files, java.lang.String dataBaseAdapter, java.lang.String version, java.lang.String className, java.lang.String uriTemplate) throws java.net.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.java.net.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.java.util.Collection<DriverInfo> getJDBCDrivers() throws java.net.ConnectException, InternalErrorException
DriverInfo.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if a severe error occurs.DriverInfo getJDBCDriver(long id) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
DriverInfo.java.net.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(java.lang.String dbAdapter,
java.lang.String dbVersion)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
dbAdapter - dbVersion - java.net.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 java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
driverID - the driver identifierjava.net.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.JobReportChunk getJobReports(int projectID, int jobID, int startIndex, int count) throws java.net.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 reportsjava.net.ConnectException - 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 java.net.ConnectException, InternalErrorException
JobReportChunk with the job reportsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processJobReportChunk getAllJobReports(int startIndex, int count) throws java.net.ConnectException, InternalErrorException
startIndex - the index (starting from 1) of the first report to
returncount - the maximum number of reports to returnJobReportChunk with the job reportsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processJobReport getReport(int reportID) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
reportID - identifier of the report.JobReport with the job report requested.java.net.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.java.lang.String getReportMailContentAsHtml(int reportID)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
reportID - identifier of the report.java.net.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 java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> removeJobReports(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - identifiers of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processvoid removeAllReports()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.void compressReportsTable()
throws java.net.ConnectException,
InternalErrorException
java.net.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 java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> startJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processvoid stopJob(int projectID,
int jobID)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> stopJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifiers of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processvoid retryOrContinueJob(int projectID,
int jobID)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> retryOrContinueJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processvoid startJobWithDependencies(int projectID,
int jobID)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> startJobWithDependencies(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processvoid pauseJob(int projectID,
int jobID)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> pauseJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifiers of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processvoid resumeJob(int projectID,
int jobID)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInstanceNotFoundException - if the job does not existInternalErrorException - if an error occurs during the processjava.util.Map<java.lang.Integer,java.lang.String> resumeJob(int projectID,
java.util.Collection<java.lang.Integer> jobID)
throws java.net.ConnectException,
InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobsjava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotelyInternalErrorException - if an error occurs during the processboolean pauseScheduler()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.void standByScheduler()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.void resumeScheduler()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Collection<JobData> getJobsInformation() throws java.net.ConnectException, InternalErrorException
JobDatajava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Collection<JobData> getJobsInformation(java.util.List<java.lang.Integer> jobIDs) throws java.net.ConnectException, InternalErrorException
jobIDs - the identifier of the jobsJobDatajava.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Collection<VDPCacheJobDataForVDPView> getVDPCacheJobsDataForVDPView(java.lang.String viewName) throws java.net.ConnectException, InternalErrorException
viewName - The view name used in the jobs.VDPCacheJobDataForVDPViewjava.net.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 java.net.ConnectException, InstanceNotFoundException, InternalErrorException
projectID - the identifier of the projectjobID - the identifier of the jobJobData representing the state of the job.java.net.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.JobData getJobInformation(java.lang.String projectName, java.lang.String jobName) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
projectName - the name of the projectjobName - the name of the jobJobData representing the state of the job.java.net.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 java.net.ConnectException, InternalErrorException
ServerPorts.java.net.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 java.net.ConnectException, InternalErrorException
ports - ServerPorts.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.ServerSettings getServerSettings() throws java.net.ConnectException, InternalErrorException
ServerSettings.java.net.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 java.net.ConnectException, InternalErrorException
settings - ServerSettings.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.java.lang.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 java.net.ConnectException, InternalErrorException
MailConfig.java.net.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 java.net.ConnectException, InternalErrorException
mailConfig - java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.boolean testMailConfiguration(java.util.Collection<java.lang.String> recipients)
throws java.net.ConnectException,
InternalErrorException
recipients - lists of email addresses to send a testing email.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> importData(byte[] backupFile,
boolean replace)
throws java.net.ConnectException,
InternalErrorException
backupFile - 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.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> importData(ImportData importData, ImportOptions importOptions) throws java.net.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.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> importData(ImportData importData, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<java.lang.String>>> elementsToImport, ImportOptions importOptions) throws java.net.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.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<<any>>>> importDataContents(byte[] backupFile)
throws java.net.ConnectException,
InternalErrorException
backupFile - 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.java.net.ConnectException - if a connection error occurs. Typically, the connection was refused remotely.InternalErrorException - if an error occurs during the process.boolean isBackupWithSettings(byte[] backupFile)
throws java.net.ConnectException,
InternalErrorException
backupFile - the Scheduler backup to check settings.java.net.ConnectException - if a connection error occurs. Typically, the connection was refused remotely.InternalErrorException - if an error occurs during the process.byte[] generateCompletePropertiesFileToImport(ImportData importData) throws java.net.ConnectException, InternalErrorException
importData - data to be imported in the server.
return a byte[] with the contents of the generated properties file.java.net.ConnectException - if a connection error occurs. Typically, the connection was refused remotely.InternalErrorException - if an error occurs during the process.boolean isImportDataWithProperties(byte[] backupFile)
throws java.net.ConnectException,
InternalErrorException
backupFile - the Scheduler backup.java.net.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 java.net.ConnectException, InternalErrorException
exportOptions - java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.byte[] exportData(java.util.Collection<java.lang.Integer> projectsToExport,
ExportOptions exportOptions)
throws java.net.ConnectException,
InternalErrorException
projectsToExport - exportOptions - java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.byte[] exportData(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> elementsToExport,
ExportOptions exportOptions)
throws java.net.ConnectException,
InternalErrorException
elementsToExport - exportOptions - java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Map<SchedulerManager.ExportedContent,byte[]> exportDataMap(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> elementsToExport, ExportOptions exportOptions) throws java.net.ConnectException, InternalErrorException
elementsToExport - exportOptions - java.net.ConnectExceptionInternalErrorExceptionvoid assignPrivileges(RoleInfo role) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
role - the configuration of the role.java.net.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.java.util.Set<RoleData> getRoleNames() throws java.net.ConnectException, InternalErrorException
Set<RoleData> of roles.java.net.ConnectException - if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException - if an error occurs during the process.java.util.Set<RoleInfo> getRoles() throws java.net.ConnectException, InternalErrorException
Set<RoleInfo> of roles.java.net.ConnectException - if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException - if an error occurs during the process.RoleInfo getRole(java.lang.String roleName) throws java.net.ConnectException, InstanceNotFoundException, InternalErrorException
roleName - the name of the role.RoleInfo of permissions associated to the role
name.java.net.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(java.lang.String existingRoleName,
java.lang.String newRoleName)
throws java.net.ConnectException,
InstanceNotFoundException,
DuplicateInstanceException,
InternalErrorException
existingRoleName - the name of the existing role.newRoleName - the name for the replicated role.java.net.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(java.lang.String roleName)
throws java.net.ConnectException,
InstanceNotFoundException,
InternalErrorException
roleName - the name of the role.java.net.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.java.util.Set<java.lang.String> removeRoles(java.util.Set<java.lang.String> roleNames)
throws java.net.ConnectException,
InternalErrorException
roleNames - the names of the roles.java.net.ConnectException - if a connection error occurs. Typically, the connection was
refused remotely.InternalErrorException - if an error occurs during the process.java.util.Set<RoleData> importRoleNamesFromVDP() throws java.net.ConnectException, InternalErrorException
IllegalOperationException is thrown.Set<RoleData> of roles from the VDP serverjava.net.ConnectException - if a connection error occurs. Typically, the connection was refused remotelyInternalErrorException - if an error occurs during the processIllegalOperationException - if a local user invokes this methodjava.util.Set<RoleInfo> getUserPermissionsByRole() throws java.net.ConnectException, InternalErrorException
Set<RoleInfo> of the roles the
authenticated user has assigned.java.net.ConnectException - if a connection error occurs. Typically, the connection was
refused remotelyInternalErrorException - if an error occurs during the processVDPDataSourceSettings getVDPDataSourceSettings() throws java.net.ConnectException, InternalErrorException
VDPDataSourceSettings.java.net.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 java.net.ConnectException, InternalErrorException
settings - VDPDataSourceSettings.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.VDPManager getVDPManager() throws java.net.ConnectException, InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getElasticSearchAnalyzers()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.ClusterConfig getClusterSettings() throws java.net.ConnectException, InternalErrorException
ClusterConfig representing the cluster configuration.java.net.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 java.net.ConnectException, InternalErrorException
cluster - Cluster.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.DatabaseConfig getDatabaseConfig() throws java.net.ConnectException, InternalErrorException
DatabaseConfig representing the database configuration for the metadata.java.net.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 java.net.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.java.net.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 java.net.ConnectException, InternalErrorException
KerberosSettings representing the kerberos properties.java.net.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 java.net.ConnectException, InternalErrorException
kerberosSettings - the new KerberosSettings.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.lang.String getServerKerberosPrincipal()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.lang.String getSchedulerMode()
throws java.net.ConnectException,
InternalErrorException
java.net.ConnectExceptionInternalErrorExceptionServerData getServerData(boolean refresh) throws java.net.ConnectException, InternalErrorException
java.net.ConnectExceptionInternalErrorExceptionboolean startBatchMode()
throws java.net.ConnectException,
InternalErrorException
stopBatchMode(boolean) method. Nevertheless, the behavior for other connected users is
not affected (it depends on the underlying database's transaction management).java.net.ConnectException - if a connection error occurs. Typically, the connection was refused
remotely.InternalErrorException - if an error occurs during the process.java.lang.IllegalStateException - if the user's session is already in batch mode.boolean stopBatchMode(boolean confirmChanges)
throws java.net.ConnectException,
InternalErrorException
startBatchMode() method.confirmChanges - true to commit the changes, false to reject them.java.net.ConnectException - if a connection error occurs. Typically, the
connection was refused remotely.InternalErrorException - if an error occurs during the process.java.lang.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 © 2024 Denodo Technologies. All rights reserved.