public class DeploymentSynchronizer extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkout()
Checkout the artifacts stored in the repository to the file system.
|
boolean |
checkout(String filePath,
int depth)
Checkout the artifacts stored in the repository to the file system.
|
boolean |
commit()
Commit the artifacts in the file system repository to the remote repository
|
boolean |
commit(String filePath)
Commit the artifacts from the given path in the file system repository to the remote repository
|
void |
doInitialSyncUp() |
ArtifactRepository |
getArtifactRepository() |
long |
getLastCheckoutTime() |
long |
getLastCommitTime() |
boolean |
isAutoCheckout() |
boolean |
isAutoCommit() |
boolean |
isUseEventing() |
void |
requestCheckout(long timestamp)
Notify the synchronizer that a checkout needs to be performed.
|
void |
setAutoCheckout(boolean autoCheckout) |
void |
setAutoCommit(boolean autoCommit) |
void |
setPeriod(long period) |
void |
setUseEventing(boolean useEventing) |
void |
start()
Start this DeploymentSynchronizer instance.
|
void |
stop() |
void |
sync() |
boolean |
syncGhostMetaArtifacts() |
boolean |
update(String rootPath,
String filePath,
int depth)
Checkout the artifacts stored in the repository to the file system.
|
public void start()
public void stop()
public boolean commit()
throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while committing the artifactspublic boolean commit(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while committing the artifactspublic boolean checkout()
throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while checking out or updating the resourcespublic boolean checkout(String filePath, int depth) throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while checking out or updating the resourcespublic boolean update(String rootPath, String filePath, int depth) throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while checking out or updating the resourcespublic void requestCheckout(long timestamp)
timestamp - A timestamp corresponding to the time of the notificationpublic void setAutoCommit(boolean autoCommit)
public void setAutoCheckout(boolean autoCheckout)
public void setPeriod(long period)
public void setUseEventing(boolean useEventing)
public boolean isUseEventing()
public boolean isAutoCommit()
public boolean isAutoCheckout()
public long getLastCheckoutTime()
public long getLastCommitTime()
public ArtifactRepository getArtifactRepository()
public void doInitialSyncUp()
throws DeploymentSynchronizerException
DeploymentSynchronizerExceptionpublic boolean syncGhostMetaArtifacts()
throws DeploymentSynchronizerException
DeploymentSynchronizerExceptionpublic void sync()
Copyright © 2015 WSO2. All rights reserved.