public class Status
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, atg.deployment.common.Constants
When obtained from Target.getStatus(), the Status object represents the merged status from all agents that make up the target. For example, if one of the responsible agents has a null deployed snapshot, the Status will have a null snapshot even though the rest of the agents have a legitimate deployed snapshot. Deployment-specific fields are filled in from the agents rather than the deployment status.
When obtained from AgentRef.getStatus(), the Status object represents the single agent status. State, deployed snapshot, and deployment info are all specific to the one agent.
When obtained from Deployment.getStatus(), the Status object represents the status of the specific deployment. State is set by the deployment process rather than individual agent state.
The typical deployment goes through the following phases:
lock target prepare target activate deploymentThe basic ordering of phases is standard, though some phases may be skipped. Each phase has a pre and post phase state change call of the form ACTIVE_
Given this, the typical flow of a deployment on both the server and the agent looks something like this:
Deployment | Agent | Comment |
IDLE | the agent is idle when there is no deployment | |
IDLE | a Deployment is created but begin() has not been called | |
ACTIVE_LOCK | Deployment.begin() is called beginning target locking | |
ACTIVE_LOCK | begin locking | |
DONE_LOCK | locking completed successfully | |
DONE_LOCK | all target agents locked successfully | |
ACTIVE_PREPARE | begin target preparation | |
ACTIVE_PREPARE | begin preparation | |
DONE_PREPARE | preparation completed successfully | |
DONE_PREPARE | all target agents prepared successfully | |
ACTIVE_APPLY | begin applying the data on all target agents | |
ACTIVE_APPLY | begin applying the data | |
ACTIVE_APPLY_COMMITTED | data application committed the first batch of asset operations | |
ACTIVE_APPLY_COMMITTED | data application committed the first batch of asset operations | |
DONE_APPLY | data application completed successfully | |
DONE_APPLY | all target data applications completed successfully | |
ACTIVE_ACTIVATE | begin activating the deployment on all target agents | |
ACTIVE_ACTIVATE | begin activating the deployment | |
DONE_ACTIVATE | deployment activation completed successfully | |
DONE_ACTIVATE | all target deployment activations completed successfully | |
DEPLOYMENT_COMPLETE | deployment is complete | |
IDLE | the agent returns to an idle state | |
DEPLOYMENT_COMPLETE | deployment is complete |
Target
,
AgentRef
,
Deployment
,
DeploymentEventListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
Status.FailureMessage
Inner class used to store failure data from a failed deployment.
|
ACCEPTED_FOR_TARGET, APPLY_TRANSACTION_SIZE, APPROVED_FOR_TARGET, DEPLOYED_TO_TARGET, DEPLOYMENT_PROTOCOL_VERSION, DEPLOYMENT_TYPE_BACK_DEPLOY, DEPLOYMENT_TYPE_DEPLOY_TO_INITIAL, DEPLOYMENT_TYPE_INIT_TARGET, DEPLOYMENT_TYPE_ONE_OFF_DEPLOY, DEPLOYMENT_TYPE_REVERT_DEPLOY, DEPLOYMENT_TYPE_STANDARD_DEPLOY, DPLY_CMD_ACTIVE_APPLY_COMMITTED, DPLY_CMD_AFFECTED_TYPES, DPLY_CMD_ASSET_DESTINATIONS, DPLY_CMD_CLUSTER_ID, DPLY_CMD_COMMAND, DPLY_CMD_DATASTORES_TO_SWITCH, DPLY_CMD_DEPLOYMENT_END_TIME, DPLY_CMD_DEPLOYMENT_ID, DPLY_CMD_DEPLOYMENT_START_TIME, DPLY_CMD_EXCLUDE_ASSET, DPLY_CMD_FIRST_APPLY, DPLY_CMD_FROM_SNAPSHOT, DPLY_CMD_INCLUDE_ASSET, DPLY_CMD_INSTALL_BYTES, DPLY_CMD_INSTALL_NUM_BYTES, DPLY_CMD_MODE, DPLY_CMD_ONEOFF, DPLY_CMD_PRINCIPAL, DPLY_CMD_PROJECTS, DPLY_CMD_PROTOCOL_VERSION, DPLY_CMD_RECOVERING, DPLY_CMD_REFRESH_REPOSITORIES, DPLY_CMD_RESUME, DPLY_CMD_ROLLBACK, DPLY_CMD_SCIEVENTS, DPLY_CMD_SERVER_NAME, DPLY_CMD_SET_AGENT_STATUS, DPLY_CMD_SWITCH_FIRST, DPLY_CMD_SWITCH_LIVE, DPLY_CMD_TO_SNAPSHOT, DPLY_CMD_TYPE, DPLY_CMD_USER_ID, DPLY_CMD_VERIFY_FILE_CHECKSUM, DPLY_CMD_VERIFY_FILE_COMPONENT_PATH, DPLY_CMD_VERIFY_FILE_LAST_MODIFIED, DPLY_CMD_VERIFY_FILE_PATH, DPLY_CMD_VERIFY_FILE_SIZE, DPLY_CMD_VFS_ORDER, HIDDEN_FROM_TARGET, INIT_BRANCH_LOCK_NAME, ONE_OFF, REMOTE_SWITCH_EXCEPTION, REMOTE_SWITCH_SUCCESS, RENOUNCED_FOR_TARGET, ROLLBACK_DEPLOYMENT_FAILURE, STRICT_OP_DEFAULT, STRICT_OP_OVERRIDE_FALSE, STRICT_OP_OVERRIDE_TRUE, TARGET_INITIAL_STATE_PROJECT_ID, TOPOLOGY_AGENT_PRINCIPAL_ALL, TOPOLOGY_AGENT_PRINCIPAL_NONE, TOPOLOGY_AGENT_PRINCIPAL_REPOSITORY, TOPOLOGY_AGENT_PRINCIPAL_VFS, TOPOLOGY_DEPLOY_TYPE_ONE_OFF, TOPOLOGY_DEPLOY_TYPE_WORKFLOW, TOPOLOGY_TRANSPORT_JNDI, TOPOLOGY_TRANSPORT_RMI, WORKFLOW
Modifier and Type | Method and Description |
---|---|
void |
addAffectedItemType(java.lang.String pRepository,
java.lang.String pItemType) |
void |
addAffectedRepository(java.lang.String pAffectedRepository) |
void |
addDeploymentAgentSwitchableVFS(java.lang.String pSwitchableVFS)
Add a switchable VFS to the list of switchable VFSs configured for this
agent.
|
void |
addFailureMessage(boolean pIsRollback,
java.lang.String pMessage,
java.lang.String pStackTrace,
java.util.Date pFailureTime,
java.lang.String pSeverity,
java.lang.String pAction,
java.lang.String pItemDesc,
java.lang.String pItemId,
java.lang.String pFilePath,
java.lang.String pFileId) |
protected java.lang.Object |
clone()
Override Object.clone() so that copies may be made.
|
java.util.Map |
getAffectedItemTypes()
A Map with a key of affected repository path to a Set value of
affected item types.
|
java.util.Set |
getAffectedRepositories()
A set of the repositories affected by this deployment.
|
java.util.Map |
getAssetDestinations()
Get the list of repository/VFS paths affected by this deployment
|
java.util.Collection |
getAutoRollbackFailureMessages() |
atg.deployment.common.ClusterStatus |
getClusterStatus() |
java.lang.String |
getDeployedSnapshot()
The current deployed snapshot of the target or agent.
|
long |
getDeployedSnapshotTimestamp()
System milliseconds when the deployed snapshot was last set by a deployment.
|
java.lang.String |
getDeploymentAgentInitialLiveDataStore()
The live data store at the beginning of this deployment if the agent is configured for switch deployments.
|
int |
getDeploymentAgentLocalPort()
The local port used in the FileDeploymentServer for DAF file deployments.
|
java.util.Collection |
getDeploymentAgentSwitchableVFS()
Returns a Collection of VFSs configured for switch deployments on this
agent.
|
long |
getDeploymentBeginTimestamp()
System milliseconds when the deployment was first started.
|
java.util.Date |
getDeploymentBeginTimestampAsDate()
Date when the deployment was first started.
|
long |
getDeploymentBeginTimestampInternal()
System milliseconds when the deployment was first started.
|
java.lang.String |
getDeploymentCreateInitiator()
A generic identifier denoting who or what created/started the deployment.
|
java.lang.String |
getDeploymentDeleteInitiator()
A generic identifier denoting who or what deleted the deployment.
|
java.lang.String |
getDeploymentFromSnapshot()
The snapshot last deployed to the target or agent.
|
java.lang.String |
getDeploymentID()
Current deployment identifier.
|
long |
getDeploymentLastBeginTimestamp()
System milliseconds when the deployment was last started.
|
java.util.Date |
getDeploymentLastBeginTimestampAsDate()
Date when the deployment was last started.
|
long |
getDeploymentLastExecutionTime()
The time in milliseconds the deployment has spent running since it was last started.
|
int |
getDeploymentMode()
The deployment mode, either Constants.MODE_ONLINE or Constants.MODE_SWITCH.
|
java.lang.String[] |
getDeploymentProjectIDs()
The project IDs being deployed to the target or agent.
|
java.lang.String |
getDeploymentRollbackInitiator()
A generic identifier for who or what called rollback on the deployment.
|
java.lang.String |
getDeploymentServer()
Name of the deployment server performing the current deployment.
|
java.lang.String |
getDeploymentServerInitialLiveDataStore()
Stores the live datastore name at the start of a deployment
|
java.lang.String |
getDeploymentStopInitiator()
A generic identifier denoting who or what stopped/interrupted the deployment.
|
int |
getDeploymentStrictFileOps() |
int |
getDeploymentStrictRepoOps() |
java.lang.String |
getDeploymentToSnapshot()
The snapshot being deployed to the target or agent.
|
long |
getDeploymentTotalExecutionTime()
The time in milliseconds the deployment has spent running.
|
int |
getDeploymentType()
The deployment type, either Constants.TYPE_INCREMENTAL or Constants.TYPE_FULL.
|
java.lang.Throwable |
getErrorCausedByException()
The Exception that caused the error state, if an Exception did
so.
|
java.lang.String |
getErrorMessage()
A textual description of what caused the error status, if the status is an error state.
|
java.lang.String |
getErrorMessage(java.util.Locale pLocale)
A textual description of what caused the error status, if the status is an error state.
|
java.lang.Object[] |
getErrorMsgResourceArguments()
Resource string arguments used to fill in and create the error message.
|
java.lang.String |
getErrorMsgResourceKey()
The resource look-up key for the error message.
|
java.util.Collection |
getFailureMessages() |
int |
getLastCompletedStage() |
java.lang.String |
getLastDeployedClusterID() |
java.lang.String[] |
getLiveDatastores()
Live datastore name of each switchable datastore defined in mSwitchablePaths.
|
java.lang.String[] |
getPrerequisiteDeploymentProjectIDs()
The project IDs being deployed to the target or agent which have fallen
through the cracks.
|
int |
getPreviousState()
The previous state of this status.
|
atg.adapter.gsa.SelectiveCacheInvalidationEvent[] |
getSelectiveCacheInvalidationEvents()
Get property
selectiveCacheInvalidationEvents |
int |
getState()
The numeric state code indicating the status.
|
java.lang.String |
getStateString()
Returns the integer state code as a character string identifier.
|
long |
getStateTimestamp()
Timestamp the state of this status was last changed.
|
java.util.Date |
getStateTimestampAsDate()
Timestamp the state of this status was last changed.
|
java.lang.String[] |
getSwitchablePaths()
Array of Nucleus component paths on this agent that implement Switchable.
|
java.lang.String |
getTarget()
The logical target of the status, either a deployment target or a local agent.
|
java.lang.String |
getTargetSnapshotID() |
boolean |
getUseAgentErrorMsgResourceKey()
Set this to true during an agent exception and the CA server will use
the agent error message resource key and resource arguments when
reporting the deployment error.
|
java.lang.String |
getUserStateString()
Returns the integer state code as a character string identifier
which can be shown to the end user.
|
java.lang.String |
getUserStateString(java.util.Locale pLocale)
Returns the integer state code as a character string identifier
which can be shown to the end user.
|
boolean |
isAbsoluteFullDeployment()
Returns property unqualifiedFullDeployment.
|
boolean |
isDeploymentAutoRollback()
Flag which determines if the currently running deployment is an
automatically initiated rollback deployment due to a deployment failure.
|
boolean |
isDeploymentBack()
Returns property DeploymentBack.
|
boolean |
isDeploymentCommitted()
Whether or not this deployment has proceeded past the committed
point of no return.
|
boolean |
isDeploymentFirstPass()
Identifier indicating whether the currently running deployment is on its first or second pass in
a switch configured deployment.
|
boolean |
isDeploymentFull()
Returns true/false depending on if this is a full deployment.
|
boolean |
isDeploymentIncremental()
Returns true/false depending on if this is an incremental deployment.
|
boolean |
isDeploymentInitial()
Returns property deploymentInitial.
|
boolean |
isDeploymentOneOff()
Sets property DeploymentOneOff.
|
boolean |
isDeploymentRevert()
Returns property deploymentRevert.
|
boolean |
isDeploymentRollback()
Whether or not the deployment has been flagged for rollback.
|
boolean |
isDeploymentStandard()
Returns property DeploymentStandard.
|
boolean |
isDeploymentSwitched()
Whether or not this deployment has switched yet, if it is a switch deployment.
|
boolean |
isDeploymentTargetSwitched()
Whether or not the target deployment datasources have been switched yet, if this
is a switch configured deployment.
|
boolean |
isSelectiveCacheInvalidationEnabled() |
boolean |
isStateActive()
Returns true if the state denotes the beginning of a phase of
deployment, including the beginning of a stop or the beginning
of a deployment lock.
|
boolean |
isStateDone()
Returns true if the state denotes the ending of a phase of
deployment, including the ending of a stop and an over-all
deployment completion.
|
boolean |
isStateError()
Returns true if the state code is an error code.
|
boolean |
isStateInterruptable()
Returns true if the state is interruptable by a deployment
event.
|
boolean |
isSwitchable()
Whether or not the target or agent is configured for switch deployments.
|
boolean |
isTransferCompleteFirstPhaseSuccess()
If work done after a transfer completion finished successfully for first phase.
|
boolean |
isTransferCompleteSecondPhaseSuccess()
If work done after a transfer completion finished successfully for Second phase.
|
boolean |
isUsingDirectSQLReplication()
Sets property UsingDirectSQLReplication.
|
static void |
main(java.lang.String[] args)
Debugging and testing main() call.
|
void |
removeAffectedItemTypes(java.lang.String pRepository) |
void |
removeAffectedRepository(java.lang.String pAffectedRepository) |
void |
setAbsoluteFullDeployment(boolean pAbsoluteFullDeployment)
Sets property unqualifiedFullDeployment.
|
void |
setAffectedItemTypes(java.util.Map pAffectedItemTypes)
A Map with a key of affected repository path to a Set value of
affected item types.
|
void |
setAffectedRepositories(java.util.Set pAffectedRepositories)
A set of the repositories affected by this deployment.
|
void |
setAssetDestinations(java.util.Map pDestinations)
Set the list of repository/VFS paths affected by this deployment
|
void |
setAutoRollbackFailureMessages(java.util.Collection pFailureMessages) |
void |
setClusterStatus(atg.deployment.common.ClusterStatus pClusterStatus) |
void |
setDeploymentAgentInitialLiveDataStore(java.lang.String pDeploymentAgentInitialLiveDataStore)
The live data store at the beginning of this deployment if the agent is configured for switch deployments.
|
void |
setDeploymentAgentLocalPort(int pDeploymentAgentLocalPort)
The local port used in the FileDeploymentServer for DAF file deployments.
|
void |
setDeploymentAgentSwitchableVFS(java.util.Collection pSwitchableVFSs)
Add a collection of switchable VFSs configured for this agent.
|
void |
setDeploymentAutoRollback(boolean pDeploymentAutoRollback)
Flag which determines if the currently running deployment is an
automatically initiated rollback deployment due to a deployment failure.
|
void |
setDeploymentBack(boolean pDeploymentBack)
Sets property DeploymentBack.
|
void |
setDeploymentBeginTimestamp(long pDeploymentBeginTimestamp)
System milliseconds when the deployment was first started.
|
void |
setDeploymentCommitted(boolean pDeploymentCommitted)
Whether or not this deployment has proceeded past the committed
point of no return.
|
void |
setDeploymentCreateInitiator(java.lang.String pDeploymentCreateInitiator)
A generic identifier denoting who or what created/started the deployment.
|
void |
setDeploymentDeleteInitiator(java.lang.String pDeploymentDeleteInitiator)
A generic identifier denoting who or what deleted the deployment.
|
void |
setDeploymentFirstPass(boolean pDeploymentFirstPass)
Identifier indicating whether the currently running deployment is on its first or second pass in
a switch configured deployment.
|
void |
setDeploymentID(java.lang.String pDeploymentID)
Current deployment identifier.
|
void |
setDeploymentInitial(boolean pDeploymentInitial)
Sets property deploymentInitial.
|
void |
setDeploymentLastBeginTimestamp(long pDeploymentLastBeginTimestamp)
System milliseconds when the deployment was last started.
|
void |
setDeploymentLastExecutionTime(long pDeploymentLastExecutionTime)
The time in milliseconds the deployment has spent running since it was last started.
|
void |
setDeploymentMode(int pDeploymentMode)
The deployment mode, either Constants.MODE_ONLINE or Constants.MODE_SWITCH.
|
void |
setDeploymentOneOff(boolean pDeploymentOneOff)
Sets property DeploymentOneOff.
|
void |
setDeploymentRevert(boolean pDeploymentRevert)
Sets property deploymentRevert.
|
void |
setDeploymentRollback(boolean pDeploymentRollback)
Whether or not the deployment has been flagged for rollback.
|
void |
setDeploymentRollbackInitiator(java.lang.String pDeploymentRollbackInitiator)
A generic identifier for who or what called rollback on the deployment.
|
void |
setDeploymentServer(java.lang.String pDeploymentServer)
Name of the deployment server performing the current deployment.
|
void |
setDeploymentServerInitialLiveDataStore(java.lang.String pDeploymentServerInitialLiveDataStore)
Stores the live datastore name at the start of a deployment
|
void |
setDeploymentStandard(boolean pDeploymentStandard)
Sets property DeploymentStandard.
|
void |
setDeploymentStopInitiator(java.lang.String pDeploymentStopInitiator)
A generic identifier denoting who or what stopped/interrupted the deployment.
|
void |
setDeploymentStrictFileOps(int pDeploymentStrictFileOps) |
void |
setDeploymentStrictRepoOps(int pDeploymentStrictRepoOps) |
void |
setDeploymentSwitched(boolean pDeploymentSwitched)
Whether or not this deployment has switched yet, if it is a switch deployment.
|
void |
setDeploymentTargetSwitched(boolean pDeploymentTargetSwitched)
Whether or not the target deployment datasources have been switched yet, if this
is a switch configured deployment.
|
void |
setDeploymentTotalExecutionTime(long pDeploymentTotalExecutionTime)
The time in milliseconds the deployment has spent running.
|
void |
setDeploymentType(int pDeploymentType)
The deployment type, either Constants.TYPE_INCREMENTAL or Constants.TYPE_FULL.
|
void |
setErrorCausedByException(java.lang.Throwable pErrorCausedByException)
The Exception that caused the error state, if an Exception did
so.
|
void |
setErrorMsgResourceArguments(java.lang.Object pArg1)
A convenience method for setting/creating the error message resource arguments array.
|
void |
setErrorMsgResourceArguments(java.lang.Object[] pErrorMsgResourceArguments)
Resource string arguments used to fill in and create the error message.
|
void |
setErrorMsgResourceArguments(java.lang.Object pArg1,
java.lang.Object pArg2)
A convenience method for setting/creating the error message resource arguments array.
|
void |
setErrorMsgResourceArguments(java.lang.Object pArg1,
java.lang.Object pArg2,
java.lang.Object pArg3)
A convenience method for setting/creating the error message resource arguments array.
|
void |
setErrorMsgResourceArguments(java.lang.Object pArg1,
java.lang.Object pArg2,
java.lang.Object pArg3,
java.lang.Object pArg4)
A convenience method for setting/creating the error message resource arguments array.
|
void |
setErrorMsgResourceArguments(java.lang.Object pArg1,
java.lang.Object pArg2,
java.lang.Object pArg3,
java.lang.Object pArg4,
java.lang.Object pArg5)
A convenience method for setting/creating the error message resource arguments array.
|
void |
setErrorMsgResourceKey(java.lang.String pErrorMsgResourceKey)
The resource look-up key for the error message.
|
void |
setFailureMessages(java.util.Collection pFailureMessages) |
void |
setLastCompletedStage(int pLastCompletedStage) |
void |
setLastDeployedClusterID(java.lang.String pLastDeployedClusterID)
N.B.
|
void |
setLiveDatastores(java.lang.String[] pLiveDatastores)
Live datastore name of each switchable datastore defined in mSwitchablePaths.
|
void |
setSelectiveCacheInvalidationEnabled(boolean pSelectiveCacheInvalidationEnabled) |
void |
setSelectiveCacheInvalidationEvents(atg.adapter.gsa.SelectiveCacheInvalidationEvent[] pSelectiveCacheInvalidationEvents)
Set property
SelectiveCacheInvalidationEvents |
void |
setState(int pState)
The numeric state code indicating the status.
|
void |
setSwitchable(boolean pSwitchable)
Whether or not the target or agent is configured for switch deployments.
|
void |
setSwitchablePaths(java.lang.String[] pSwitchablePaths)
Array of Nucleus component paths on this agent that implement Switchable.
|
void |
setTarget(java.lang.String pTarget)
The logical target of the status, either a deployment target or a local agent.
|
void |
setTargetSnapshotID(java.lang.String pTargetSnapshotID) |
void |
setTransferCompleteFirstPhaseSuccess(boolean pTransferCompleteFirstPhaseSuccess)
If work done after a transfer completion finished successfully for first phase.
|
void |
setTransferCompleteSecondPhaseSuccess(boolean pTransferCompleteSecondPhaseSuccess)
If work done after a transfer completion finished successfully for Second phase.
|
void |
setUseAgentErrorMsgResourceKey(boolean pUseAgentErrorMsgResourceKey)
Set this to true during an agent exception and the CA server will use
the agent error message resource key and resource arguments when
reporting the deployment error.
|
void |
setUsingDirectSQLReplication(boolean pUsingDirectSQLReplication)
Sets property UsingDirectSQLReplication.
|
static java.lang.String |
stateToString(int pStateCode)
Returns a string form of the state code.
|
static java.lang.String |
stateToString(int pStateCode,
java.util.Locale pLocale)
Returns a string form of the state code for the given locale.
|
java.lang.String |
toString()
Returns this Status as a String.
|
public static java.lang.String CLASS_VERSION
public static final int IDLE
public static final int DEPLOYMENT_COMPLETE
public static final int ERROR
public static final int ERROR_TRANSPORT
public static final int ERROR_TRANSPORT_UNINSTANTIATED
public static final int ERROR_EVENT_INTERRUPT
public static final int DEPLOYMENT_DELETED
public static final int SNAPSHOT_INITIALIZE
public static final int WAITING_QUEUED
public static final int WAITING_SCHEDULED
public static final int ACTIVE_LOCK
public static final int DONE_LOCK
public static final int ERROR_LOCK
public static final int ACTIVE_PREPARE
public static final int DONE_PREPARE
public static final int ERROR_PREPARE
public static final int ACTIVE_CREATE
public static final int DONE_CREATE
public static final int ERROR_CREATE
public static final int ACTIVE_INSTALL
public static final int DONE_INSTALL
public static final int ERROR_INSTALL
public static final int ACTIVE_LOAD
public static final int DONE_LOAD
public static final int ERROR_LOAD
public static final int ERROR_LOAD_MISSING
public static final int ERROR_LOAD_INCOMPLETE
public static final int ACTIVE_APPLY
public static final int ACTIVE_APPLY_COMMITTED
public static final int DONE_APPLY
public static final int ERROR_APPLY
public static final int ERROR_APPLY_COMMITTED
public static final int ACTIVE_ACTIVATE
public static final int ACTIVE_ACTIVATE_SWITCH_PREPARED
public static final int DONE_ACTIVATE
public static final int ERROR_ACTIVATE
public static final int ACTIVE_STOP
public static final int DONE_STOP
public static final int ERROR_STOP
public static final int ACTIVE_CANCEL
public static final int DONE_CANCEL
public static final int ERROR_CANCEL
public static final int ACTIVE_ROLLBACK
public static final int DONE_ROLLBACK
public static final int ERROR_ROLLBACK
public static final int SET_AGENT_STATUS
public static final int SET_CLUSTER_DESTINATIONS
public static final int SWITCH_DATASTORES
public static final int ERROR_SWITCH
public static final int FIRST_APPLY_STAGE
public static final int SECOND_APPLY_STAGE
public static final int VERIFY_FILE
public static final int VERIFY_FILE_ERROR
public static final int VERIFY_FILE_SUCCESS
public java.lang.String mDeploymentServerInitialLiveDataStore
public void setClusterStatus(atg.deployment.common.ClusterStatus pClusterStatus)
pClusterStatus
- public atg.deployment.common.ClusterStatus getClusterStatus()
public void setLastDeployedClusterID(java.lang.String pLastDeployedClusterID)
pLastDeployedClusterID
- public java.lang.String getLastDeployedClusterID()
public void setTarget(java.lang.String pTarget)
pTarget
- new value to setpublic java.lang.String getTarget()
public void setSwitchable(boolean pSwitchable)
pSwitchable
- new value to setpublic boolean isSwitchable()
public void setSwitchablePaths(java.lang.String[] pSwitchablePaths)
pSwitchablePaths
- new value to setpublic java.lang.String[] getSwitchablePaths()
public void setLiveDatastores(java.lang.String[] pLiveDatastores)
pLiveDatastores
- new value to setpublic java.lang.String[] getLiveDatastores()
public void setState(int pState)
pState
- new value to setpublic int getState()
public java.lang.String getStateString()
public java.lang.String getUserStateString(java.util.Locale pLocale)
public java.lang.String getUserStateString()
public long getStateTimestamp()
public java.util.Date getStateTimestampAsDate()
public int getPreviousState()
public void setAssetDestinations(java.util.Map pDestinations)
public java.util.Map getAssetDestinations()
public java.util.Collection getFailureMessages()
public void setFailureMessages(java.util.Collection pFailureMessages)
public java.util.Collection getAutoRollbackFailureMessages()
public void setAutoRollbackFailureMessages(java.util.Collection pFailureMessages)
public void setSelectiveCacheInvalidationEvents(atg.adapter.gsa.SelectiveCacheInvalidationEvent[] pSelectiveCacheInvalidationEvents)
SelectiveCacheInvalidationEvents
pSelectiveCacheInvalidationEvents
- new value to setpublic atg.adapter.gsa.SelectiveCacheInvalidationEvent[] getSelectiveCacheInvalidationEvents()
selectiveCacheInvalidationEvents
selectiveCacheInvalidationEvents
public void addFailureMessage(boolean pIsRollback, java.lang.String pMessage, java.lang.String pStackTrace, java.util.Date pFailureTime, java.lang.String pSeverity, java.lang.String pAction, java.lang.String pItemDesc, java.lang.String pItemId, java.lang.String pFilePath, java.lang.String pFileId)
public java.lang.String getErrorMessage()
public java.lang.String getErrorMessage(java.util.Locale pLocale)
public void setErrorMsgResourceKey(java.lang.String pErrorMsgResourceKey)
All of deployment uses the same ResouceBundle and so no bundle is ever specified here.
pErrorMsgResourceKey
- new value to setpublic java.lang.String getErrorMsgResourceKey()
All of deployment uses the same ResouceBundle and so no bundle is ever specified here.
public void setErrorMsgResourceArguments(java.lang.Object[] pErrorMsgResourceArguments)
pErrorMsgResourceArguments
- new value to setpublic void setErrorMsgResourceArguments(java.lang.Object pArg1)
public void setErrorMsgResourceArguments(java.lang.Object pArg1, java.lang.Object pArg2)
public void setErrorMsgResourceArguments(java.lang.Object pArg1, java.lang.Object pArg2, java.lang.Object pArg3)
public void setErrorMsgResourceArguments(java.lang.Object pArg1, java.lang.Object pArg2, java.lang.Object pArg3, java.lang.Object pArg4)
public void setErrorMsgResourceArguments(java.lang.Object pArg1, java.lang.Object pArg2, java.lang.Object pArg3, java.lang.Object pArg4, java.lang.Object pArg5)
public java.lang.Object[] getErrorMsgResourceArguments()
public void setErrorCausedByException(java.lang.Throwable pErrorCausedByException)
pErrorCausedByException
- new value to setpublic java.lang.Throwable getErrorCausedByException()
public void setUseAgentErrorMsgResourceKey(boolean pUseAgentErrorMsgResourceKey)
pUseAgentErrorMsgResourceKey
- public boolean getUseAgentErrorMsgResourceKey()
public void setAffectedItemTypes(java.util.Map pAffectedItemTypes)
public java.util.Map getAffectedItemTypes()
public void addAffectedItemType(java.lang.String pRepository, java.lang.String pItemType)
public void removeAffectedItemTypes(java.lang.String pRepository)
public void setAffectedRepositories(java.util.Set pAffectedRepositories)
public java.util.Set getAffectedRepositories()
public void addAffectedRepository(java.lang.String pAffectedRepository)
public void removeAffectedRepository(java.lang.String pAffectedRepository)
public void setDeploymentID(java.lang.String pDeploymentID)
pDeploymentID
- new value to setpublic java.lang.String getDeploymentID()
public long getDeploymentBeginTimestampInternal()
public void setDeploymentBeginTimestamp(long pDeploymentBeginTimestamp)
pDeploymentBeginTimestamp
- new value to setpublic long getDeploymentBeginTimestamp()
public java.util.Date getDeploymentBeginTimestampAsDate()
public void setDeploymentLastBeginTimestamp(long pDeploymentLastBeginTimestamp)
pDeploymentLastBeginTimestamp
- new value to setpublic long getDeploymentLastBeginTimestamp()
public java.util.Date getDeploymentLastBeginTimestampAsDate()
public void setDeploymentLastExecutionTime(long pDeploymentLastExecutionTime)
pDeploymentLastExecutionTime
- new value to setpublic long getDeploymentLastExecutionTime()
public void setDeploymentTotalExecutionTime(long pDeploymentTotalExecutionTime)
pDeploymentTotalExecutionTime
- new value to setpublic long getDeploymentTotalExecutionTime()
public void setDeploymentType(int pDeploymentType)
pDeploymentType
- new value to setpublic int getDeploymentType()
public boolean isDeploymentFull()
public void setAbsoluteFullDeployment(boolean pAbsoluteFullDeployment)
pAbsoluteFullDeployment
- new value to setpublic boolean isAbsoluteFullDeployment()
public boolean isDeploymentIncremental()
public void setDeploymentMode(int pDeploymentMode)
pDeploymentMode
- new value to setpublic int getDeploymentMode()
public void setDeploymentRevert(boolean pDeploymentRevert)
pDeploymentRevert
- new value to setpublic boolean isDeploymentRevert()
public void setDeploymentInitial(boolean pDeploymentInitial)
pDeploymentInitial
- new value to setpublic boolean isDeploymentInitial()
public void setDeploymentStandard(boolean pDeploymentStandard)
pDeploymentStandard
- new value to setpublic boolean isDeploymentStandard()
public void setDeploymentBack(boolean pDeploymentBack)
pDeploymentBack
- new value to setpublic boolean isDeploymentBack()
public void setDeploymentOneOff(boolean pDeploymentOneOff)
pDeploymentOneOff
- Determines whether or not this is a deployment to a "one off" target.public boolean isDeploymentOneOff()
public void setUsingDirectSQLReplication(boolean pUsingDirectSQLReplication)
pUsingDirectSQLReplication
- Determines whether or not to use direct SQL deployment.public boolean isUsingDirectSQLReplication()
public void setDeploymentServer(java.lang.String pDeploymentServer)
pDeploymentServer
- new value to setpublic java.lang.String getDeploymentServer()
public void setDeploymentCreateInitiator(java.lang.String pDeploymentCreateInitiator)
pDeploymentCreateInitiator
- new value to setpublic java.lang.String getDeploymentCreateInitiator()
public void setDeploymentStopInitiator(java.lang.String pDeploymentStopInitiator)
pDeploymentStopInitiator
- new value to setpublic java.lang.String getDeploymentStopInitiator()
public void setDeploymentDeleteInitiator(java.lang.String pDeploymentDeleteInitiator)
pDeploymentDeleteInitiator
- new value to setpublic java.lang.String getDeploymentDeleteInitiator()
public void setDeploymentAgentInitialLiveDataStore(java.lang.String pDeploymentAgentInitialLiveDataStore)
pDeploymentLiveDataStore
- new value to setpublic java.lang.String getDeploymentAgentInitialLiveDataStore()
public void setDeploymentCommitted(boolean pDeploymentCommitted)
pDeploymentCommitted
- new value to setpublic boolean isDeploymentCommitted()
public void setDeploymentSwitched(boolean pDeploymentSwitched)
pDeploymentSwitched
- new value to setpublic boolean isDeploymentSwitched()
public void setDeploymentTargetSwitched(boolean pDeploymentTargetSwitched)
public boolean isDeploymentTargetSwitched()
public void setSelectiveCacheInvalidationEnabled(boolean pSelectiveCacheInvalidationEnabled)
public boolean isSelectiveCacheInvalidationEnabled()
public void setDeploymentRollback(boolean pDeploymentRollback)
pDeploymentRollback
- new value to setpublic boolean isDeploymentRollback()
public void setDeploymentRollbackInitiator(java.lang.String pDeploymentRollbackInitiator)
pDeploymentRollbackInitiator
- new value to setpublic java.lang.String getDeploymentRollbackInitiator()
public void setTransferCompleteFirstPhaseSuccess(boolean pTransferCompleteFirstPhaseSuccess)
public boolean isTransferCompleteFirstPhaseSuccess()
public void setTransferCompleteSecondPhaseSuccess(boolean pTransferCompleteSecondPhaseSuccess)
public boolean isTransferCompleteSecondPhaseSuccess()
public void setDeploymentFirstPass(boolean pDeploymentFirstPass)
public boolean isDeploymentFirstPass()
public int getDeploymentAgentLocalPort()
public void setDeploymentAgentLocalPort(int pDeploymentAgentLocalPort)
deploymentAgentLocalPort
- The agent's FileDeploymentServer local portpublic void addDeploymentAgentSwitchableVFS(java.lang.String pSwitchableVFS)
pSwitchableVFS
- A switchable VFSpublic java.util.Collection getDeploymentAgentSwitchableVFS()
public void setDeploymentAgentSwitchableVFS(java.util.Collection pSwitchableVFSs)
pSwitchableVFSs
- Collection of switchable VFSspublic int getDeploymentStrictFileOps()
public void setDeploymentStrictFileOps(int pDeploymentStrictFileOps)
public int getDeploymentStrictRepoOps()
public void setDeploymentStrictRepoOps(int pDeploymentStrictRepoOps)
public boolean isDeploymentAutoRollback()
public void setDeploymentAutoRollback(boolean pDeploymentAutoRollback)
public java.lang.String getDeploymentServerInitialLiveDataStore()
public void setDeploymentServerInitialLiveDataStore(java.lang.String pDeploymentServerInitialLiveDataStore)
public int getLastCompletedStage()
public void setLastCompletedStage(int pLastCompletedStage)
public java.lang.String getTargetSnapshotID()
public void setTargetSnapshotID(java.lang.String pTargetSnapshotID)
public java.lang.String getDeploymentToSnapshot()
public java.lang.String getDeploymentFromSnapshot()
public java.lang.String[] getDeploymentProjectIDs()
public java.lang.String[] getPrerequisiteDeploymentProjectIDs()
public java.lang.String getDeployedSnapshot()
public long getDeployedSnapshotTimestamp()
public boolean isStateError()
public boolean isStateActive()
public boolean isStateDone()
public boolean isStateInterruptable()
A deployment can only be interrupted if the deployment is in certain states, e.g. a deployment that is in an error state cannot be interrupted by an event.
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String stateToString(int pStateCode)
public static java.lang.String stateToString(int pStateCode, java.util.Locale pLocale)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException