Package org.syncany.operations.update
Class UpdateOperation
- java.lang.Object
-
- org.syncany.operations.Operation
-
- org.syncany.operations.update.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
-
-
Constructor Summary
Constructors Constructor Description UpdateOperation(Config config, UpdateOperationOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateOperationResult
execute()
Executes the operation synchronously and returns a result when the operation exits.
-
-
-
Constructor Detail
-
UpdateOperation
public UpdateOperation(Config config, UpdateOperationOptions options)
-
-
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.
-
-