|
CPN
Computational Process Networks
|
The attributes for a queue. More...
#include <QueueAttr.h>
Collaboration diagram for CPN::QueueAttr:Public Member Functions | |
| QueueAttr () | |
| QueueAttr (const unsigned queueLength_, const unsigned maxThreshold_) | |
| QueueAttr & | SetAlpha (double a) |
| alpha is used by the remote queue to decide how much of the queue should go on the read side and how much should go on the write side. More... | |
| QueueAttr & | SetMaxWriteThreshold (unsigned mwt) |
| QueueAttr & | SetName (const std::string &qname) |
| QueueAttr & | SetEndpoints (const std::string &readernode, const std::string &readerport, const std::string &writernode, const std::string &writerport) |
| QueueAttr & | SetExternalReader (const std::string &readername) |
| QueueAttr & | SetExternalWriter (const std::string &writername) |
| QueueAttr & | SetReader (const std::string &nodename, const std::string &portname) |
| QueueAttr & | SetReader (Key_t nodekey, const std::string &portname) |
| QueueAttr & | SetWriter (const std::string &nodename, const std::string &portname) |
| QueueAttr & | SetWriter (Key_t nodekey, const std::string &portname) |
| QueueAttr & | SetHint (std::string hint) |
| QueueAttr & | SetDatatype (const std::string &type) |
| template<typename type > | |
| QueueAttr & | SetDatatype () |
| QueueAttr & | SetLength (unsigned length) |
| QueueAttr & | SetMaxThreshold (unsigned maxthresh) |
| QueueAttr & | SetNumChannels (unsigned channels) |
| QueueAttr & | SetReaderNodeKey (Key_t k) |
| QueueAttr & | SetWriterNodeKey (Key_t k) |
| QueueAttr & | SetReaderKey (Key_t k) |
| QueueAttr & | SetWriterKey (Key_t k) |
| const std::string & | GetWriterNode () const |
| const std::string & | GetWriterPort () const |
| const std::string & | GetReaderNode () const |
| const std::string & | GetReaderPort () const |
| Key_t | GetWriterNodeKey () const |
| Key_t | GetReaderNodeKey () const |
| Key_t | GetWriterKey () const |
| Key_t | GetReaderKey () const |
| unsigned | GetLength () const |
| unsigned | GetMaxThreshold () const |
| unsigned | GetNumChannels () const |
| std::string | GetHint () const |
| const std::string & | GetDatatype () const |
| double | GetAlpha () const |
| const std::string & | GetName () const |
| unsigned | GetMaxWriteThreshold () const |
Private Attributes | |
| std::string | queuehint |
| std::string | datatype |
| std::string | queuename |
| unsigned | queueLength |
| unsigned | maxThreshold |
| unsigned | numChannels |
| double | alpha |
| std::string | readernodename |
| std::string | readerportname |
| std::string | writernodename |
| std::string | writerportname |
| Key_t | readerkey |
| Key_t | writerkey |
| Key_t | readernodekey |
| Key_t | writernodekey |
| unsigned | maxwritethreshold |
The attributes for a queue.
The QueueAttr is used to encapsulate the information needed by the Kernel to create a new connection between endpoints.
The QueueAttr must have a writer and reader endpoint defined or an exception will be thrown by the Kernel when attempting to create the queue.
There are three ways to set the reader and writer endpoints. The first is to ask the context for the key for the endpoints and set them directly. The second is if you know the node keys then you can set the node keys and endpoint names. The third is to set the endpoints using both the node name and the endpoint names. The keys are always used over the name, but the name is used if the key is not set.
The default queue length and max threshold is zero.
The default number of channels is one.
The default queue hint is to not use the ThresholdQueue see SetHint
Definition at line 55 of file QueueAttr.h.
|
inline |
Definition at line 57 of file QueueAttr.h.
|
inline |
Definition at line 65 of file QueueAttr.h.
|
inline |
Definition at line 210 of file QueueAttr.h.
|
inline |
Definition at line 209 of file QueueAttr.h.
|
inline |
Definition at line 208 of file QueueAttr.h.
|
inline |
Definition at line 205 of file QueueAttr.h.
|
inline |
Definition at line 206 of file QueueAttr.h.
|
inline |
Definition at line 212 of file QueueAttr.h.
|
inline |
Definition at line 211 of file QueueAttr.h.
Referenced by CPN::Kernel::CreateQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 207 of file QueueAttr.h.
|
inline |
Definition at line 204 of file QueueAttr.h.
|
inline |
Definition at line 199 of file QueueAttr.h.
Referenced by CPN::Kernel::CreateQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 202 of file QueueAttr.h.
|
inline |
Definition at line 200 of file QueueAttr.h.
Referenced by CPN::Kernel::CreateQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 203 of file QueueAttr.h.
|
inline |
Definition at line 197 of file QueueAttr.h.
Referenced by CPN::Kernel::CreateQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 201 of file QueueAttr.h.
|
inline |
Definition at line 198 of file QueueAttr.h.
Referenced by CPN::Kernel::CreateQueue().
Here is the caller graph for this function:
|
inline |
alpha is used by the remote queue to decide how much of the queue should go on the read side and how much should go on the write side.
| a | 0 means all on read 1 means all on write |
Definition at line 80 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 151 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 157 of file QueueAttr.h.
|
inline |
Definition at line 97 of file QueueAttr.h.
|
inline |
Definition at line 104 of file QueueAttr.h.
|
inline |
Definition at line 108 of file QueueAttr.h.
|
inline |
| hint | the hint to give to the kernel for what kind of queue to create. Empty string or "default" will create a non threshold queue. "threshold will create a threshold queue. "rdma*" will create an rdma queue if it is available. |
Definition at line 146 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 162 of file QueueAttr.h.
|
inline |
Definition at line 167 of file QueueAttr.h.
|
inline |
Definition at line 87 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 92 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 172 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:
|
inline |
Definition at line 112 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:Definition at line 119 of file QueueAttr.h.
Definition at line 187 of file QueueAttr.h.
Definition at line 177 of file QueueAttr.h.
|
inline |
Definition at line 126 of file QueueAttr.h.
Referenced by CPN::VariantCPNLoader::LoadQueue().
Here is the caller graph for this function:Definition at line 133 of file QueueAttr.h.
Definition at line 192 of file QueueAttr.h.
Definition at line 182 of file QueueAttr.h.
|
private |
Definition at line 221 of file QueueAttr.h.
|
private |
Definition at line 216 of file QueueAttr.h.
|
private |
Definition at line 219 of file QueueAttr.h.
|
private |
Definition at line 230 of file QueueAttr.h.
|
private |
Definition at line 220 of file QueueAttr.h.
|
private |
Definition at line 215 of file QueueAttr.h.
|
private |
Definition at line 218 of file QueueAttr.h.
|
private |
Definition at line 217 of file QueueAttr.h.
|
private |
Definition at line 226 of file QueueAttr.h.
|
private |
Definition at line 228 of file QueueAttr.h.
|
private |
Definition at line 222 of file QueueAttr.h.
|
private |
Definition at line 223 of file QueueAttr.h.
|
private |
Definition at line 227 of file QueueAttr.h.
|
private |
Definition at line 229 of file QueueAttr.h.
|
private |
Definition at line 224 of file QueueAttr.h.
|
private |
Definition at line 225 of file QueueAttr.h.
1.8.5