25 #ifndef CPN_KERNELATTR_H
26 #define CPN_KERNELATTR_H
48 hostname(
"localhost"),
50 remote_enabled(false),
51 useD4R(true), swallowbrokenqueue(false),
57 hostname(
"localhost"),
59 remote_enabled(false),
60 useD4R(true), swallowbrokenqueue(false),
95 swallowbrokenqueue = enable;
100 growmaxthresh = enable;
105 sharedlibs.push_back(lib);
110 nodelists.push_back(list);
115 searchpaths.push_back(p);
119 const std::string &
GetName()
const {
return name; }
135 const std::vector<std::string> &
GetSharedLibs()
const {
return sharedlibs; }
137 const std::vector<std::string> &
GetNodeLists()
const {
return nodelists; }
KernelAttr & SetRemoteEnabled(bool en)
KernelAttr & SwallowBrokenQueueExceptions(bool enable)
bool SwallowBrokenQueueExceptions() const
KernelAttr(const char *name_)
const std::vector< std::string > & GetNodeLists() const
The attribute for the Kernel.
std::vector< std::string > sharedlibs
std::vector< std::string > nodelists
bool GrowQueueMaxThreshold() const
shared_ptr< Context > context
KernelAttr & GrowQueueMaxThreshold(bool enable)
KernelAttr & AddSharedLib(const std::string &lib)
const std::vector< std::string > & GetNodeSearchPaths() const
KernelAttr & SetName(const std::string &n)
shared_ptr< Context > GetContext() const
KernelAttr & UseD4R(bool enable)
const std::string & GetServName() const
std::vector< std::string > searchpaths
KernelAttr & AddNodeList(const std::string &list)
const std::vector< std::string > & GetSharedLibs() const
KernelAttr & SetHostName(const std::string &hn)
KernelAttr & AddNodeSearchPath(const std::string &p)
const std::string & GetName() const
KernelAttr & SetServName(const std::string &sn)
bool GetRemoteEnabled() const
const std::string & GetHostName() const
KernelAttr(const std::string &name_)
Create a new KernelAttr. There is only one required attributed and that is to give the Kernel a name...
KernelAttr & SetContext(shared_ptr< Context > ctx)