|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizer
public class DeploymentSynchronizer
This class is responsible for maintaining a repository in the local file system in sync with a remote repository. The local repository could be an artifact repository used by Carbon, Axis2 or Synapse. In fact it could be any directory hierarchy in the local file system. The remote repository could be a registry instance, a version control system or an online data storage service. This implementation can commit the changes in the local file system to the remote repository, and checkout any updated artifacts from the repository to the local file system. Commit operations and checkout operations are synchronized so that both operations will never run at the same time. This implementation also supports triggering checkouts on events.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void start()
public void stop()
public boolean commit()
throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while committing the artifacts
public boolean commit(String filePath)
throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while committing the artifacts
public boolean checkout()
throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while checking out or updating the resources
public boolean checkout(String filePath,
int depth)
throws DeploymentSynchronizerException
DeploymentSynchronizerException - If an error occurs while checking out or updating the resources
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
public boolean syncGhostMetaArtifacts()
throws DeploymentSynchronizerException
DeploymentSynchronizerExceptionpublic void sync()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||