Package liquibase.executor
Class ExecutorService
- All Implemented Interfaces:
PluginFactory
,SingletonObject
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearExecutor
(String name, Database database) void
clearExecutor
(Database database) Deprecated.Please use clearExecutor(name, database)boolean
executorExists
(String name, Database database) Checks if an executor exists for the given name and database.getExecutor
(String name, Database database) Retrieves a named executor for the specified database.getExecutor
(Database database) Deprecated.Please usegetExecutor(String, Database)
instead.protected int
getPriority
(Executor executor, Object... args) Returns the priority of the given object based on the passed args array.void
reset()
void
setExecutor
(String name, Database database, Executor executor) void
setExecutor
(Database database, Executor executor) Sets the executor for the given database with the default name "jdbc".Methods inherited from class liquibase.plugin.AbstractPluginFactory
findAllInstances, getPlugin, getPlugins, register, removeInstance
-
Method Details
-
getPluginClass
- Specified by:
getPluginClass
in classAbstractPluginFactory<Executor>
-
getPriority
Description copied from class:AbstractPluginFactory
Returns the priority of the given object based on the passed args array. The args are created as part of the custom public getPlugin method in implementations are passed throughAbstractPluginFactory.getPlugin(Object...)
- Specified by:
getPriority
in classAbstractPluginFactory<Executor>
-
getExecutor
Retrieves a named executor for the specified database.- Parameters:
name
- the name of the executordatabase
- the database for which to retrieve the executor- Returns:
- the
Executor
associated with the given name and database - Throws:
UnexpectedLiquibaseException
- if there was an error retrieving the executor
-
executorExists
Checks if an executor exists for the given name and database.- Parameters:
name
- the name of the executordatabase
- the database to which the executor is connected- Returns:
true
if an executor exists for the given name and database,false
otherwise
-
getExecutor
Deprecated.Please usegetExecutor(String, Database)
instead.Returns anExecutor
for the specified database and name. This method is deprecated; please usegetExecutor(String, Database)
instead.- Parameters:
database
- theDatabase
to execute the statements on- Returns:
Executor
for the specified database and name
-
setExecutor
Sets the executor for the given database with the default name "jdbc". If an executor with the same name and database already exists, it will be replaced by the new one.- Parameters:
database
- theDatabase
for which the executor is setexecutor
- theExecutor
to set
-
setExecutor
-
clearExecutor
Deprecated.Please use clearExecutor(name, database)- Parameters:
database
-
-
clearExecutor
-
reset
public void reset()
-