java.lang.Object
com.aoapps.appcluster.ResourceSynchronizer<ImapResource,ImapResourceNode>
com.aoapps.appcluster.CronResourceSynchronizer<ImapResource,ImapResourceNode>
com.aoapps.appcluster.imap.ImapResourceSynchronizer
public class ImapResourceSynchronizer
extends CronResourceSynchronizer<ImapResource,ImapResourceNode>
Performs synchronization using IMAP.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.appcluster.ResourceSynchronizer
localResourceNode, remoteResourceNode
-
Constructor Summary
ModifierConstructorDescriptionprotected
ImapResourceSynchronizer
(ImapResourceNode localResourceNode, ImapResourceNode remoteResourceNode, Schedule synchronizeSchedule, Schedule testSchedule) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canSynchronize
(ResourceSynchronizationMode mode, ResourceNodeDnsResult localDnsResult, ResourceNodeDnsResult remoteDnsResult) protected ResourceSynchronizationResult
synchronize
(ResourceSynchronizationMode mode, ResourceNodeDnsResult localDnsResult, ResourceNodeDnsResult remoteDnsResult) Methods inherited from class com.aoapps.appcluster.CronResourceSynchronizer
canSynchronizeNow, getCanSynchronizeNow, getCanTestNow, getLastResult, getState, getStateMessage, getSynchronizeSchedule, getTestSchedule, start, stop, synchronizeNow
Methods inherited from class com.aoapps.appcluster.ResourceSynchronizer
getLocalResourceNode, getRemoteResourceNode, getResultStatus, toString
-
Constructor Details
-
ImapResourceSynchronizer
protected ImapResourceSynchronizer(ImapResourceNode localResourceNode, ImapResourceNode remoteResourceNode, Schedule synchronizeSchedule, Schedule testSchedule)
-
-
Method Details
-
canSynchronize
protected boolean canSynchronize(ResourceSynchronizationMode mode, ResourceNodeDnsResult localDnsResult, ResourceNodeDnsResult remoteDnsResult) - Specified by:
canSynchronize
in classCronResourceSynchronizer<ImapResource,
ImapResourceNode>
-
synchronize
protected ResourceSynchronizationResult synchronize(ResourceSynchronizationMode mode, ResourceNodeDnsResult localDnsResult, ResourceNodeDnsResult remoteDnsResult) - Specified by:
synchronize
in classCronResourceSynchronizer<ImapResource,
ImapResourceNode>
-