Search in sources :

Example 1 with TransactionAwareFeatureTransferManager

use of org.syncany.plugins.transfer.features.TransactionAwareFeatureTransferManager in project syncany by syncany.

the class AbstractTransferManagerTest method loadPluginAndCreateTransferManager.

private TransferManager loadPluginAndCreateTransferManager() throws StorageException {
    TransferPlugin pluginInfo = Plugins.get(getPluginId(), TransferPlugin.class);
    TransferSettings connection = pluginInfo.createEmptySettings();
    for (Map.Entry<String, String> pair : createPluginSettings().entrySet()) {
        connection.setField(pair.getKey(), pair.getValue());
    }
    TransferManager originalTransferManager = pluginInfo.createTransferManager(connection, null);
    return new TransactionAwareFeatureTransferManager(originalTransferManager, originalTransferManager, null, null);
}
Also used : TransferPlugin(org.syncany.plugins.transfer.TransferPlugin) TransferManager(org.syncany.plugins.transfer.TransferManager) TransactionAwareFeatureTransferManager(org.syncany.plugins.transfer.features.TransactionAwareFeatureTransferManager) TransactionAwareFeatureTransferManager(org.syncany.plugins.transfer.features.TransactionAwareFeatureTransferManager) TransferSettings(org.syncany.plugins.transfer.TransferSettings) Map(java.util.Map)

Aggregations

Map (java.util.Map)1 TransferManager (org.syncany.plugins.transfer.TransferManager)1 TransferPlugin (org.syncany.plugins.transfer.TransferPlugin)1 TransferSettings (org.syncany.plugins.transfer.TransferSettings)1 TransactionAwareFeatureTransferManager (org.syncany.plugins.transfer.features.TransactionAwareFeatureTransferManager)1