Class UpdateOperation

  • public class UpdateOperation
    extends Operation
    This operation manages updates of the application. It currently only performs update checks, but will likely be extended to automatically update the application. The following actions exist:

    The 'check' action checks if a new application version is available. It queries the Syncany API and outputs whether the local copy of the application is up-to-date. If it is not, it outputs the newest version and a download URL.

    See Also:
    Syncany Website/API
    • Method Detail

      • execute

        public UpdateOperationResult execute()
                                      throws java.lang.Exception
        Description copied from class: Operation
        Executes the operation synchronously and returns a result when the operation exits. Using covariance is recommend, that is OperationFoo should override execute so as to return a OperationFooResult rather than OperationResult.
        Specified by:
        execute in class Operation
        Returns an operation-specific operation result
        java.lang.Exception - If the operation fails