public class VMMSyncTask
extends java.lang.Object
Constructor and Description |
---|
VMMSyncTask() |
VMMSyncTask(java.lang.String task,
java.lang.String instance) |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection()
Returns the database connection used to perform the task.
|
java.lang.String |
getCronTaskHistoryMsg() |
MXLogger |
getLogger()
Returns the logger object to be used to log messages.
|
MXLogger |
getSqlLogger()
Returns the logger object to be used to log SQL messages.
|
java.lang.String |
getTaskInstanceName() |
java.lang.String |
getTaskName() |
UserInfo |
getUserInfo()
Returns the UserInfo for getting MboSets.
|
void |
init(LoadVMMSyncSettings vmmSyncSettings)
Initialze the task with configuration settings.
|
void |
performTask()
Performs the synchronization task.
|
void |
setConnection(java.sql.Connection connection)
Sets the database connection to be used to perform the task.
|
void |
setCronTaskHistoryMsg(java.lang.String val) |
void |
setFullSync(boolean fullSync)
Sets a boolean flag to indicate whether a full
synchronization is needed or not.
|
void |
setLogger(MXLogger logger)
Sets the logger object to be used to log messages.
|
void |
setSqlLogger(MXLogger logger)
Sets the logger object to be used to log SQL messages.
|
void |
setTaskInstanceName(java.lang.String taskInstanceName) |
void |
setTaskName(java.lang.String taskName) |
void |
setUserInfo(UserInfo userInfo)
Sets the UserInfo.
|
public VMMSyncTask()
public VMMSyncTask(java.lang.String task, java.lang.String instance)
task
- instance
- public void setFullSync(boolean fullSync)
fullSync
- true, if full synchronization
is needed or not.public MXLogger getLogger()
public void setLogger(MXLogger logger)
logger
- the logger object to be used to log messages.public MXLogger getSqlLogger()
public void setSqlLogger(MXLogger logger)
logger
- the logger object to be used to log SQL messages.public void init(LoadVMMSyncSettings vmmSyncSettings) throws VMMSyncException
VMMSyncSettings
- configuration settings.VMMSyncException
- if fails to initialize.public void setConnection(java.sql.Connection connection)
connection
- the database connectionpublic java.sql.Connection getConnection()
public void setUserInfo(UserInfo userInfo)
userInfo
- UserInfo for getting mboSets.public UserInfo getUserInfo()
public void performTask() throws VMMSyncException
VMMSyncException
- if fails to perform the task.loadSyncParameters()
,
VMMSynchronizer.performSync(java.sql.Connection, psdi.security.vmm.VMMSyncParameters, psdi.security.UserInfo)
,
storeSyncParameters(psdi.security.vmm.VMMSyncParameters)
public void setCronTaskHistoryMsg(java.lang.String val)
public java.lang.String getCronTaskHistoryMsg()
public java.lang.String getTaskInstanceName()
public void setTaskInstanceName(java.lang.String taskInstanceName)
public java.lang.String getTaskName()
public void setTaskName(java.lang.String taskName)