org.alfresco.web.bean.wcm
Class DeploymentMonitor
java.lang.Object
org.alfresco.web.bean.wcm.DeploymentMonitor
- All Implemented Interfaces:
- java.io.Serializable, org.alfresco.service.cmr.avm.deploy.DeploymentCallback
public class DeploymentMonitor
- extends java.lang.Object
- implements org.alfresco.service.cmr.avm.deploy.DeploymentCallback, java.io.Serializable
Object used to monitor the deployment of a snapshot to a remote
server. These objects are typically stored in the HTTP session
and accessed by an AJAX callback to provide progress feedback
for the deployment.
- See Also:
- Serialized Form
Constructor Summary |
DeploymentMonitor(org.alfresco.service.cmr.repository.NodeRef website,
org.alfresco.service.cmr.repository.NodeRef server,
int snapshotVersion,
java.lang.String serverName,
java.lang.String deployAttemptId,
java.lang.String url)
Default constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeploymentMonitor
public DeploymentMonitor(org.alfresco.service.cmr.repository.NodeRef website,
org.alfresco.service.cmr.repository.NodeRef server,
int snapshotVersion,
java.lang.String serverName,
java.lang.String deployAttemptId,
java.lang.String url)
- Default constructor
eventOccurred
public void eventOccurred(org.alfresco.service.cmr.avm.deploy.DeploymentEvent event)
- Specified by:
eventOccurred
in interface org.alfresco.service.cmr.avm.deploy.DeploymentCallback
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toXML
public java.lang.String toXML()
getId
public java.lang.String getId()
- Returns:
- The id for this deployment monitor
getWebsite
public org.alfresco.service.cmr.repository.NodeRef getWebsite()
- Returns:
- The NodeRef representation of the website being deployed
getTargetServer
public org.alfresco.service.cmr.repository.NodeRef getTargetServer()
- Returns:
- The target server for this deployment
getTargetServerName
public java.lang.String getTargetServerName()
- Returns:
- The target server display name for this deployment
getSnapshotVersion
public int getSnapshotVersion()
- Returns:
- The snapshot version being deployed
getDeployAttemptId
public java.lang.String getDeployAttemptId()
- Returns:
- The deploy attempt id for this deployment
getUrl
public java.lang.String getUrl()
- Returns:
- The URL of the server being deployed
getReason
public java.lang.String getReason()
- Returns:
- The reason for the error, null if an error has not occurred
isStarted
public boolean isStarted()
- Returns:
- true if the deployment has started
isFinished
public boolean isFinished()
- Returns:
- true if the deployment has finished
isSuccessful
public boolean isSuccessful()
- Returns:
- true if the deployment was successful,
only reliable once isFinished returns true.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.