Package org.syncany.operations.daemon.Watch

Examples of org.syncany.operations.daemon.Watch.SyncStatus


  public void onListWatchesRequestReceived(ListWatchesManagementRequest request) {
    ArrayList<Watch> watchList = new ArrayList<>();
   
    for (File watchFolder : watchOperations.keySet()) {
      boolean syncRunning = watchOperations.get(watchFolder).isSyncRunning();
      SyncStatus syncStatus = (syncRunning) ? SyncStatus.SYNCING : SyncStatus.IN_SYNC;
     
      watchList.add(new Watch(watchFolder, syncStatus));
    }
   
    eventBus.post(new ListWatchesManagementResponse(request.getId(), watchList));
View Full Code Here

TOP

Related Classes of org.syncany.operations.daemon.Watch.SyncStatus

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.