All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.syncui.service.SyncConfigurationManager Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.syncui.service;

import org.duracloud.syncui.domain.DirectoryConfigs;
import org.duracloud.syncui.domain.DuracloudConfiguration;

import java.io.File;

/**
 * Provides persist operations for configuration related operations.
 * 
 * @author Daniel Bernstein
 * 
 */
public interface SyncConfigurationManager {

    
    long GIGABYTES = 1000*1000*1000;

    /**
     * 
     * @param username
     * @param password
     * @param host
     * @param port
     * @param spaceId
     */
    public void persistDuracloudConfiguration(String username,
                                            String password,
                                            String host,
                                            String port,
                                            String spaceId);

    /**
     * 
     * @return
     */
    public DuracloudConfiguration retrieveDuracloudConfiguration();

    
    /**
     * 
     * @return
     */
    public DirectoryConfigs retrieveDirectoryConfigs();
    
    /**
     * 
     * @return
     */
    public boolean isConfigurationComplete();

    public void persistDirectoryConfigs(DirectoryConfigs configs);

    public void setConfigXmlPath(String configXml);
    
    public void persist();

    public void purgeWorkDirectory();
    
    public void setSyncDeletes(boolean flag);
    
    public boolean isSyncDeletes();

    public boolean isSyncUpdates();

    public String getUpdateSuffix();

    public boolean isRenameUpdates();

    public void setSyncUpdates(boolean b);

    public void setRenameUpdates(boolean b);

    public File getWorkDirectory();

    public String getPrefix();

    public void setPrefix(String prefix);
    
    public int getThreadCount();
    
    public void setThreadCount(int threadCount);

    public void setJumpStart(boolean jumpStart);

    public boolean isJumpStart();
    
    public void setMode(RunMode mode);
    
    public RunMode getMode();

    public long getMaxFileSizeInBytes();
    
    public void setMaxFileSizeInBytes(long maxFileSize);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy