public class ResourceDiscovery extends Exchange
Modifier | Constructor and Description |
---|---|
protected |
ResourceDiscovery() |
protected |
ResourceDiscovery(int resourceType,
String respondTo) |
protected |
ResourceDiscovery(int conditionFlag,
String description,
ResourceMetrics resourceMetrics,
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.
|
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.
|
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
protected ResourceDiscovery()
protected ResourceDiscovery(int resourceType, String respondTo)
protected ResourceDiscovery(int conditionFlag, String description, ResourceMetrics resourceMetrics, 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 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
Copyright © 2015. All rights reserved.