Package org.syncany.operations.status

Examples of org.syncany.operations.status.StatusOperationOptions


    options.setRemoveOldVersions(true);
    options.setKeepVersionsCount(5);
    options.setMinSecondsBetweenCleanups(0);
    options.setMaxDatabaseFiles(7);

    StatusOperationOptions statusOptionsForceChecksum = new StatusOperationOptions();
    statusOptionsForceChecksum.setForceChecksum(true);

    UpOperationOptions upOperationOptionsWithCleanupForce = new UpOperationOptions();
    upOperationOptionsWithCleanupForce.setStatusOptions(statusOptionsForceChecksum);
    upOperationOptionsWithCleanupForce.setForceUploadEnabled(true);
View Full Code Here


    CleanupOperationOptions cleanupOptionsKeep1 = new CleanupOperationOptions();
    cleanupOptionsKeep1.setMergeRemoteFiles(true);
    cleanupOptionsKeep1.setRemoveOldVersions(true);
    cleanupOptionsKeep1.setKeepVersionsCount(1);

    StatusOperationOptions statusOptionsForceChecksum = new StatusOperationOptions();
    statusOptionsForceChecksum.setForceChecksum(true);

    UpOperationOptions upNoCleanupForceChecksum = new UpOperationOptions();
    upNoCleanupForceChecksum.setStatusOptions(statusOptionsForceChecksum);

    UpOperationOptions upWithCleanupKeep1ForceChecksum = new UpOperationOptions();
View Full Code Here

    CleanupOperationOptions cleanupOptionsKeep1 = new CleanupOperationOptions();
    cleanupOptionsKeep1.setMergeRemoteFiles(true);
    cleanupOptionsKeep1.setRemoveOldVersions(true);
    cleanupOptionsKeep1.setKeepVersionsCount(1);

    StatusOperationOptions statusOptionsForceChecksum = new StatusOperationOptions();
    statusOptionsForceChecksum.setForceChecksum(true);

    UpOperationOptions upNoCleanupForceChecksum = new UpOperationOptions();
    upNoCleanupForceChecksum.setStatusOptions(statusOptionsForceChecksum);

    UpOperationOptions upWithCleanupKeep1ForceChecksum = new UpOperationOptions();
View Full Code Here

    CleanupOperationOptions cleanupOptionsKeep1 = new CleanupOperationOptions();
    cleanupOptionsKeep1.setMergeRemoteFiles(true);
    cleanupOptionsKeep1.setRemoveOldVersions(true);
    cleanupOptionsKeep1.setKeepVersionsCount(1);

    StatusOperationOptions statusOptionsForceChecksum = new StatusOperationOptions();
    statusOptionsForceChecksum.setForceChecksum(true);

    UpOperationOptions upNoCleanupForceChecksum = new UpOperationOptions();
    upNoCleanupForceChecksum.setStatusOptions(statusOptionsForceChecksum);

    UpOperationOptions upWithCleanupKeep1ForceChecksum = new UpOperationOptions();
View Full Code Here

    // Cli Requests
    clientA.copyFile("file-1", "file-1.bak");
   
    // CLI request while running.
    StatusFolderRequest statusRequest = new StatusFolderRequest();
    StatusOperationOptions statusOperationOption = new StatusOperationOptions();
    statusOperationOption.setForceChecksum(true);
   
    statusRequest.setId(30);
    statusRequest.setRoot(clientA.getConfig().getLocalDir().getAbsolutePath());
    statusRequest.setOptions(statusOperationOption);
   
View Full Code Here

    // Setup
    LocalTransferSettings testConnection = (LocalTransferSettings) TestConfigUtil.createTestLocalConnection();
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);

    StatusOperationOptions statusOptions = new StatusOperationOptions();
    statusOptions.setForceChecksum(true);

    CleanupOperationOptions cleanupOptions = new CleanupOperationOptions();
    cleanupOptions.setStatusOptions(statusOptions);
    cleanupOptions.setMergeRemoteFiles(false);
    cleanupOptions.setRemoveOldVersions(true);
View Full Code Here

    CleanupOperationOptions removeOldCleanupOperationOptions = new CleanupOperationOptions();
    removeOldCleanupOperationOptions.setMergeRemoteFiles(false);
    removeOldCleanupOperationOptions.setRemoveOldVersions(true);
    removeOldCleanupOperationOptions.setKeepVersionsCount(2);

    StatusOperationOptions forceChecksumStatusOperationOptions = new StatusOperationOptions();
    forceChecksumStatusOperationOptions.setForceChecksum(true);

    UpOperationOptions noCleanupAndForceUpOperationOptions = new UpOperationOptions();
    noCleanupAndForceUpOperationOptions.setForceUploadEnabled(true);
    noCleanupAndForceUpOperationOptions.setStatusOptions(forceChecksumStatusOperationOptions);
View Full Code Here

    }));

    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);

    StatusOperationOptions forceChecksumStatusOperationOptions = new StatusOperationOptions();
    forceChecksumStatusOperationOptions.setForceChecksum(true);

    UpOperationOptions noCleanupAndForceUpOperationOptions = new UpOperationOptions();
    noCleanupAndForceUpOperationOptions.setForceUploadEnabled(true);
    noCleanupAndForceUpOperationOptions.setStatusOptions(forceChecksumStatusOperationOptions);
View Full Code Here

    }));

    TestClient clientA = new TestClient("A", testConnection);
    java.sql.Connection databaseConnectionA = clientA.getConfig().createDatabaseConnection();

    StatusOperationOptions forceChecksumStatusOperationOptions = new StatusOperationOptions();
    forceChecksumStatusOperationOptions.setForceChecksum(true);

    CleanupOperationOptions options = new CleanupOperationOptions();
    options.setStatusOptions(forceChecksumStatusOperationOptions);
    options.setMergeRemoteFiles(true);
    options.setRemoveOldVersions(true);
View Full Code Here

  public DownOperationResult down(DownOperationOptions options) throws Exception {
    return new DownOperation(config, options).execute();
  }

  public StatusOperationResult status() throws Exception {
    return status(new StatusOperationOptions());
  }
View Full Code Here

TOP

Related Classes of org.syncany.operations.status.StatusOperationOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.