public class ServerSynchroService extends BaseSynchroService
BaseSynchroService.FileInfoPathComparator
logger, SERVLET_RELATIVE_PATH
Modifier | Constructor and Description |
---|---|
protected |
ServerSynchroService(String localName,
String serverURL,
String proxyHost,
int proxyPort,
String synchroCode,
String baseFolder) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyAction(BaseSynchroContext context,
String path,
AbstractSynchroContext.SynchroAction action)
Apply the action required for the path.
|
String |
buildURL(String url) |
protected AbstractSynchroContext.SynchroAction |
defineAction(BaseSynchroContext context,
String path)
Called to define the required action for the specified path.
|
protected void |
deleteDistantDirectories(BaseSynchroContext context) |
protected void |
deleteLocalDirectories(BaseSynchroContext context) |
static ServerSynchroService |
getInstance(String localName,
String serverURL,
String proxyHost,
int proxyPort,
String synchroCode,
String dataFolder) |
static ServerSynchroService |
getInstanceForMailing(String localName,
String serverURL,
String proxyHost,
int proxyPort,
String synchroCode,
String mailingFolder) |
static ServerSynchroService |
getInstanceForMailingHistory(String localName,
String serverURL,
String proxyHost,
int proxyPort,
String synchroCode,
String mailingHistoryFolder) |
static ServerSynchroService |
getInstanceForShareFiles(String localName,
String serverURL,
String proxyHost,
int proxyPort,
String synchroCode,
String shareFolder) |
static ServerSynchroService |
getInstanceForTemplate(String localName,
String serverURL,
String proxyHost,
int proxyPort,
String synchroCode,
String templateFolder) |
String |
getLocalName()
Get the name of the local side.
|
protected static HttpClientService |
newHttpClientService(String serverURL,
String synchroCode,
String proxyHost,
int proxyPort) |
protected void |
onShutdown(BaseSynchroContext context)
Called every time a synchro run is finished even if a
SynchroFatalException is thrown. |
applyActions, buildConflictPath, buildLocalFile, buildLocalFile, copyDistantToLocal, copyLocalToDistant, copyLocalToDistant, deleteDistantFile, deleteLocalFile, getBaseFolderFile, getDistantName, getHttpClientService, initializeContext, isManageDeletedFiles, isRefreshAll, isSplitBigFiles, moveLocalFile, newSynchroContext, onActionsApplied, onFatalException, onNonFatalException, onUncaughtException, pushContext, sendCommand, sendRefresh, setManageDeletedFiles, setRefreshAll, setSplitBigFiles
defineActions, onActionsDefined, synchronize
public static ServerSynchroService getInstance(String localName, String serverURL, String proxyHost, int proxyPort, String synchroCode, String dataFolder)
public static ServerSynchroService getInstanceForMailing(String localName, String serverURL, String proxyHost, int proxyPort, String synchroCode, String mailingFolder)
public static ServerSynchroService getInstanceForMailingHistory(String localName, String serverURL, String proxyHost, int proxyPort, String synchroCode, String mailingHistoryFolder)
public static ServerSynchroService getInstanceForTemplate(String localName, String serverURL, String proxyHost, int proxyPort, String synchroCode, String templateFolder)
public static ServerSynchroService getInstanceForShareFiles(String localName, String serverURL, String proxyHost, int proxyPort, String synchroCode, String shareFolder)
protected static HttpClientService newHttpClientService(String serverURL, String synchroCode, String proxyHost, int proxyPort)
public String getLocalName()
AbstractSynchroService
getLocalName
in class AbstractSynchroService<BaseSynchroContext>
protected AbstractSynchroContext.SynchroAction defineAction(BaseSynchroContext context, String path) throws SynchroNonFatalException, SynchroFatalException
AbstractSynchroService
defineAction
in class AbstractSynchroService<BaseSynchroContext>
context
- the current AbstractSynchroContext
SynchroNonFatalException
SynchroFatalException
protected void applyAction(BaseSynchroContext context, String path, AbstractSynchroContext.SynchroAction action) throws SynchroNonFatalException
AbstractSynchroService
applyAction
in class BaseSynchroService
context
- the current AbstractSynchroContext
SynchroNonFatalException
public String buildURL(String url)
buildURL
in class BaseSynchroService
protected void onShutdown(BaseSynchroContext context)
AbstractSynchroService
SynchroFatalException
is thrown. See AbstractSynchroContext.isErrorOccured()
.
AbstractSynchroService.newSynchroContext()
failed.onShutdown
in class AbstractSynchroService<BaseSynchroContext>
context
- the current AbstractSynchroContext
protected void deleteDistantDirectories(BaseSynchroContext context)
deleteDistantDirectories
in class BaseSynchroService
protected void deleteLocalDirectories(BaseSynchroContext context)
deleteLocalDirectories
in class BaseSynchroService
Copyright © 2012-2018. All Rights Reserved.