public class VMMSyncAdapter extends java.lang.Object implements VMMSyncListener
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
connection |
protected MXLogger |
logger |
protected MXLogger |
sqlLogger |
protected UserInfo |
userInfo |
Constructor and Description |
---|
VMMSyncAdapter() |
Modifier and Type | Method and Description |
---|---|
protected java.sql.Connection |
getConnection()
Returns the connection to be used.
|
protected MXLogger |
getLogger()
Returns the logger to be used to log messages.
|
protected MXLogger |
getSqlLogger()
Returns the logger to be used to log SQL messages.
|
protected UserInfo |
getUserInfo()
Returns the UserInfo for getting mboSets.
|
void |
syncEnded(VMMSyncEvent event)
Called by the Synchronizer at the end of a full or incremental
synchronization to let the listener cleanup any references
to objects that are being held for the duration of the
synchronization process.
|
void |
syncGroup(VMMSyncEvent event)
Called by the Synchronizer when a group data need to be synchronized
with the database.
|
void |
syncGroupMembers(VMMSyncEvent event)
Called by the Synchronizer when a group member data need to be
synchronized with the database.
|
void |
syncStarting(VMMSyncEvent event)
Called by the Synchronizer at the begining of a full or
incremental synchronization to let the listener initialize
itself.
|
void |
syncUser(VMMSyncEvent event)
Called by the Synchronizer when a user data need to be synchronized
with the database.
|
protected java.sql.Connection connection
protected MXLogger logger
protected MXLogger sqlLogger
protected UserInfo userInfo
protected java.sql.Connection getConnection()
protected UserInfo getUserInfo()
protected MXLogger getLogger()
protected MXLogger getSqlLogger()
public void syncStarting(VMMSyncEvent event) throws VMMSyncException
syncStarting
in interface VMMSyncListener
event
- synchronization event that provides additional details
to let the listener initialize itself.VMMSyncException
- if the listener fails to perform the
initialization.public void syncEnded(VMMSyncEvent event) throws VMMSyncException
syncEnded
in interface VMMSyncListener
event
- synchronization event that provides additional details
to the listener.VMMSyncException
- if the listener fails to cleanup.public void syncUser(VMMSyncEvent event) throws VMMSyncException
syncUser
in interface VMMSyncListener
event
- synchronization event that provides additional details
to perform the user data synchronization with database.VMMSyncException
- if the listener fails to perform the
user data synchronization.public void syncGroup(VMMSyncEvent event) throws VMMSyncException
syncGroup
in interface VMMSyncListener
event
- synchronization event that provides additional details
to perform the group data synchronization with database.VMMSyncException
- if the listener fails to perform the
group data synchronization.public void syncGroupMembers(VMMSyncEvent event) throws VMMSyncException
syncGroupMembers
in interface VMMSyncListener
event
- synchronization event that provides additional details
to perform the group member data synchronization
with database.VMMSyncException
- if the listener fails to perform the
group member data synchronization.