|
CPN
Computational Process Networks
|
#include <RemoteContext.h>
Inheritance diagram for CPN::RemoteContext:
Collaboration diagram for CPN::RemoteContext:Public Member Functions | |
| RemoteContext (const SocketAddress &addr) | |
| RemoteContext (const SockAddrList &addrs) | |
| RemoteContext (int fd) | |
| ~RemoteContext () | |
| virtual int | LogLevel () const |
| virtual int | LogLevel (int level) |
| virtual void | Log (int level, const std::string &logmsg) |
| Log a message to this outputer. More... | |
| virtual CPN::Key_t | SetupKernel (const std::string &name, const std::string &hostname, const std::string &servname, CPN::KernelBase *kernel) |
| Called by the Kernel when it has successfully set it self up. This gives the Context a way to notify the Kernel of events and lets other Kernels look up the connection information for this Kernel. More... | |
| virtual CPN::Key_t | SetupKernel (const std::string &name, KernelBase *kernel) |
| Called by the kernel when it is not in remote mode. More... | |
| virtual CPN::Key_t | GetKernelKey (const std::string &kernel) |
| virtual std::string | GetKernelName (CPN::Key_t kernelkey) |
| virtual void | GetKernelConnectionInfo (CPN::Key_t kernelkey, std::string &hostname, std::string &servname) |
| obtain the connection information for the given kernel More... | |
| virtual CPN::Key_t | WaitForKernelStart (const std::string &kernel) |
| Does not return until the given kernel has started. More... | |
| virtual void | SignalKernelStart (CPN::Key_t kernelkey) |
| Signal to the context that the given kernel has started. More... | |
| virtual void | SignalKernelEnd (CPN::Key_t kernelkey) |
| Signal to the Context that the given kernel is dead. More... | |
| virtual void | SendCreateWriter (CPN::Key_t kernelkey, const CPN::SimpleQueueAttr &attr) |
| Tell a given kernel that it needs to create a queue write end. More... | |
| virtual void | SendCreateReader (CPN::Key_t kernelkey, const CPN::SimpleQueueAttr &attr) |
| Tell a given kernel that it needs to create a queue read end. More... | |
| virtual void | SendCreateQueue (CPN::Key_t kernelkey, const CPN::SimpleQueueAttr &attr) |
| Tell a given kernel that it needs to create a queue. More... | |
| virtual void | SendCreateNode (CPN::Key_t kernelkey, const CPN::NodeAttr &attr) |
| Tell a given kernel that it needs to create a node. More... | |
| virtual CPN::Key_t | CreateNodeKey (CPN::Key_t kernelkey, const std::string &nodename) |
| Tell the context to allocate a new node key and data structure for a node with nodename which is on kernelkey. More... | |
| virtual CPN::Key_t | GetNodeKey (const std::string &nodename) |
| virtual std::string | GetNodeName (CPN::Key_t nodekey) |
| virtual CPN::Key_t | GetNodeKernel (CPN::Key_t nodekey) |
| virtual void | SignalNodeStart (CPN::Key_t nodekey) |
| Called by the node startup routine to indicate that the node has started. More... | |
| virtual void | SignalNodeEnd (CPN::Key_t nodekey) |
| Called by the node cleanup routine to indicate that the node has ended. More... | |
| virtual CPN::Key_t | WaitForNodeStart (const std::string &nodename) |
| Waits until the node starts and returns the key, if the node is already started returns the key. More... | |
| virtual void | WaitForNodeEnd (const std::string &nodename) |
| Waits for the given node to signal end. More... | |
| virtual void | WaitForAllNodeEnd () |
| Convenience method which waits until there are no nodes running. If no node have started then this will return immediately. More... | |
| virtual CPN::Key_t | GetCreateReaderKey (CPN::Key_t nodekey, const std::string &portname) |
| Get the key associated with the given endpoint for the given node. Creates the information if it does not exist. More... | |
| virtual CPN::Key_t | GetReaderNode (CPN::Key_t portkey) |
| virtual CPN::Key_t | GetReaderKernel (CPN::Key_t portkey) |
| virtual std::string | GetReaderName (CPN::Key_t portkey) |
| virtual CPN::Key_t | GetCreateWriterKey (CPN::Key_t nodekey, const std::string &portname) |
| virtual CPN::Key_t | GetWriterNode (CPN::Key_t portkey) |
| virtual CPN::Key_t | GetWriterKernel (CPN::Key_t portkey) |
| virtual std::string | GetWriterName (CPN::Key_t portkey) |
| virtual void | ConnectEndpoints (CPN::Key_t writerkey, CPN::Key_t readerkey, const std::string &qname) |
| Called by the kernel when a queue is created. Note that the endpoints may have been created when the node requests them but the queue may be created long after that. More... | |
| virtual CPN::Key_t | GetReadersWriter (CPN::Key_t readerkey) |
| virtual CPN::Key_t | GetWritersReader (CPN::Key_t writerkey) |
| virtual void | Terminate () |
| Signal to the Context that the network is terminating. After this call most methods will throw a ShutdownException. More... | |
| virtual bool | IsTerminated () |
| virtual bool | RequireRemote () |
| Lets the kernel know that this context type requires remote activity. This overrides the kernel option for remote activity. Default value is false. More... | |
| void | DispatchMessage (const Variant &msg) |
| void | CheckTerminated () |
| Convenience method that checks IsTerminated and if so throws a ShutdownException. More... | |
| virtual unsigned | CalculateGrowSize (unsigned currentsize, unsigned request) |
| Calculate the new queue size when a queue needs to grow. More... | |
Static Public Member Functions | |
| static shared_ptr< Context > | Local () |
| Create a local context. More... | |
Protected Member Functions | |
| void | SendMessage (const Variant &msg) |
| void * | EntryPoint () |
Protected Attributes | |
| PthreadMutex | lock |
Private Member Functions | |
| void | EndWrite () |
| bool | IsEndWrite () |
Private Attributes | |
| std::auto_ptr< Pthread > | thread |
| SocketHandle | sock |
| bool | endwrite |
An implementation for the RemoteContextClient that is paired with RemoteContextDaemon.
Definition at line 37 of file RemoteContext.h.
| CPN::RemoteContext::RemoteContext | ( | const SocketAddress & | addr | ) |
Definition at line 33 of file RemoteContext.cc.
References SocketHandle::Connect(), CreatePthreadFunctional(), EntryPoint(), SocketHandle::SetNoDelay(), sock, and thread.
Here is the call graph for this function:| CPN::RemoteContext::RemoteContext | ( | const SockAddrList & | addrs | ) |
Definition at line 42 of file RemoteContext.cc.
References SocketHandle::Connect(), CreatePthreadFunctional(), EntryPoint(), SocketHandle::SetNoDelay(), sock, and thread.
Here is the call graph for this function:| CPN::RemoteContext::RemoteContext | ( | int | fd | ) |
Definition at line 51 of file RemoteContext.cc.
References CreatePthreadFunctional(), EntryPoint(), SocketHandle::SetNoDelay(), sock, and thread.
Here is the call graph for this function:| CPN::RemoteContext::~RemoteContext | ( | ) |
Definition at line 59 of file RemoteContext.cc.
References EndWrite(), and thread.
Here is the call graph for this function:
|
inlinevirtualinherited |
|
inherited |
Convenience method that checks IsTerminated and if so throws a ShutdownException.
| ShutdownException |
Definition at line 44 of file Context.cc.
References CPN::Context::IsTerminated().
Here is the call graph for this function:
|
virtualinherited |
Called by the kernel when a queue is created. Note that the endpoints may have been created when the node requests them but the queue may be created long after that.
| writerkey | the unique key for the writer endpoint |
| readerkey | the unique key for the reader endpoint |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 481 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_CONNECT_ENDPOINTS, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Tell the context to allocate a new node key and data structure for a node with nodename which is on kernelkey.
| kernelkey | the id of the kernel that the node will run on |
| nodename | the name of the node |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 266 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_CREATE_NODE_KEY, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
inherited |
Handle a message from the RemoteContextServer.
| msg | the message |
Definition at line 580 of file RemoteContextClient.cc.
References ASSERT, CPN::RemoteContextClient::callwaiters, CPN::RemoteContextClient::InternalTerminate(), CPN::RemoteContextClient::kernels, CPN::RemoteContextClient::lock, CPN::MsgToNodeAttr(), CPN::MsgToQueueAttr(), CPN::RCTXMT_CREATE_NODE, CPN::RCTXMT_CREATE_QUEUE, CPN::RCTXMT_CREATE_READER, CPN::RCTXMT_CREATE_WRITER, CPN::RCTXMT_TERMINATE, CPN::KernelBase::RemoteCreateNode(), CPN::KernelBase::RemoteCreateQueue(), CPN::KernelBase::RemoteCreateReader(), CPN::KernelBase::RemoteCreateWriter(), AutoLock< Lockable >::Unlock(), and CPN::RemoteContextClient::waiters.
Referenced by EntryPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 114 of file RemoteContext.cc.
References endwrite, CPN::RemoteContextClient::lock, SocketHandle::ShutdownWrite(), and sock.
Referenced by ~RemoteContext().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 76 of file RemoteContext.cc.
References FileHandle::Close(), CPN::RemoteContextClient::DispatchMessage(), FileHandle::Eof(), ErrnoException::Error(), FileHandle::Good(), FileHandle::Poll(), FileHandle::Readable(), SocketHandle::Recv(), sock, CPN::RemoteContextClient::Terminate(), and ErrnoException::what().
Referenced by RemoteContext().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualinherited |
Get the key associated with the given endpoint for the given node. Creates the information if it does not exist.
| nodekey | the unique id for the node |
| portname | the name of the endpoint. |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 435 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetCreateEndpointKey(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_CREATE_READER_KEY.
Here is the call graph for this function:
|
virtualinherited |
Implements CPN::Context.
Definition at line 458 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetCreateEndpointKey(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_CREATE_WRITER_KEY.
Here is the call graph for this function:
|
virtualinherited |
obtain the connection information for the given kernel
| kernelkey | the unique id for the kernel |
| hostname | (output) string to be filled with the hostname |
| servname | (output) string to be filled with the service name |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 111 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_GET_KERNEL_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
| kernel | the name of the kernel |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 85 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_GET_KERNEL_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
| kernelkey | the key to the kernel |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 98 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_GET_KERNEL_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
| nodekey | the unique key for the node |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 421 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_GET_NODE_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 280 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_GET_NODE_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 293 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_GET_NODE_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
| portkey | the unique id for the port |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 446 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_READER_INFO.
Here is the call graph for this function:
|
virtualinherited |
| portkey | the unique id for the port |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 452 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_READER_INFO.
Here is the call graph for this function:
|
virtualinherited |
| portkey | the unique id for the port |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 440 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_READER_INFO.
Here is the call graph for this function:
|
virtualinherited |
| readerkey | a unique reader key |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 492 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_READER_INFO.
Here is the call graph for this function:
|
virtualinherited |
Implements CPN::Context.
Definition at line 469 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_WRITER_INFO.
Here is the call graph for this function:
|
virtualinherited |
Implements CPN::Context.
Definition at line 475 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_WRITER_INFO.
Here is the call graph for this function:
|
virtualinherited |
Implements CPN::Context.
Definition at line 463 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_WRITER_INFO.
Here is the call graph for this function:
|
virtualinherited |
| writerkey | a unique writer key |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 498 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::GetEndpointInfo(), CPN::RemoteContextClient::lock, and CPN::RCTXMT_GET_WRITER_INFO.
Here is the call graph for this function:
|
private |
Definition at line 120 of file RemoteContext.cc.
References endwrite, and CPN::RemoteContextClient::lock.
|
virtualinherited |
Implements CPN::Context.
Definition at line 551 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::lock, and CPN::RemoteContextClient::shutdown.
|
staticinherited |
Create a local context.
Definition at line 29 of file Context.cc.
Referenced by CPN::Kernel::Kernel(), and CPN::VariantCPNLoader::LoadContext().
Here is the caller graph for this function:
|
virtualinherited |
Log a message to this outputer.
| level | the level of this message |
| msg | the message |
Implements LoggerOutput.
Definition at line 56 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::lock, CPN::RemoteContextClient::loglevel, CPN::RCTXMT_LOG, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Implements LoggerOutput.
Definition at line 46 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::lock, and CPN::RemoteContextClient::loglevel.
| level | the new log level |
Implements LoggerOutput.
Definition at line 51 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::lock, and CPN::RemoteContextClient::loglevel.
|
virtualinherited |
Lets the kernel know that this context type requires remote activity. This overrides the kernel option for remote activity. Default value is false.
Reimplemented from CPN::Context.
Definition at line 556 of file RemoteContextClient.cc.
|
virtualinherited |
Tell a given kernel that it needs to create a node.
| kernelkey | the id of the kernel |
| attr | the node attribute |
| ShutdownException |
Implements CPN::Context.
Definition at line 193 of file RemoteContextClient.cc.
References CPN::NodeAttr::GetKernel(), CPN::NodeAttr::GetKey(), CPN::NodeAttr::GetName(), CPN::NodeAttr::GetParams(), CPN::NodeAttr::GetTypeName(), CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_CREATE_NODE, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Tell a given kernel that it needs to create a queue.
| kernelkey | the id of the kernel |
| attr | the queue attribute |
| ShutdownException |
Implements CPN::Context.
Definition at line 187 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_CREATE_QUEUE, and CPN::RemoteContextClient::SendQueueMsg().
Here is the call graph for this function:
|
virtualinherited |
Tell a given kernel that it needs to create a queue read end.
| kernelkey | the id of the kernel |
| attr | the queue attribute |
| ShutdownException |
Implements CPN::Context.
Definition at line 181 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_CREATE_READER, and CPN::RemoteContextClient::SendQueueMsg().
Here is the call graph for this function:
|
virtualinherited |
Tell a given kernel that it needs to create a queue write end.
| kernelkey | the id of the kernel |
| attr | the queue attribute |
| ShutdownException |
Implements CPN::Context.
Definition at line 175 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_CREATE_WRITER, and CPN::RemoteContextClient::SendQueueMsg().
Here is the call graph for this function:
|
protectedvirtual |
Called by the functions to send a message to the RemoteContextServer.
| msg | the message |
Implements CPN::RemoteContextClient.
Definition at line 64 of file RemoteContext.cc.
References FileHandle::Closed(), endwrite, sock, and FileHandle::Write().
Here is the call graph for this function:
|
virtualinherited |
Called by the Kernel when it has successfully set it self up. This gives the Context a way to notify the Kernel of events and lets other Kernels look up the connection information for this Kernel.
| name | the kernel name |
| hostname | the hostname to use to connect to this kernel |
| servname | the service name the kernel is listening on |
| kernel | callback reference |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 66 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::kernels, CPN::RemoteContextClient::lock, CPN::RCTXMT_SETUP_KERNEL, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
inlinevirtualinherited |
Called by the kernel when it is not in remote mode.
| name | the kernel name |
| kernel | callback reference |
Implements CPN::Context.
Definition at line 58 of file RemoteContextClient.h.
References ASSERT.
|
virtualinherited |
Signal to the Context that the given kernel is dead.
| kernelkey | id of the kernel that died |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 126 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::kernels, CPN::RemoteContextClient::lock, CPN::RCTXMT_SIGNAL_KERNEL_END, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Signal to the context that the given kernel has started.
| kernelkey | the id for the kernel |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 166 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_SIGNAL_KERNEL_START, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Called by the node cleanup routine to indicate that the node has ended.
| nodekey | the unique key for the node |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 315 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::lock, CPN::RCTXMT_SIGNAL_NODE_END, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Called by the node startup routine to indicate that the node has started.
| nodekey | the unique key for the node |
| ShutdownException | |
| std::invalid_argument |
Implements CPN::Context.
Definition at line 306 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RCTXMT_SIGNAL_NODE_START, and CPN::RemoteContextClient::SendMessage().
Here is the call graph for this function:
|
virtualinherited |
Signal to the Context that the network is terminating. After this call most methods will throw a ShutdownException.
Implements CPN::Context.
Definition at line 504 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalTerminate(), CPN::RemoteContextClient::lock, CPN::RCTXMT_TERMINATE, CPN::RemoteContextClient::SendMessage(), and CPN::RemoteContextClient::shutdown.
Referenced by EntryPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualinherited |
Convenience method which waits until there are no nodes running. If no node have started then this will return immediately.
| ShutdownException |
Implements CPN::Context.
Definition at line 391 of file RemoteContextClient.cc.
References ASSERT, CPN::RemoteContextClient::lock, CPN::RemoteContextClient::NewGenericWaiter(), CPN::RCTXMT_GET_NUM_NODE_LIVE, CPN::RemoteContextClient::RemoteCall(), and CPN::RemoteContextClient::shutdown.
Here is the call graph for this function:
|
virtualinherited |
Does not return until the given kernel has started.
| kernel | the name of the kernel (the key may not be known yet) |
| ShutdownException |
Implements CPN::Context.
Definition at line 135 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RemoteContextClient::NewGenericWaiter(), CPN::RCTXMT_GET_KERNEL_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
virtualinherited |
Waits for the given node to signal end.
| nodename | the name of the node |
| ShutdownException |
Implements CPN::Context.
Definition at line 355 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::lock, CPN::RemoteContextClient::NewGenericWaiter(), CPN::RCTXMT_GET_NODE_INFO, CPN::RemoteContextClient::RemoteCall(), and CPN::RemoteContextClient::shutdown.
Here is the call graph for this function:
|
virtualinherited |
Waits until the node starts and returns the key, if the node is already started returns the key.
| nodename | the name of the node to wait for |
| ShutdownException |
Implements CPN::Context.
Definition at line 323 of file RemoteContextClient.cc.
References CPN::RemoteContextClient::InternalCheckTerminated(), CPN::RemoteContextClient::lock, CPN::RemoteContextClient::NewGenericWaiter(), CPN::RCTXMT_GET_NODE_INFO, and CPN::RemoteContextClient::RemoteCall().
Here is the call graph for this function:
|
private |
Definition at line 51 of file RemoteContext.h.
Referenced by EndWrite(), IsEndWrite(), and SendMessage().
|
mutableprotectedinherited |
Definition at line 116 of file RemoteContextClient.h.
Referenced by CPN::RemoteContextClient::ConnectEndpoints(), CPN::RemoteContextClient::CreateNodeKey(), CPN::RemoteContextClient::DispatchMessage(), EndWrite(), CPN::RemoteContextClient::GetCreateReaderKey(), CPN::RemoteContextClient::GetCreateWriterKey(), CPN::RemoteContextClient::GetKernelConnectionInfo(), CPN::RemoteContextClient::GetKernelKey(), CPN::RemoteContextClient::GetKernelName(), CPN::RemoteContextClient::GetNodeKernel(), CPN::RemoteContextClient::GetNodeKey(), CPN::RemoteContextClient::GetNodeName(), CPN::RemoteContextClient::GetReaderKernel(), CPN::RemoteContextClient::GetReaderName(), CPN::RemoteContextClient::GetReaderNode(), CPN::RemoteContextClient::GetReadersWriter(), CPN::RemoteContextClient::GetWriterKernel(), CPN::RemoteContextClient::GetWriterName(), CPN::RemoteContextClient::GetWriterNode(), CPN::RemoteContextClient::GetWritersReader(), IsEndWrite(), CPN::RemoteContextClient::IsTerminated(), CPN::RemoteContextClient::Log(), CPN::RemoteContextClient::LogLevel(), CPN::RemoteContextClient::RemoteCall(), CPN::RemoteContextClient::SendCreateNode(), CPN::RemoteContextClient::SendCreateQueue(), CPN::RemoteContextClient::SendCreateReader(), CPN::RemoteContextClient::SendCreateWriter(), CPN::RemoteContextClient::SetupKernel(), CPN::RemoteContextClient::SignalKernelEnd(), CPN::RemoteContextClient::SignalKernelStart(), CPN::RemoteContextClient::SignalNodeEnd(), CPN::RemoteContextClient::SignalNodeStart(), CPN::RemoteContextClient::Terminate(), CPN::RemoteContextClient::TerminateThread(), CPN::RemoteContextClient::WaitForAllNodeEnd(), CPN::RemoteContextClient::WaitForKernelStart(), CPN::RemoteContextClient::WaitForNodeEnd(), and CPN::RemoteContextClient::WaitForNodeStart().
|
private |
Definition at line 50 of file RemoteContext.h.
Referenced by EndWrite(), EntryPoint(), RemoteContext(), and SendMessage().
|
private |
Definition at line 49 of file RemoteContext.h.
Referenced by RemoteContext(), and ~RemoteContext().
1.8.5