public class QoSTransportSettings extends TransportSettings
Constructor and Description |
---|
QoSTransportSettings() |
QoSTransportSettings(QoSTransportSettings transportSettings) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(BufferFilter filter)
Adds a BufferFilter to the filter chain.
|
void |
addRebroadcastFilter(AggregateFilter filter)
Adds an aggregate update filter that will be applied before rebroadcasting,
after individual record filters.
|
void |
addRebroadcastFilter(KnowledgeType type,
RecordFilter filter)
Adds a filter that will be applied to certain types after receiving and
before rebroadcasting, if time-to-live is greater than 0
|
void |
addReceiveFilter(AggregateFilter filter)
Adds an aggregate update filter that will be applied after receiving, after
individual record filters.
|
void |
addReceiveFilter(KnowledgeType type,
RecordFilter filter)
Adds an aggregate filter for a map of variables to values before applying
updates to the Knowledge_Base
|
void |
addSendFilter(AggregateFilter filter)
Adds an aggregate update filter that will be applied before sending, after
individual record filters.
|
void |
addSendFilter(KnowledgeType type,
RecordFilter filter)
Adds a filter that will be applied to certain types before sending
|
void |
clearBufferFilters()
Clears the list of buffer filters
|
void |
enableParticipantTtl(int ttl)
Enables participation in rebroadcasts up to a certain ttl value
|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
int |
getDeadline()
Gets the deadline (seconds)
|
int |
getParticipantTtl()
Gets the rebroadcast time-to-live for all rebroadcasted packets
|
int |
getRebroadcastTtl()
Gets the rebroadcast time-to-live for all sent packets
|
int |
getSendBandwidthLimit()
Gets the send bandwidth limit
|
int |
getTotalBandwidthLimit()
Gets the total bandwidth limit
|
void |
load(java.lang.String filename)
Loads the transport settings from a KnowledgeBase context file
|
void |
save(java.lang.String filename)
Saves the transport settings as a KnowledgeBase to a file
|
void |
setDeadline(int deadline)
Sets the deadline (seconds)
|
void |
setRebroadcastTtl(int ttl)
Sets the rebroadcast time-to-live for all sent packets
|
void |
setSendBandwidthLimit(int limit)
Sets the send bandwidth limit
|
void |
setTotalBandwidthLimit(int limit)
Sets the total bandwidth limit
|
getHosts, getId, getOnDataReceivedLogic, getProcesses, getQueueLength, getReliability, getResendAttempts, getType, getWriteDomain, setHosts, setId, setOnDataReceivedLogic, setProcesses, setQueueLength, setReliability, setResendAttempts, setType, setWriteDomain
public QoSTransportSettings()
public QoSTransportSettings(QoSTransportSettings transportSettings)
public void addFilter(BufferFilter filter)
filter
- a filter to encode and decode bufferspublic void clearBufferFilters()
public void addRebroadcastFilter(KnowledgeType type, RecordFilter filter)
type
- the types to add the filter tofilter
- Madara callback functionpublic void addRebroadcastFilter(AggregateFilter filter)
filter
- Madara callback functionpublic void addSendFilter(KnowledgeType type, RecordFilter filter)
type
- the types to add the filter tofilter
- Madara callback functionpublic void addSendFilter(AggregateFilter filter)
filter
- Madara callback functionpublic void addReceiveFilter(KnowledgeType type, RecordFilter filter)
type
- the types to add the filter tofilter
- Madara callback functionpublic void addReceiveFilter(AggregateFilter filter)
filter
- Madara callback functionpublic void setRebroadcastTtl(int ttl)
ttl
- the time-to-livepublic int getRebroadcastTtl()
public void enableParticipantTtl(int ttl)
ttl
- the time-to-livepublic int getParticipantTtl()
public void setSendBandwidthLimit(int limit)
limit
- the bandwidth limit for sending packetspublic int getSendBandwidthLimit()
public void setTotalBandwidthLimit(int limit)
limit
- the bandwidth limit for all packetspublic int getTotalBandwidthLimit()
public void setDeadline(int deadline)
setDeadline
in class TransportSettings
deadline
- the maximum lifetime for all packets in secondspublic int getDeadline()
getDeadline
in class TransportSettings
public void save(java.lang.String filename)
save
in class TransportSettings
filename
- the file to save the knowledge base topublic void load(java.lang.String filename)
load
in class TransportSettings
filename
- the file to save the knowledge base topublic void free()
free
in class TransportSettings
protected void finalize() throws java.lang.Throwable
finalize
in class TransportSettings
java.lang.Throwable
- necessary for override but unused