public class Deployment
extends java.lang.Object
implements java.lang.Iterable, java.io.Serializable
| Constructor and Description |
|---|
Deployment(java.lang.String ticket,
java.lang.String targetName,
java.lang.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.
|
java.lang.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.
|
java.util.Iterator |
iterator()
get the iterator for the files contained within this deployment.
|
void |
prepare()
Prepare this deployment.
|
void |
setAuthoringStoreName(java.lang.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(java.lang.String ticket,
java.lang.String targetName,
java.lang.String storeName,
int version)
throws java.io.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.java.io.IOExceptionpublic void add(DeployedFile file) throws java.io.IOException
file - java.io.IOExceptionpublic void prepare()
throws java.io.IOException,
DeploymentException
java.io.IOExceptionDeploymentExceptionpublic void commit()
throws java.io.IOException
java.io.IOExceptionpublic void abort()
throws java.io.IOException
java.io.IOExceptionpublic boolean isStale(long timeout)
timeout - public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic 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(java.lang.String storeName)
storeName - public java.lang.String getAuthoringStoreName()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.