|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.deployment.server.AgentRef
public class AgentRef
The server-side reference to a remote deployment agent. The server agent-ref has key information about the deployment for the server and houses the actual transport implementation for communicating with the agent. Though the Target object will most likely be all that is required, the AgentRef reveals a finer granularity of information about the target.
The AgentRef contains information from the topology definition file for this agent:
The methods getState() and getStatus() provide information on the specific agent whereas Target.getStatus() combines the statuses returned from a list of agents.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary | |
---|---|
Status |
abortApply(java.lang.String pDeploymentID)
Tells the agent to abort the manifest application. |
Status |
applyManifest(java.lang.String pDeploymentID,
boolean pFirstApply,
java.util.Map pAssetDestinations)
Tells the agent to deploy the prepared manifest. Note that this method will return before the deployment is finished. |
Status |
cancelDeployment(java.lang.String pDeploymentID)
Tells the agent to cancel the deployment. |
Status |
deleteManifest(java.lang.String pManifestID)
Deletes the manifest from the agent. |
Status |
doneCreate(java.lang.String pDeploymentID,
java.util.Map pAffectedTypes)
Notifies the agent of the affected item types for a particular deployment via a Map with a key of affected repository path names to a Set value of affected item types. |
java.util.Collection |
getAllClusterStatus()
Wrapper call to the AgentTransport for this agent. |
java.lang.String |
getClusterID()
|
Status |
getCurrentStatus()
Wrapper call to AgentTransport.getStatus() for this agent. |
java.util.Map |
getDestinationMap()
Mapping from source VFS destination to target VFS destination. |
java.lang.String[] |
getExcludeAssetDestinations()
Specific asset destinations this agent is not to deploy. |
java.lang.String |
getId()
Unique id of this deployment agent. |
java.lang.String[] |
getIncludeAssetDestinations()
Specific asset destinations this agent is to deploy. |
java.lang.String |
getName()
Name of this deployment agent. |
java.lang.String[] |
getPrincipalAssets()
Asset types which this agent is responsible for deploying. |
int |
getState()
Wrapper call to the AgentTransport for this agent. |
Status |
getStatus()
Wrapper call to AgentTransport.getStatus(clusterID) for this agent. |
int |
getTransactionSize()
The number of transactions to batch together during the agent's apply phase. |
java.lang.String |
getTransportType()
Returns the transport type used by this agent, the same type used in the XML topology definition file. |
java.lang.String |
getTransportURI()
|
boolean |
hasDeploymentResponsibilities()
Returns whether or not this Agent has deployment responsibilities. |
boolean |
initializeTransport()
If the transport failed to start up properly more attempts can be made until the transport starts. |
Status |
installManifest(java.lang.String pDeploymentID,
atg.deployment.manifest.Manifest pManifest)
Transfers the given manifest to the remote deployment agent. |
Status |
loadManifest(java.lang.String pDeploymentID,
java.lang.String pManifestID)
Loads the specified manifest into the agent for the deployment operation. |
java.util.List |
mapDestinations(java.util.List pDestinations)
Maps any destinations that change name from the source-side name to the target-side name |
java.util.Map |
mapDestinations(java.util.Map pDestinations)
Maps any destinations that change name from the source-side name to the target-side name. |
java.lang.String[] |
mapDestinations(java.lang.String[] pDestinations)
Maps any destinations that change name from the source-side name to the target-side name |
Status |
recoverAgent(java.lang.String pDeploymentID,
java.util.Map pRecoverInfo)
Recover the agent for the deployment. |
boolean |
reinitializeTransport()
Destroys the current transport and initializes a new one. |
boolean |
reinitializeTransport(Status pErrorStatus)
Destroys the current transport and initializes a new one. |
Status |
setAgentStatus(java.lang.String pDeploymentID,
java.util.Map pToStatus)
Sets the agent's Status remotely from the Publishing server to the specified Status |
Status |
setClusterDestination(java.util.Set pClusterDestinations)
|
void |
setClusterID(java.lang.String pClusterID)
|
void |
setTransactionSize(int pTransactionSize)
The number of transactions to batch together during the agent's apply phase. |
Status |
switchDatastores(java.util.List pDatastores)
Requests a switch of the specified datastores on this agent server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Method Detail |
---|
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String[] getPrincipalAssets()
public java.lang.String[] getExcludeAssetDestinations()
public java.lang.String[] getIncludeAssetDestinations()
public java.util.Map getDestinationMap()
public java.lang.String getTransportType()
If the transport could not be initialized, the String BAD is returned.
public void setTransactionSize(int pTransactionSize)
During the deployment application phase many operations will be
performed, e.g. each repository addItem(), udpateItem(), and
removeItem() count as an operation. For those operations that
are transactional the size of the transaction could get large.
This value specifies the maximum number of operations to batch
into a single transaction before committing and starting a new
transaction. Setting this value to zero or less will make the
deployment application use a single transaction. The default
value can be found in
atg.deployment.Constants.APPLY_TRANSACTION_SIZE
.
pTransactionSize
- new value to setpublic int getTransactionSize()
During the deployment application phase many operations will be
performed, e.g. each repository addItem(), udpateItem(), and
removeItem() count as an operation. For those operations that
are transactional the size of the transaction could get large.
This value specifies the maximum number of operations to batch
into a single transaction before commiting and starting a new
transaction. Setting this value to zero or less will make the
deployment application use a single transaction. The default
value can be found in
atg.deployment.Constants.APPLY_TRANSACTION_SIZE
.
public void setClusterID(java.lang.String pClusterID)
pClusterID
- public java.lang.String getClusterID()
public boolean initializeTransport()
Note: This method only tries to start the transport if it did not initially start. To change an agent's transport that is already running the topology XML file needs to be changed and the entire topology re-initialized.
public boolean reinitializeTransport()
public boolean reinitializeTransport(Status pErrorStatus)
public boolean hasDeploymentResponsibilities()
public int getState()
AgentTransport
public Status getStatus()
If the transport has not been initialized (or has been destroyed due to an error), an attempt will be made to initialize the transport. If the transport cannot be initialized, a Status with state set to Status.ERROR_TRANSPORT_UNINSTANTIATED will be returned. When possible an error message will be supplied and available from Status.getErrorMessage().
AgentTransport
public Status getCurrentStatus()
If the transport has not been initialized (or has been destroyed due to an error), an attempt will be made to initialize the transport. If the transport cannot be initialized, a Status with state set to Status.ERROR_TRANSPORT_UNINSTANTIATED will be returned. When possible an error message will be supplied and available from Status.getErrorMessage().
AgentTransport
public java.util.Collection getAllClusterStatus()
AgentTransport
public java.lang.String getTransportURI() throws DeploymentException
DeploymentException
public Status doneCreate(java.lang.String pDeploymentID, java.util.Map pAffectedTypes)
public Status loadManifest(java.lang.String pDeploymentID, java.lang.String pManifestID)
pDeploymentID
- current deployment identifierpManifestID
- identifier for the manifest to be loaded
public Status installManifest(java.lang.String pDeploymentID, atg.deployment.manifest.Manifest pManifest)
The specfic means of transfer are up to the transport implementation, so the manifest is given here on a whole (i.e. the manifest object itself which contains references to the deployment data internally).
pDeploymentID
- identifier for this deploymentpManifest
- the manifest being sent to the agent
public Status applyManifest(java.lang.String pDeploymentID, boolean pFirstApply, java.util.Map pAssetDestinations)
pDeploymentID
- identifier for this deployment
public Status abortApply(java.lang.String pDeploymentID)
This usually happens because another agent in the target has failed.
public Status cancelDeployment(java.lang.String pDeploymentID)
pDeploymentID
- identifier for this deployment
public Status recoverAgent(java.lang.String pDeploymentID, java.util.Map pRecoverInfo)
public Status deleteManifest(java.lang.String pManifestID)
pManifestID
- the ID of the manifest to delete from the agent
public Status setAgentStatus(java.lang.String pDeploymentID, java.util.Map pToStatus)
public Status setClusterDestination(java.util.Set pClusterDestinations)
public Status switchDatastores(java.util.List pDatastores)
public java.util.Map mapDestinations(java.util.Map pDestinations)
public java.lang.String[] mapDestinations(java.lang.String[] pDestinations)
public java.util.List mapDestinations(java.util.List pDestinations)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |