Package org.bedework.synch.shared
Interface SynchEngine
public interface SynchEngine
User: mike Date: 3/11/18 Time: 00:26
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfind(Subscription sub) Find any subscription that matches this one.getConnector(String id) Return a registered connector with the given id.getConnectorInstance(Subscription sub, org.bedework.synch.wsmessages.SynchEndType end) Gets an instance and implants it in the subscription object.getStats()org.bedework.util.timezones.Timezonesorg.bedework.util.calendar.XcalUtil.TzGettervoidhandleNotification(Notification<?> note) voidProcesses a batch of notifications.voidreschedule(Subscription sub, boolean newSub) Reschedule a subscription for updates.voidrescheduleNow(String id) Reschedule a subscription now.voidWhen we start up a new subscription we implant a Connector in the object.voidstart()Start synch process.voidstop()Stop synch process.booleanvoid
-
Method Details
-
getTimezones
org.bedework.util.timezones.Timezones getTimezones() -
subscriptionsOnly
boolean subscriptionsOnly()- Returns:
- true if this instance is only handling subscriptions
-
rescheduleNow
Reschedule a subscription now.- Parameters:
id- the subscription id- Throws:
SynchException
-
getSubscription
- Parameters:
id-- Returns:
- subscription
- Throws:
SynchException
-
decrypt
- Parameters:
val-- Returns:
- decrypted string
- Throws:
SynchException
-
getConnector
Return a registered connector with the given id.- Parameters:
id-- Returns:
- connector or null.
-
getConnectorIds
- Returns:
- registered ids.
-
getTzGetter
org.bedework.util.calendar.XcalUtil.TzGetter getTzGetter()- Returns:
- a getter for timezones
-
start
Start synch process.- Throws:
SynchException
-
stop
void stop()Stop synch process. -
getStats
- Returns:
- stats for synch service bean
-