public interface AgentTransport
This interface is primarily for the server side as the server needs to make these calls to the agent. The calls made from server-side transport to agent-side transport are their own business. The agent-side transport is responsible for making calls to DeploymentAgent so this interface is pretty much only for the server.
As these calls do not allow for exceptions to be thrown, any transport/network level errors should be noted by returning Status or state codes of Status.ERROR_TRANSPORT. This is the indicator the server code is looking to identify a failed transport that needs to be reinitialized.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
void |
close()
The DeploymentServer allows for live reinitializations of the
deployment topology, which picks up all changes to the topology
XML file, including AgentTransport changes.
|
java.util.Collection |
getAllClusterStatus()
Returns a Collection of all the ClusterStatus objects that exist
for this Agent.
|
int |
getState()
Returns the "short" status of the agent, specifically just the
state code used to identify the agent's current state.
|
Status |
getStatus()
Returns the full status of the agent.
|
Status |
getStatus(java.lang.String pClusterID)
Returns the status of the agent for the specifiec clusterID.
|
java.lang.String |
getTransportType()
Returns the transport type, the same type used in the XML
topology definition file.
|
Status |
sendCommand(java.util.Map pCommandPacket)
Sends a deployment command packet to the deployment agent.
|
static final java.lang.String CLASS_VERSION
java.lang.String getTransportType()
If the transport could not be initialized, the String BAD is returned.
int getState()
Status.ERROR_TRANSPORT is returned on all transport errors.
Status
Status getStatus()
A Status object with the state set to Status.ERROR_TRANSPORT is returned on all transport errors. When possible, an appropriate error message should be supplied in the Status property 'errorMessage'.
Status
Status getStatus(java.lang.String pClusterID)
A Status object with the state set to Status.ERROR_TRANSPORT is returned on all transport errors. When possible, an appropriate error message should be supplied in the Status property 'errorMessage'.
Status
,
ClusterStatus
java.util.Collection getAllClusterStatus()
During transport errors, null is returned.
ClusterStatus
Status sendCommand(java.util.Map pCommandPacket)
Deployment command packets are simply Maps of serializable data. They may contain Strings, Numeric types, arrays of bytes, or Status objects.
All information necessary for the deployment command is contained within the command packet. The AgentTransport is expected to transport the packet to the remote agent server and call DeploymentAgent.handleCommand() with the packet. The deployment agent returns a Status object which is the result of the deployment command and must be returned by this method.
void close() throws atg.deployment.common.DeploymentException
atg.deployment.common.DeploymentException