public class DeploymentManager extends SchedulableService implements MessageSink
These actions max be performed by multiple threads. The following parameters control how threads are created. maxThreadSize - The maximum number of threads created for processing threadBatchSize - The ideal number of items per thread
Initially the deployment manager will create threads by assigning "threadBatchSize" items per thread. If that triggers more than "maxThreadSize" threads to be created, then a new batch size will be calculated that limits the number of threads to "maxThreadSize".
By default, maxThreadSize = 10 and threadBatchSize = 5000;
 To trigger a deployment create an object of type RepositoryDeploymentData:
 
 For each item to be added or updated invoke
 RepositoryDeploymentData.addItemForUpdate(). To identify an
 item for delete, invoke
 RepositoryDeploymentData.addItemForDelete() Example: 
  
   RepositoryDeploymentData dd = new RepositoryDeploymentDataImpl(sourceRepository, targetRepository);
   dd.addItemForUpdate(myRepositoryItem);
   dd.addItemForDelete(myOtherRepositoryItem);
   dd.deploy(dd);
 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
protected int | 
mDeleteTransactionBatchSize
DeleteTransactionBatchSize defines the transaction batch size used during
 the delete phase of a deployment. 
 | 
long | 
mLostThreadTimeout  | 
mJobIdSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
DeploymentManager()
Default Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addDeploymentListener(atg.deployment.DeploymentListener pListener)
Allows for a component which implements the DeploymentListener interface to
 be notified as various events occur. 
 | 
void | 
cancel(java.lang.String pDeploymentId,
      boolean pAllowResume)
This method should be called to cancel a deployment. 
 | 
protected javax.servlet.Servlet | 
createAdminServlet()
Creates and returns a new Servlet that will administer this
 service. 
 | 
void | 
deleteDummyReferenceItems()
This method is meant to be exposed in the admin server pages so a user can try to force delete all the
 dummy reference items. 
 | 
java.lang.String | 
deploy(DeploymentData[] pDataArray,
      DeploymentOptions pOptions)
This method starts a new deployment using the data specified in the
 pDataArray parameter. 
 | 
java.lang.String | 
deploy(DeploymentData[] pDataArray,
      DeploymentOptions pOptions,
      java.lang.String pUserDeploymentId)
This method starts a new deployment using the data specified in the
 pDataArray parameter. 
 | 
java.lang.String | 
deploy(DeploymentData pData,
      DeploymentOptions pOptions)
Convenience method to pass in a single DeploymentData object to deploy 
 | 
java.lang.String | 
deploy(DeploymentData pData,
      DeploymentOptions pOptions,
      java.lang.String pUserDeploymentId)
Convenience method to pass in a single DeploymentData object to deploy 
 | 
void | 
deploy(java.lang.String pDeploymentId,
      int pType)
This method is used to resume a previously failed or cancelled deployment. 
 | 
boolean | 
deploymentExists(java.lang.String pDeploymentId)
This method is used to determine if a deployment exists with the given id. 
 | 
void | 
deploymentFailed(java.lang.String pId)
Called by a deployment object to be sure that a local
 event goes out to listeners registered for deployment
 notifications. 
 | 
void | 
doStartService()
The default implementation is to just start our scheduled
 job. 
 | 
void | 
doStopService()
The default implementation is to just stop our scheduled job. 
 | 
atg.service.clustername.ClusterName | 
getClusterNameService()  | 
int | 
getDeleteTransactionBatchSize()
deleteTransactionBatchSize defines the transaction batch size used during
 the delete phase of a deployment. 
 | 
java.util.Comparator<atg.deployment.DeploymentListener> | 
getDeploymentListenerComparator()
An optional java.util.Comparator implementation to sort the configured 
 DeploymentListener implementations, if necessary. 
 | 
java.util.Collection | 
getDeploymentListeners()  | 
DeploymentProgress | 
getDeploymentProgress(java.lang.String pDeploymentId)
Returns an object which contains information about the progress of a deployment. 
 | 
atg.deployment.DeploymentReporter | 
getDeploymentReporter()
Returns a  
DeploymentReporter object
 that can be used to interrogate a deployment
 about succeeded and failed items. | 
Repository | 
getDeploymentRepository()  | 
int | 
getDeploymentShutdownTimeout()  | 
int | 
getLocalDeploymentPhaseCompletePollingInterval()  | 
ClientLockManager | 
getLockManager()  | 
long | 
getLostThreadTimeout()
Returns the number of milliseconds to wait before
 failing the deployment after the main Deployment 
 has found that there are no more worker threads,
 but there are still assets remaining to be deployed. 
 | 
int | 
getMarkerPollingInterval()  | 
long | 
getMaxDeploymentPollingInterval()
Maximum poll interval for dynamically determined polling. 
 | 
int | 
getMaxFailureCount()  | 
int | 
getMaxThreads()  | 
atg.deployment.messaging.DeploymentMessagingSource | 
getMessagingSource()  | 
float | 
getMinPollIntervalPerThousandDeployed()
Minimum polling interval in seconds per thousand items in deployment. 
 | 
int | 
getPhaseCompletePollingInterval()  | 
java.util.Map | 
getRepositoryMappings()  | 
int | 
getServerAliveMessageResponseWaitTime()  | 
int | 
getServerDownIterationDetectionCount()  | 
atg.service.ServerName | 
getServerNameService()  | 
int | 
getThreadBatchSize()  | 
atg.deployment.ThreadFactory | 
getThreadFactory()
Get the factory that can be used to create DeploymentWorkerThread instances. 
 | 
int | 
getThreadSpawnInterval()  | 
int | 
getTransactionBatchSize()  | 
javax.transaction.TransactionManager | 
getTransactionManager()  | 
int | 
getTransientErrorRetryCount()  | 
int | 
getTransientErrorRetryTransactionBatchSize()  | 
VersionManager | 
getVersionManager()  | 
void | 
handleMessage(atg.deployment.messaging.DeploymentMessage pMessage)
This method handles processing the DeploymentMessage object which was
 delivered as part of a JMS message. 
 | 
boolean | 
isAnotherDeploymentRunning()
Returns true if another deployment is running, false otherwise. 
 | 
boolean | 
isAvoidTransactionSuspend()
Returns property avoidTransactionSuspend. 
 | 
java.lang.Boolean | 
isDeploymentCanceled(java.lang.String pDeploymentId)
Whether the deployment has canceled 
 | 
java.lang.Boolean | 
isDeploymentCompleted(java.lang.String pDeploymentId)
Whether the deployment has completed successfully. 
 | 
java.lang.Boolean | 
isDeploymentFailed(java.lang.String pDeploymentId)
Whether the deployment has failed 
 | 
boolean | 
isDeploymentRunning(java.lang.String pDeploymentId)
Returns true if the currently executing deployment's id is pDeploymentId. 
 | 
boolean | 
isDisableDestinationCachesDuringDeploy()  | 
boolean | 
isEnablePurge()  | 
boolean | 
isLoggingFileDebug()  | 
boolean | 
isLoggingItemDebug()  | 
boolean | 
isLoggingPollingDebug()  | 
boolean | 
isLoggingPropertyDebug()  | 
boolean | 
isLoggingThreadDebug()  | 
boolean | 
isOptimizePersistedMarkers()  | 
boolean | 
isPurgeDeploymentData()  | 
boolean | 
isReferenceUpdateCommitOnNewItemType()  | 
boolean | 
isShowReadonlyAdmin()
If component admin should be shown in readonly mode. 
 | 
boolean | 
isStrictFileOperations()  | 
boolean | 
isStrictRepositoryOperations()  | 
boolean | 
isUseDistributedDeployment()  | 
boolean | 
isUseEagerLoadingStrategyForSourceItemPropertyValue()
Returns property useEagerLoadingStrategyForSourceItemPropertyValue. 
 | 
void | 
logDebug(java.lang.String pMessage)
Logs an debug event with the specified message 
 | 
void | 
notifyDeploymentListeners(java.lang.String pDeploymentId,
                         java.lang.String pEvent)
Notifies the deployment listeners of some event 
 | 
void | 
performScheduledTask(Scheduler pScheduler,
                    ScheduledJob pJob)
Called by the scheduler when it is time for this service to perform its
 function. 
 | 
void | 
purgeDataForCompletedDeployments()
This method removes the deployment data and the markers for all completed deployments. 
 | 
void | 
purgeDeploymentData(java.lang.String pDeploymentId,
                   boolean pPurgeDeploymentItem)
This method removes the deployment data and the markers for the completed deployment. 
 | 
void | 
receiveMessage(java.lang.String pPortName,
              javax.jms.Message pMessage)
This is called to notify the component that a Message has arrived through
 the given input port. 
 | 
void | 
removeDeploymentListener(atg.deployment.DeploymentListener pListener)
Removes a DeploymentListener from the deployment listener notification
 collection 
 | 
void | 
restart(java.lang.String pDeploymentId)
This method is used to restart a previously failed or cancelled deployment. 
 | 
void | 
resume(java.lang.String pDeploymentId)
This method is used to resume a previously failed or cancelled deployment. 
 | 
void | 
setAvoidTransactionSuspend(boolean pAvoidTransactionSuspend)
Sets property avoidTransactionSuspend. 
 | 
void | 
setClusterNameService(atg.service.clustername.ClusterName pClusterNameService)  | 
void | 
setDeleteTransactionBatchSize(int pDeleteTransactionBatchSize)
Sets the deleteTransactionBatchSize which defines the transaction batch size used
 during the delete phase of a deployment. 
 | 
void | 
setDeploymentListenerComparator(java.util.Comparator<atg.deployment.DeploymentListener> pDeploymentListenerComparator)
An optional java.util.Comparator implementation to sort the configured 
 DeploymentListener implementations, if necessary. 
 | 
void | 
setDeploymentListeners(java.util.Collection pDeploymentListeners)  | 
void | 
setDeploymentRepository(Repository pDeploymentRepository)  | 
void | 
setDeploymentShutdownTimeout(int pDeploymentShutdownTimeout)  | 
void | 
setDisableDestinationCachesDuringDeploy(boolean pDisableDestinationCachesDuringDeploy)  | 
void | 
setEnablePurge(boolean pEnablePurge)  | 
void | 
setLocalDeploymentPhaseCompletePollingInterval(int pLocalDeploymentPhaseCompletePollingInterval)  | 
void | 
setLockManager(ClientLockManager pLockManager)  | 
void | 
setLoggingFileDebug(boolean pLoggingFileDebug)  | 
void | 
setLoggingItemDebug(boolean pLoggingItemDebug)  | 
void | 
setLoggingPollingDebug(boolean pLoggingPollingDebug)  | 
void | 
setLoggingPropertyDebug(boolean pLoggingPropertyDebug)  | 
void | 
setLoggingThreadDebug(boolean pLoggingThreadDebug)  | 
void | 
setLostThreadTimeout(long pTimeout)
Sets the number of milliseconds to wait before
 failing the deployment after the main Deployment 
 has found that there are no more worker threads,
 but there are still assets remaining to be deployed. 
 | 
void | 
setMarkerPollingInterval(int pMarkerPollingInterval)  | 
void | 
setMaxDeploymentPollingInterval(long pMaxDeploymentPollingInterval)
Maximum poll interval for dynamically determined polling. 
 | 
void | 
setMaxFailureCount(int pMaxFailureCount)  | 
void | 
setMaxThreads(int pMax)
Sets the maximum number of worker threads. 
 | 
void | 
setMessagingSource(atg.deployment.messaging.DeploymentMessagingSource pMessagingSource)  | 
void | 
setMinPollIntervalPerThousandDeployed(float pMinPollIntervalPerThousandDeployed)
Minimum polling interval in seconds per thousand items in deployment. 
 | 
void | 
setOptimizePersistedMarkers(boolean pOptimizePersistedMarkers)  | 
void | 
setPhaseCompletePollingInterval(int pPhaseCompletePollingInterval)  | 
void | 
setPurgeDeploymentData(boolean pPurgeDeploymentData)  | 
void | 
setReferenceUpdateCommitOnNewItemType(boolean pReferenceUpdateCommitOnNewItemType)  | 
void | 
setRepositoryMappings(java.util.Map pRepositoryMappings)  | 
void | 
setServerAliveMessageResponseWaitTime(int pServerAliveMessageResponseWaitTime)  | 
void | 
setServerDownIterationDetectionCount(int pServerDownIterationDetectionCount)  | 
void | 
setServerNameService(atg.service.ServerName pServerNameService)  | 
void | 
setShowReadonlyAdmin(boolean pShowReadonlyAdmin)
Set to true when admin should be readonly. 
 | 
void | 
setStrictFileOperations(boolean pStrictFileOperations)  | 
void | 
setStrictRepositoryOperations(boolean pStrictRepositoryOperations)  | 
void | 
setThreadBatchSize(int pThreadBatchSize)
This parameter determines the maximum number of items a single
 thread is expected to process. 
 | 
void | 
setThreadFactory(atg.deployment.ThreadFactory pThreadFactory)
Set a factory for creating instances of DeploymentWorkerThread class. 
 | 
void | 
setThreadSpawnInterval(int pThreadSpawnInterval)  | 
void | 
setTransactionBatchSize(int pTransactionBatchSize)
The maximum number of items to process before commiting a transaction
 batch. 
 | 
void | 
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)  | 
void | 
setTransientErrorRetryCount(int pTransientErrorRetryCount)  | 
void | 
setTransientErrorRetryTransactionBatchSize(int pTransientErrorRetryTransactionBatchSize)  | 
void | 
setUseDistributedDeployment(boolean pUseDistributedDeployment)  | 
void | 
setUseEagerLoadingStrategyForSourceItemPropertyValue(boolean pUseEagerLoadingStrategyForSourceItemPropertyValue)
Sets property useEagerLoadingStrategyForSourceItemPropertyValue. 
 | 
void | 
setVersionManager(VersionManager pVersionManager)  | 
getJobDescription, getJobId, getJobName, getSchedule, getScheduler, getThreadMethod, getThreadMethodString, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setThreadMethodString, setTransactional, startScheduledJob, stopScheduledJobaddLogListener, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public long mLostThreadTimeout
protected int mDeleteTransactionBatchSize
public void setLostThreadTimeout(long pTimeout)
pTimeout - public long getLostThreadTimeout()
public int getMaxThreads()
public void setMaxThreads(int pMax)
pMax - public void setUseEagerLoadingStrategyForSourceItemPropertyValue(boolean pUseEagerLoadingStrategyForSourceItemPropertyValue)
pUseEagerLoadingStrategyForSourceItemPropertyValue - public boolean isUseEagerLoadingStrategyForSourceItemPropertyValue()
public void setAvoidTransactionSuspend(boolean pAvoidTransactionSuspend)
public boolean isAvoidTransactionSuspend()
public int getTransientErrorRetryCount()
public void setTransientErrorRetryCount(int pTransientErrorRetryCount)
pTransientErrorRetryCount - Sets the property value of the transientErrorRetryCount
          property.public int getMaxFailureCount()
public void setMaxFailureCount(int pMaxFailureCount)
pMaxFailureCount - Sets the property value of the maxFailureCount
          property.public int getThreadBatchSize()
public void setThreadBatchSize(int pThreadBatchSize)
pThreadBatchSize - Sets the value of the threadBatchSize property.public int getDeleteTransactionBatchSize()
public void setDeleteTransactionBatchSize(int pDeleteTransactionBatchSize)
pDeleteTransactionBatchSize - Sets the value of the deleteTransactionBatchSize defines the transaction batch size used during
 the delete phase of a deployment. If 0 or less this property is ignored and
 the TransactionBatchSize property is used. property.public int getTransactionBatchSize()
public void setTransactionBatchSize(int pTransactionBatchSize)
pTransactionBatchSize - Sets the value of the TransactionBatchSize
          property.public int getTransientErrorRetryTransactionBatchSize()
public void setTransientErrorRetryTransactionBatchSize(int pTransientErrorRetryTransactionBatchSize)
pTransientErrorRetryTransactionBatchSize - Sets the property value of the transientErrorRetryTransactionBatchSize
          property.public java.util.Map getRepositoryMappings()
public void setRepositoryMappings(java.util.Map pRepositoryMappings)
pRepositoryMappings - The repositoryMappings to set.public boolean isUseDistributedDeployment()
public void setUseDistributedDeployment(boolean pUseDistributedDeployment)
pUseDistributedDeployment - the useDistributedDeployment to setpublic int getPhaseCompletePollingInterval()
public void setPhaseCompletePollingInterval(int pPhaseCompletePollingInterval)
pPhaseCompletePollingInterval - Sets the property value of the
          phaseCompletePollingInterval property.public int getLocalDeploymentPhaseCompletePollingInterval()
public void setLocalDeploymentPhaseCompletePollingInterval(int pLocalDeploymentPhaseCompletePollingInterval)
pLocalDeploymentPhaseCompletePollingInterval - the localDeploymentPhaseCompletePollingInterval to setpublic float getMinPollIntervalPerThousandDeployed()
public void setMinPollIntervalPerThousandDeployed(float pMinPollIntervalPerThousandDeployed)
pMinPollIntervalPerThousandDeployed - the MinPollIntervalPerThousandDeployed to setpublic long getMaxDeploymentPollingInterval()
public void setMaxDeploymentPollingInterval(long pMaxDeploymentPollingInterval)
pMaxDeploymentPollingInterval - Sets the property value of the
          MaxDeploymentPollingInterval property.public int getMarkerPollingInterval()
public void setMarkerPollingInterval(int pMarkerPollingInterval)
pMarkerPollingInterval - Sets the property value of the
          markerPollingInterval property.public int getThreadSpawnInterval()
public void setThreadSpawnInterval(int pThreadSpawnInterval)
pThreadSpawnInterval - The threadSpawnInterval to set.public int getServerDownIterationDetectionCount()
public void setServerDownIterationDetectionCount(int pServerDownIterationDetectionCount)
pServerDownIterationDetectionCount - Sets the value of the serverDownIterationDetectionCount property.public int getServerAliveMessageResponseWaitTime()
public void setServerAliveMessageResponseWaitTime(int pServerAliveMessageResponseWaitTime)
pServerAliveMessageResponseWaitTime - Sets the value of the serverAliveMessageResponseWaitTime property.public int getDeploymentShutdownTimeout()
public void setDeploymentShutdownTimeout(int pDeploymentShutdownTimeout)
pDeploymentShutdownTimeout - Sets the value of the DeploymentShutdownTimeout property.public boolean isStrictRepositoryOperations()
public void setStrictRepositoryOperations(boolean pStrictRepositoryOperations)
pStrictRepositoryOperations - Sets the value of the StrictRepositoryOperations property.public boolean isStrictFileOperations()
public void setStrictFileOperations(boolean pStrictFileOperations)
pStrictFileOperations - Sets the value of the StrictFileOperations property.public boolean isEnablePurge()
public void setEnablePurge(boolean pEnablePurge)
pEnablePurge - Sets the value of the enablePurge property.public java.util.Collection getDeploymentListeners()
public void setDeploymentListeners(java.util.Collection pDeploymentListeners)
pDeploymentListeners - Sets the value of the deploymentListeners
          property.public void addDeploymentListener(atg.deployment.DeploymentListener pListener)
pListener - a DeploymentListener to notifypublic void removeDeploymentListener(atg.deployment.DeploymentListener pListener)
pListener - the DeploymentListener to removepublic java.util.Comparator<atg.deployment.DeploymentListener> getDeploymentListenerComparator()
public void setDeploymentListenerComparator(java.util.Comparator<atg.deployment.DeploymentListener> pDeploymentListenerComparator)
public boolean isPurgeDeploymentData()
public void setPurgeDeploymentData(boolean pPurgeDeploymentData)
pPurgeDeploymentData - Sets the property value of the
          purgeDeploymentData property.public atg.deployment.DeploymentReporter getDeploymentReporter()
DeploymentReporter object
 that can be used to interrogate a deployment
 about succeeded and failed items.public Repository getDeploymentRepository()
public void setDeploymentRepository(Repository pDeploymentRepository)
pDeploymentRepository - Sets the property value of the
          deploymentRepository property.public javax.transaction.TransactionManager getTransactionManager()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
pTransactionManager - Sets the property value of the
          transactionManager property.public ClientLockManager getLockManager()
public void setLockManager(ClientLockManager pLockManager)
pLockManager - Sets the property value of the lockManager property.public atg.deployment.messaging.DeploymentMessagingSource getMessagingSource()
public void setMessagingSource(atg.deployment.messaging.DeploymentMessagingSource pMessagingSource)
pMessagingSource - Sets the property value of the messagingSource
          property.public atg.service.ServerName getServerNameService()
public void setServerNameService(atg.service.ServerName pServerNameService)
pServerName - Sets the value of the serverNameService property.public atg.service.clustername.ClusterName getClusterNameService()
public void setClusterNameService(atg.service.clustername.ClusterName pClusterNameService)
pClusterName - Sets the value of the ClusterNameService property.public VersionManager getVersionManager()
public void setVersionManager(VersionManager pVersionManager)
pVersionManager - Sets the value of the versionManager property. This property is only set if the
          Publishing.base module is running.public atg.deployment.ThreadFactory getThreadFactory()
public void setThreadFactory(atg.deployment.ThreadFactory pThreadFactory)
pThreadFactory - public boolean isShowReadonlyAdmin()
public void setShowReadonlyAdmin(boolean pShowReadonlyAdmin)
pShowReadonlyAdmin - public boolean isReferenceUpdateCommitOnNewItemType()
public void setReferenceUpdateCommitOnNewItemType(boolean pReferenceUpdateCommitOnNewItemType)
pReferenceUpdateCommitOnNewItemType - the referenceUpdateCommitOnNewItemType to setpublic boolean isDisableDestinationCachesDuringDeploy()
public void setDisableDestinationCachesDuringDeploy(boolean pDisableDestinationCachesDuringDeploy)
pDisableDestinationCachesDuringDeploy - Sets the value of the DisableDestinationCachesDuringDeploy property.public boolean isOptimizePersistedMarkers()
public void setOptimizePersistedMarkers(boolean pOptimizePersistedMarkers)
pOptimizePersistedMarkers - the optimizePersistedMarkers to setpublic java.lang.String deploy(DeploymentData[] pDataArray, DeploymentOptions pOptions, java.lang.String pUserDeploymentId) throws atg.deployment.DistributedDeploymentException
pDataArray - an array of DeploymentData objects, each which specify
          the source, destination, and data to be deployedpOptions - deployment specific options used to control various aspects
          of deploymentatg.deployment.DistributedDeploymentExceptionpublic java.lang.String deploy(DeploymentData[] pDataArray, DeploymentOptions pOptions) throws atg.deployment.DistributedDeploymentException
pDataArray - an array of DeploymentData objects, each which specify
          the source, destination, and data to be deployedpOptions - deployment specific options used to control various aspects
          of deploymentatg.deployment.DistributedDeploymentExceptionpublic java.lang.String deploy(DeploymentData pData, DeploymentOptions pOptions, java.lang.String pUserDeploymentId) throws atg.deployment.DistributedDeploymentException
pData - a DeploymentData objectpOptions - deployment specific options used to control various aspects
          of deploymentatg.deployment.DistributedDeploymentExceptionpublic java.lang.String deploy(DeploymentData pData, DeploymentOptions pOptions) throws atg.deployment.DistributedDeploymentException
pData - a DeploymentData objectpOptions - deployment specific options used to control various aspects
          of deploymentatg.deployment.DistributedDeploymentExceptionpublic void resume(java.lang.String pDeploymentId)
            throws atg.deployment.DistributedDeploymentException
pDeploymentId - The deployment id of the deployment to resume.atg.deployment.DistributedDeploymentExceptionpublic void restart(java.lang.String pDeploymentId)
             throws atg.deployment.DistributedDeploymentException
pDeploymentId - The deployment id of the deployment to restart.atg.deployment.DistributedDeploymentExceptionpublic void deploy(java.lang.String pDeploymentId,
                   int pType)
            throws atg.deployment.DistributedDeploymentException
pDeploymentId - The deployment id of the deployment to resume.pType - either Deployment.RESUME or Deployment.RESTARTatg.deployment.DistributedDeploymentExceptionpublic boolean deploymentExists(java.lang.String pDeploymentId)
pDeploymentId - The deployment id of the deployment.public boolean isDeploymentRunning(java.lang.String pDeploymentId)
public void cancel(java.lang.String pDeploymentId,
                   boolean pAllowResume)
            throws atg.deployment.DistributedDeploymentException
pDeploymentId - the deployment id of a running deploymentpAllowResume - if true, does not clean up deployment data and allows
          for later resume. If false, cleans up all deployment data and
          deployment id is no longer valid.DistributedDeploymentException - if any number of errors occurs, the source
           exception will be wrapped in the DeploymentException if another
           exception was caught in this methodpublic DeploymentProgress getDeploymentProgress(java.lang.String pDeploymentId)
pDeploymentId - the id of a deployment to get progress information forpublic java.lang.Boolean isDeploymentCompleted(java.lang.String pDeploymentId)
pDeploymentId - the id of a deployment to get progress information forpublic java.lang.Boolean isDeploymentFailed(java.lang.String pDeploymentId)
pDeploymentId - the id of a deployment to get progress information forpublic java.lang.Boolean isDeploymentCanceled(java.lang.String pDeploymentId)
pDeploymentId - the id of a deployment to get progress information forpublic boolean isAnotherDeploymentRunning()
                                   throws RepositoryException
RepositoryException - if a repository error occurspublic void receiveMessage(java.lang.String pPortName,
                           javax.jms.Message pMessage)
                    throws javax.jms.JMSException
receiveMessage in interface MessageSinkjavax.jms.JMSExceptionpublic void handleMessage(atg.deployment.messaging.DeploymentMessage pMessage)
                   throws RepositoryException,
                          atg.deployment.DistributedDeploymentException
pMessage - the DeploymentMessage to processjavax.jms.JMSException - if any exceptions occur, they are wrapped in a
           JMSExceptionRepositoryExceptionatg.deployment.DistributedDeploymentExceptionpublic void deleteDummyReferenceItems()
public void purgeDataForCompletedDeployments()
public void purgeDeploymentData(java.lang.String pDeploymentId,
                                boolean pPurgeDeploymentItem)
pDeploymentId - the id of the deployment to purgepPurgeDeploymentItem - if true removes the deployment repository item also, if false
        keeps the deployment repository item in the database for referencepublic void deploymentFailed(java.lang.String pId)
pId - public void notifyDeploymentListeners(java.lang.String pDeploymentId,
                                      java.lang.String pEvent)
public void logDebug(java.lang.String pMessage)
GenericServicelogDebug in interface atg.core.logging.LogginglogDebug in interface ApplicationLogginglogDebug in class GenericServicepublic boolean isLoggingThreadDebug()
public void setLoggingThreadDebug(boolean pLoggingThreadDebug)
public boolean isLoggingItemDebug()
public void setLoggingItemDebug(boolean pLoggingItemDebug)
public boolean isLoggingPropertyDebug()
public void setLoggingPropertyDebug(boolean pLoggingPropertyDebug)
public boolean isLoggingPollingDebug()
public void setLoggingPollingDebug(boolean pLoggingPollingDebug)
public boolean isLoggingFileDebug()
public void setLoggingFileDebug(boolean pLoggingFileDebug)
public void doStartService()
                    throws ServiceException
SchedulableServicedoStartService in class SchedulableServiceServiceException - if an error occurred during the operationpublic void doStopService()
                   throws ServiceException
SchedulableServicedoStopService in class SchedulableServiceServiceException - if an error occurred during the operationpublic void performScheduledTask(Scheduler pScheduler, ScheduledJob pJob)
SchedulableServiceperformScheduledTask in interface SchedulableperformScheduledTask in class SchedulableServicepScheduler - the scheduler managing this jobpJob - the scheduled job associated with this serviceprotected javax.servlet.Servlet createAdminServlet()
createAdminServlet in class GenericService