public interface Task
Attention! If using a logger - be careful when choosing which information to log. Sensitive information should never be logged!
Modifier and Type | Method and Description |
---|---|
default TaskComponentStatus |
getStatus()
Method to return status of Task Components.
|
java.lang.String |
getTaskName()
Get the name of this Task.
|
void |
postJobExecute()
Method to execute in a masking job following any transformation.
|
void |
preJobExecute()
Method to execute in a masking job prior to any transformation.
|
void |
setup(ComponentService serviceProvider)
Retrieve and set up any required information provided by the service provider that may be
required by this class.
|
java.lang.String getTaskName()
Get the name of this Task. This name must be unique across all tasks delivered in a single plugin.
void setup(@NotNull ComponentService serviceProvider)
Retrieve and set up any required information provided by the service provider that may be required by this class.
Attention! The service provider contains access to the target java.sql.Connection object. Sensitive information related to a connection, such as host and credentials should never be logged!
serviceProvider
- See
DriverComponentService
for all available
accessors.void preJobExecute() throws java.io.IOException, MaskingException, java.sql.SQLException
Method to execute in a masking job prior to any transformation.
java.io.IOException
- If an error occurs while performing IO operations.MaskingException
- If a generic error occurs related to masking.java.sql.SQLException
- If an error occurs while performing SQL operations.void postJobExecute() throws java.io.IOException, MaskingException, java.sql.SQLException
Method to execute in a masking job following any transformation.
java.io.IOException
- If an error occurs while performing IO operations.MaskingException
- If a generic error occurs related to masking.java.sql.SQLException
- If an error occurs while performing SQL operations.default TaskComponentStatus getStatus()
Method to return status of Task Components. Task components could be constraints, indexes or triggers etc.
TaskComponentStatus
object with the status of the task.