public class ResourceDiscovery extends Exchange
Modifier | Constructor and Description |
---|---|
protected |
ResourceDiscovery() |
protected |
ResourceDiscovery(int resourceType,
java.lang.String respondTo) |
protected |
ResourceDiscovery(int conditionFlag,
java.lang.String description,
ResourceMetrics resourceMetrics,
java.lang.String respondTo) |
Modifier and Type | Method and Description |
---|---|
ResourceMetrics |
getResourceMetrics() |
int |
getResourceType() |
boolean |
isValidExchangeSubType()
Checks to see if the exchange sub-type in the reconstructed exchange is a
valid one.
|
static void |
main(java.lang.String[] args) |
byte[] |
marshallExchangeSpecificElements()
This method is utilized by the derived classes to marshall (or serialize)
elements that are specific to the derived class.
|
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
protected ResourceDiscovery()
protected ResourceDiscovery(int resourceType, java.lang.String respondTo)
protected ResourceDiscovery(int conditionFlag, java.lang.String description, ResourceMetrics resourceMetrics, java.lang.String respondTo)
public int getResourceType()
public ResourceMetrics getResourceMetrics()
public boolean isValidExchangeSubType()
Exchange
isValidExchangeSubType
in class Exchange
true
If the exchange subType is a valid one, or
false
otherwise.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 static void main(java.lang.String[] args)
args
-