|
void | addInterface () |
| Second phase of initialization forced by shared_from_this. Add interface to the client.
|
|
| ExternalClientInterface (Client &client, const string &identifier) |
| Constructor.
|
|
void | onReleaseSession (AbstractSessionSharedPtr session) |
| Function that allows derived classes to destroy their type-specific session instance.
|
|
| ~ExternalClientInterface () |
| Destructor Removes interface from the client.
|
|
AbstractSessionSharedPtr | acquireSession (MessageDispatcher *dispatcher) |
| Acquire session in to this interface.
|
|
void | addObserver (AbstractSessionSharedPtr session, InterfaceObserver *observer) |
| Add observer in to this interface for given session.
|
|
RPCCallStore & | getCallStore () |
| Retrieve RPC call store that is used to manage pending RPC calls.
|
|
virtual string | getIdentifier () const |
| Returns the type id of the interface.
|
|
InterfaceObserver * | getObserver (AbstractSessionSharedPtr session) |
| Retrieve observer for given session.
|
|
| InterfaceClient (const string &identifier, RPCCallStore &callstore) |
|
virtual AbstractSessionSharedPtr | onAcquireSession (int sessionId, MessageDispatcher *dispatcher) |
| Function that allows derived classes to create their type-specific session instance.
|
|
virtual void | receive (const MessagePackage &message) |
| Pass a message package to this interface, resolves proper session and makes it receive the package.
|
|
void | releaseSession (AbstractSessionSharedPtr session) |
| Release session that is connected to this interface.
|
|
void | removeObserver (AbstractSessionSharedPtr session) |
| Remove observer from a given session.
|
|
| AbstractInterfaceClient (RPCCallStore &callStore) |
| Constructor.
|
|
AbstractSessionSharedPtr | acquireAbstractSession (MessageDispatcher *dispatcher) |
| Acquires a session for this interface.
|
|
shared_ptr< p2p::RoutingRules > | getRoutingRules () |
| Retrieve routing rules for this particular client.
|
|
AbstractSessionSharedPtr | getSession (int sessionId) |
| Returns session by id.
|
|
bool | isSessionRunning (AbstractSessionSharedPtr session) const |
| Check if the given session is running or not.
|
|
void | notifyServiceReachable (bool reachable) |
| Invoked to notify clients whether specific service is reachable or not.
|
|
virtual void | registerRemoteInterface (MessageTranslator *translator) |
| Registers this interface to given message translator.
|
|
void | releaseAbstractSession (AbstractSessionSharedPtr session) |
| Releases given session from this interface.
|
|
bool | serviceReachable () const |
| Is service currently known to be reachable.
|
|
void | setClient (ClientSharedPtr client) |
| Stores the client this interface is bound to.
|
|
void | setServiceReachableCallback (ServiceReachableCallback callback) |
| Registers service reachable callback.
|
|
void | setSessionRunning (AbstractSessionSharedPtr session) |
| Set the given session to running state.
|
|
void | setSessionStopped (AbstractSessionSharedPtr session) |
| Set the given session to stopped state.
|
|
void | stopAllSessions () |
| Ends all sessions since maybe the service itself has disappeared.
|
|
void | terminateAllSessions () |
| Terminates all ongoing sessions.
|
|
virtual | ~AbstractInterfaceClient () |
| Destructor.
|
|