Package org.syncany.operations.init
Class InitOperation
- java.lang.Object
-
- org.syncany.operations.Operation
-
- org.syncany.operations.init.AbstractInitOperation
-
- org.syncany.operations.init.InitOperation
-
public class InitOperation extends AbstractInitOperation
The init operation initializes a new repository at a given remote storage location. Its responsibilities include:- Generating a master key from the user password (if encryption is enabled)
using the
createMasterKey()
method - Creating the local Syncany folder structure in the local directory (.syncany folder and the sub-structure).
- Initializing the remote storage (creating folder-structure, if necessary) using a transfer manager.
- Creating a new repo and master file using
RepoTO
andMasterTO
, saving them locally and uploading them to the remote repository.
- Generating a master key from the user password (if encryption is enabled)
using the
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_IGNORE_FILE
-
Fields inherited from class org.syncany.operations.init.AbstractInitOperation
eventBus, listener, logger
-
-
Constructor Summary
Constructors Constructor Description InitOperation(InitOperationOptions options, UserInteractionListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InitOperationResult
execute()
Executes the operation synchronously and returns a result when the operation exits.-
Methods inherited from class org.syncany.operations.init.AbstractInitOperation
createAppDirs, createTransferManagerFromNullConfig, deleteAppDirs, fireNotifyCreateMaster
-
-
-
-
Field Detail
-
DEFAULT_IGNORE_FILE
public static final java.lang.String DEFAULT_IGNORE_FILE
-
-
Constructor Detail
-
InitOperation
public InitOperation(InitOperationOptions options, UserInteractionListener listener)
-
-
Method Detail
-
execute
public InitOperationResult 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.
-
-