public class Deployment extends Object implements Iterable<DeployedFile>, Serializable
| Constructor and Description |
|---|
Deployment(String ticket,
String targetName,
String storeName,
int version)
Create a new Deployment record
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Mark the Deployment as aborting.
|
void |
add(DeployedFile file)
Log that a file has been deployed.
|
void |
commit()
And commit is now in progress.
|
String |
getAuthoringStoreName()
Get the name of the store being deployed.
|
int |
getAuthoringVersion()
Get the version being deployed.
|
DeploymentState |
getState()
Get the state of the deployment.
|
boolean |
isMetaError()
Has there been an error detected with meta-data?
|
boolean |
isStale(long timeout)
Is the deployment stale.
|
Iterator<DeployedFile> |
iterator()
get the iterator for the files contained within this deployment.
|
void |
prepare()
Prepare this deployment.
|
void |
setAuthoringStoreName(String storeName)
Get the store name being deployed.
|
void |
setAuthoringVersion(int version)
Set the authoring version (of the deployment from the authoring server)
|
void |
setDeploymentState(DeploymentState state)
Set the state of a deployment
|
void |
setMetaError(boolean metaError) |
public Deployment(String ticket, String targetName, String storeName, int version) throws IOException
ticket - the ticket for this deployment.targetName - the name of the deployment targetstoreName - the name of the source store on the authoring cluster.version - the snapshot version (from the authoring cluster) being deployed.IOExceptionpublic void add(DeployedFile file) throws IOException
file - IOExceptionpublic void prepare()
throws IOException,
DeploymentException
IOExceptionDeploymentExceptionpublic void commit()
throws IOException
IOExceptionpublic void abort()
throws IOException
IOExceptionpublic boolean isStale(long timeout)
timeout - public Iterator<DeployedFile> iterator()
iterator in interface Iterable<DeployedFile>public DeploymentState getState()
public void setDeploymentState(DeploymentState state)
state - public void setMetaError(boolean metaError)
public boolean isMetaError()
public void setAuthoringVersion(int version)
authoring - versionpublic int getAuthoringVersion()
public void setAuthoringStoreName(String storeName)
storeName - public String getAuthoringStoreName()
Copyright © 2005–2014 Alfresco Software. All rights reserved.