public class RegistryBasedRepositoryUpdater extends Object
Modifier and Type | Method and Description |
---|---|
static void |
cancelTask(String fileSystemRepo)
Cancel a particular task which updates a repo
|
static void |
cleanup()
Cleanup
|
static void |
scheduleAtFixedRate(org.wso2.carbon.registry.core.session.UserRegistry userRegistry,
String registryPath,
String fileSystemRepo,
long startSecs,
long periodSecs)
Schedule registry based repo update task
|
public static void scheduleAtFixedRate(org.wso2.carbon.registry.core.session.UserRegistry userRegistry, String registryPath, String fileSystemRepo, long startSecs, long periodSecs)
userRegistry
- The relevant user registry to fetch the repo fromregistryPath
- The path in the userRegistry
to fetch the repo fromfileSystemRepo
- The path in the file system in which the fetched data will be placedstartSecs
- Starting time of the task in secondsperiodSecs
- Period of the task in secondspublic static void cleanup()
public static void cancelTask(String fileSystemRepo)
fileSystemRepo
- The location in the file systemCopyright © 2016 WSO2 Inc. All rights reserved.