public class BaseSynchroContext extends AbstractSynchroContext
AbstractSynchroContext
.AbstractSynchroContext.SynchroAction, AbstractSynchroContext.SynchroSide, AbstractSynchroContext.SynchroState
actions, changeOccured, errorOccured, report, reportBuffer
Constructor and Description |
---|
BaseSynchroContext(BaseSynchroService parentService) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(String path,
AbstractSynchroContext.SynchroSide side1,
AbstractSynchroContext.SynchroSide side2) |
String |
getChecksum(AbstractSynchroContext.SynchroSide side,
String path) |
List<FileInfo> |
getDistantDirectoryToDelete() |
FileInfo |
getInfo(AbstractSynchroContext.SynchroSide side,
String path) |
List<FileInfo> |
getLocalDirectoryToDelete() |
Map<String,FileInfo> |
getOutState() |
BaseSynchroService |
getParentService() |
List<String> |
getPathList(AbstractSynchroContext.SynchroSide side) |
AbstractSynchroContext.SynchroState |
getState(AbstractSynchroContext.SynchroSide side,
String path) |
void |
initialize(Object previousState) |
protected Map<String,FileInfo> |
loadDistantInfo() |
protected Map<String,FileInfo> |
loadLocalInfo() |
protected Map<String,FileInfo> |
loadPreviousInfo(Object previousState) |
FileInfo |
updateOutState(String path,
File localFile,
FileInfo fileInfo) |
getAction, getPathList, getPathsWithAction, getPathsWithAction, getReport, getReportWriter, isChangeOccured, isErrorOccured, onChange, onError, onError, setAction, shutdown
public BaseSynchroContext(BaseSynchroService parentService)
public void initialize(Object previousState) throws SynchroFatalException
initialize
in class AbstractSynchroContext
SynchroFatalException
protected Map<String,FileInfo> loadDistantInfo() throws SynchroFatalException
SynchroFatalException
protected Map<String,FileInfo> loadLocalInfo() throws SynchroFatalException
SynchroFatalException
public BaseSynchroService getParentService()
getParentService
in class AbstractSynchroContext
public List<String> getPathList(AbstractSynchroContext.SynchroSide side) throws SynchroFatalException
getPathList
in class AbstractSynchroContext
SynchroFatalException
public AbstractSynchroContext.SynchroState getState(AbstractSynchroContext.SynchroSide side, String path) throws SynchroNonFatalException, SynchroFatalException
getState
in class AbstractSynchroContext
SynchroNonFatalException
SynchroFatalException
public boolean equals(String path, AbstractSynchroContext.SynchroSide side1, AbstractSynchroContext.SynchroSide side2) throws SynchroNonFatalException, SynchroFatalException
equals
in class AbstractSynchroContext
SynchroNonFatalException
SynchroFatalException
public FileInfo getInfo(AbstractSynchroContext.SynchroSide side, String path)
public String getChecksum(AbstractSynchroContext.SynchroSide side, String path)
public Map<String,FileInfo> getOutState()
getOutState
in class AbstractSynchroContext
Copyright © 2012-2018. All Rights Reserved.