public class DeploymentMessage extends Exchange
Modifier and Type | Field and Description |
---|---|
static int |
ABORT |
static int |
DEPLOY
These constants correspond to the ExchangeSubType
|
static int |
STATUS |
Modifier | Constructor and Description |
---|---|
protected |
DeploymentMessage()
The null constructor for the DeploymnetMessage
|
protected |
DeploymentMessage(java.lang.String jobIdentifier,
Operation operation,
java.lang.String respondTo)
Creates a deployment message based on the specified parameters.
|
protected |
DeploymentMessage(java.lang.String jobIdentifier,
java.lang.String taskIdentifier,
int exchangeSubType,
int conditionFlag,
java.lang.String description)
Creates a deployment response, to a previously issued request.
|
protected |
DeploymentMessage(java.lang.String jobIdentifier,
java.lang.String taskIdentifier,
java.lang.String respondTo,
int exchangeSubType)
Creates a DeploymentMessage that is a request for either getting the
STATUS or ABORTing a previously deployment operation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName() |
java.lang.String |
getJobIdentifier() |
Operation |
getOperation() |
java.lang.String |
getTaskIdentifier() |
boolean |
isValidExchangeSubType()
Checks to see if the exchange sub-type in the reconstructed exchange is a
valid one.
|
byte[] |
marshallExchangeSpecificElements()
This method is utilized by the derived classes to marshall (or serialize)
elements that are specific to the derived class.
|
java.lang.String |
toString() |
void |
unmarshallExchangeSpecificElements(byte[] exchangeSpecificBytes)
This method is utilized by the derived classes to reconstruct elements
that are specific to the derived class.
|
getBytes, getConditionFlag, getDescription, getExchangeSubType, getExchangeType, getIdentifier, getRespondTo, getTimestamp, isRequest, isResponse, reconstruct, setConditionFlag, setDescription, setExchangeSubType, setExchangeType, setIdentifier, setRequest, setRespondTo, setResponse, setTimestamp
public static final int DEPLOY
public static final int STATUS
public static final int ABORT
protected DeploymentMessage()
protected DeploymentMessage(java.lang.String jobIdentifier, Operation operation, java.lang.String respondTo) throws DeploymentException
jobIdentifier
- The ID to be associated with the deploymentoperation
- The operation being deployedrespondTo
- The stream over which responses need to be sent.DeploymentException
- If problems are encountered with the specified parameters, or
if any of them are NULL.protected DeploymentMessage(java.lang.String jobIdentifier, java.lang.String taskIdentifier, java.lang.String respondTo, int exchangeSubType) throws DeploymentException
jobIdentifier
- The ID to be associated with the deploymenttaskIdentifier
- The task identifier that was assigned to one of the
constituent tasks that comprises the system-wide deployment.respondTo
- The stream over which responses need to be sent.exchangeSubType
- This should be either the STATUS or ABORT exchange subTypes.DeploymentException
- If problems are encountered with the specified parameters, or
if any of them are NULL or if the exchangeSubType is
something other than DeploymentMessage.STATUS or
DeploymentMessage.ABORTprotected DeploymentMessage(java.lang.String jobIdentifier, java.lang.String taskIdentifier, int exchangeSubType, int conditionFlag, java.lang.String description) throws DeploymentException
jobIdentifier
- The ID to be associated with the deploymenttaskIdentifier
- The task identifier that was assigned to one of the
constituent tasks that comprises the system-wide deployment.exchangeSubType
- Indicates whether this is a response to a previously issued
DEPLOY, STATUS or ABORTconditionFlag
- Indicates the status of processing the previously issued
request.description
- A detailed description or reason for the responseDeploymentException
public java.lang.String getJobIdentifier()
public Operation getOperation()
public java.lang.String getClassName()
public java.lang.String getTaskIdentifier()
public byte[] marshallExchangeSpecificElements() throws java.io.IOException, MarshallingException
Exchange
marshallExchangeSpecificElements
in class Exchange
java.io.IOException
- If there are IO problems while performing this operation.MarshallingException
- If there are Marshalling problems while performing this
operation.public void unmarshallExchangeSpecificElements(byte[] exchangeSpecificBytes) throws java.io.IOException, MarshallingException
Exchange
unmarshallExchangeSpecificElements
in class Exchange
exchangeSpecificBytes
- The byte[] representation of the derived class.java.io.IOException
- If there are IO problems while performing this operation.MarshallingException
- If there are Marshalling problems while performing this
operation.public java.lang.String toString()
toString
in class java.lang.Object
public boolean isValidExchangeSubType()
Exchange
isValidExchangeSubType
in class Exchange
true
If the exchange subType is a valid one, or
false
otherwise.