public class DeploymentMessage extends Exchange
Modifier and Type | Field and Description |
---|---|
static int |
ABORT |
static int |
DEPLOY |
static int |
STATUS |
Modifier | Constructor and Description |
---|---|
protected |
DeploymentMessage()
The null constructor for the DeploymnetMessage
|
protected |
DeploymentMessage(String jobIdentifier,
Operation operation,
String respondTo)
Creates a deployment message based on the specified parameters.
|
protected |
DeploymentMessage(String jobIdentifier,
String taskIdentifier,
int exchangeSubType,
int conditionFlag,
String description)
Creates a deployment response, to a previously issued request.
|
protected |
DeploymentMessage(String jobIdentifier,
String taskIdentifier,
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 |
---|---|
String |
getClassName() |
String |
getJobIdentifier() |
Operation |
getOperation() |
String |
getTaskIdentifier() |
boolean |
isValidExchangeSubType()
Checks to see if the exchange sub-type in the reconstructed exchange is a
valid one.
|
void |
marshallExchangeSpecificElements(ds.funnel.data.format.FormatWriter mFormat)
This method is utilized by the derived classes to marshall (or serialize)
elements that are specific to the derived class.
|
String |
toString() |
void |
unmarshallExchangeSpecificElements(ds.funnel.data.format.FormatReader mFormat)
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(String jobIdentifier, Operation operation, 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(String jobIdentifier, String taskIdentifier, 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(String jobIdentifier, String taskIdentifier, int exchangeSubType, int conditionFlag, 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 String getJobIdentifier()
public Operation getOperation()
public String getClassName()
public String getTaskIdentifier()
public void marshallExchangeSpecificElements(ds.funnel.data.format.FormatWriter mFormat) throws ds.funnel.data.format.FormatException
Exchange
marshallExchangeSpecificElements
in class Exchange
mFormat
- The buffer formatter to write to.ds.funnel.data.format.FormatException
public void unmarshallExchangeSpecificElements(ds.funnel.data.format.FormatReader mFormat) throws ds.funnel.data.format.FormatException
Exchange
unmarshallExchangeSpecificElements
in class Exchange
mFormat
- The buffer formatter to read from.ds.funnel.data.format.FormatException
public boolean isValidExchangeSubType()
Exchange
isValidExchangeSubType
in class Exchange
true
If the exchange subType is a valid one, or
false
otherwise.Copyright © 2015. All rights reserved.