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)
Deprecated.
|
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()
Deprecated.
|
boolean |
update(String rootPath,
String filePath,
int depth)
Deprecated.
|
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 resources@Deprecated public boolean checkout(String filePath, int depth) throws DeploymentSynchronizerException
ArtifactRepository.checkout(int, String, int)
for more info.DeploymentSynchronizerException
@Deprecated public 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
DeploymentSynchronizerException
@Deprecated public boolean syncGhostMetaArtifacts() throws DeploymentSynchronizerException
ArtifactRepository.checkout(int, String, int)
for more info.DeploymentSynchronizerException
public void sync()
Copyright © 2022 WSO2. All rights reserved.