|
| | ExternalServiceAdapter (const string &identfier) |
| | Constructor. More...
|
| |
| virtual void | receive (shared_ptr< ExternalServiceSession > session, const MessagePackage &message) |
| | Invoked to receive incoming message. More...
|
| |
| virtual void | transmitToAll (const MessagePackage &message) |
| | Transmits a provided message to wire and delivers it to all sessions available. More...
|
| |
| virtual bool | transmitToSession (shared_ptr< ExternalServiceSession > session, const MessagePackage &message) |
| | Transmits a provided message to specific session. More...
|
| |
| virtual | ~ExternalServiceAdapter () |
| | Destructor. More...
|
| |
|
| virtual GenericInvoker * | getGenericInvoker () KZ_OVERRIDE |
| |
| virtual AbstractSessionSharedPtr | onAcquireSession (int clientId, int sessionId, MessageDispatcher *dispatcher, const string &instanceName) KZ_OVERRIDE |
| | Session factorization method interface. More...
|
| |
| virtual ContentProviderCollectionSharedPtr | getContentProvider () KZ_OVERRIDE |
| | Returns content provider for this service. More...
|
| |
| virtual string | getIdentifier () const KZ_OVERRIDE |
| |
| virtual void | onReleaseSession (AbstractSessionSharedPtr session) KZ_OVERRIDE |
| | Virtual method that inheriting classes can implement. More...
|
| |
|
| bool | addSubscriptionExt (const string &identifier, shared_ptr< ExternalServiceSession > session) |
| |
| vector< string > | removeSubscriptionsExt (shared_ptr< ExternalServiceSession > session, const string &identifier="") |
| |
| bool | hasSubscriptionsExt (const string &identifier) |
| |
| vector< shared_ptr< ExternalServiceSession > > | findSubscribersExt (const string &identifier) |
| |
| | AbstractService () |
| | Constructor. More...
|
| |
| AbstractSessionSharedPtr | acquireSession (int clientId, int sessionId, MessageDispatcher *dispatcher, const string &instanceName) |
| | Session factorization method. More...
|
| |
| virtual InvokableOperationResult | addCustomType (const string &xml) |
| | Add a custom type to the service. More...
|
| |
| virtual InvokableOperationResult | addCustomTypeDecoded (const string &decodedXml) |
| | Add a custom type to the service. More...
|
| |
| virtual int | addEvent (const string &identifier, const string &description) |
| |
| virtual int | addMethod (const string &identifier, const string &description) |
| |
| virtual int | addProperty (const string &identifier, const string &description) |
| |
| virtual InvokableOperationResult | addRoute (const string &xml) |
| | Add new P2P route(s) for the service. More...
|
| |
| virtual InvokableOperationResult | addRouteDecoded (const string &decodedXml) |
| | Add new P2P route(s) for the service. More...
|
| |
| RuntimeDataSchemaChangeSubscriptionToken | addRuntimeDataSchemaChangeSubscription (RuntimeDataSchemaChangeCallback function) |
| | Adds a callback to invoke when runtime data schema changes. More...
|
| |
| StateChangedSubscriptionToken | addStateChangeSubscription (StateCallbackFunction function) |
| | Adds a state change callback subscription. More...
|
| |
| bool | addSubscription (const string &identifier, AbstractSessionSharedPtr session) |
| | Add subscription to the given session for this service. More...
|
| |
| virtual void | cancelTimer (int64_t timerId) |
| | Cancels ongoing timer. More...
|
| |
| int | countSessions () const |
| | Amount of allocated sessions. More...
|
| |
| size_t | countSessions () |
| | Return the amount of sessions towards this service amount of sessions. More...
|
| |
| virtual InvokableOperationResult | createRuntimedata (const string &parentIdentifier, const string &xml) |
| | Create a new runtime data element for the service runtime data. More...
|
| |
| EnumMap::const_iterator | enumerationValuesBegin () |
| |
| EnumMap::const_iterator | enumerationValuesEnd () |
| |
| vector< AbstractSessionSharedPtr > | findSubscribers (const string &identifier) |
| | Find all subscribers for the given identifier. More...
|
| |
| const SessionContainer & | getAllSessions () const |
| | Returns all currently active sessions. More...
|
| |
| SessionContainer | getAllSessionsOfClient (int clientId) |
| | Returns all sessions for a given client. More...
|
| |
| KanziStringVectorSharedPtr | getAttributes () |
| | Lists all service attributes. More...
|
| |
| RuntimeDataObjectSharedPtr | getConfigurationProperties () |
| | Retrieves configuration properties as a runtime data object to allow more convenient access to data. More...
|
| |
| ContentClientSharedPtr | getContentClient () const |
| | Access to content system. More...
|
| |
| const vector< unique_ptr< CustomType > > & | getCustomTypes () const |
| | Get the custom types defined for this service. More...
|
| |
| KanziStringVectorSharedPtr | getDisabledInvokables () |
| |
| ConnectDomain * | getDomain () const |
| | Retrieves the connect domain. More...
|
| |
| optional< int > | getEnumValue (const string &name, const string &enumerator) |
| | Find out value for enumeration string. More...
|
| |
| ServiceExtensionContainer * | getExtensions () |
| |
| string | getFullyQualifiedConfigurationPropertyName (const string &name) |
| | Constructs a fully qualified configuration property name, usually the fully qualified name is something like "Connect.Service.MyService.ConfigurationProperties.MyPropertyName". More...
|
| |
| InterfaceDomainBase * | getInterfaceDomain () const |
| | Access to interface domain. More...
|
| |
| virtual RuntimeDataObjectSharedPtr | getModifiedConfigurationProperties () |
| | Retrieves modified configuration properties as runtime data object. More...
|
| |
| virtual string | getName () |
| | Returns the override name. More...
|
| |
| WorkQueueInterface * | getProxyWorkQueue () |
| | Returns a proxied work queue instance that can be used by composited classes to to assign work to this service. More...
|
| |
| AbstractSessionSharedPtr | getRunningSession () |
| |
| virtual string | getSchema () |
| | Returns service schema in XML format. More...
|
| |
| virtual const ServiceDescription & | getServiceDescription () const |
| | Access the static service description info. More...
|
| |
| virtual p2p::RoutingRulesSharedPtr | getServiceRoutingInformation () |
| | Return service routing information. More...
|
| |
| virtual const ServiceState & | getServiceState () const |
| | Gets service state information. More...
|
| |
| AbstractSessionSharedPtr | getSession (int clientId, int sessionId) |
| | Returns session by client & session id. More...
|
| |
| int | getStopInterval () const |
| | Retrieve service stop interval. More...
|
| |
| WorkQueueInterface * | getWorkQueue () const |
| | Access to signal that allows to invoke work(). More...
|
| |
| bool | hasEnumValues (const string &name) |
| | Checks if enum has been defined on this service. More...
|
| |
| bool | hasSubscriptions (const string &identifier) |
| | Check if the given identifier has any subscriptions. More...
|
| |
| virtual void | initialize (InterfaceDomainBase *domain, ContentClientSharedPtr contentClient, WorkQueueInterface *workQueue) |
| | Initialize this service. More...
|
| |
| bool | manualPersistenceOverride () const |
| | Defines whether manual persistence override is active, i.e. More...
|
| |
| void | releaseAllSessions () |
| | Unconditionally releases all sessions. use carefully. More...
|
| |
| void | releaseSession (AbstractSessionSharedPtr session) |
| | Releases previously allocated session. More...
|
| |
| virtual InvokableOperationResult | removeCustomType (const string &typeName) |
| | Remove a custom type from a service. More...
|
| |
| virtual int | removeEvent (const string &identifier) |
| |
| virtual int | removeMethod (const string &identifier) |
| |
| virtual int | removeProperty (const string &identifier) |
| |
| virtual InvokableOperationResult | removeRoute (const string &subjectName) |
| | Remove a route from a service. More...
|
| |
| virtual InvokableOperationResult | removeRuntimedataElement (const string &elementIdentifier) |
| | Remove runtime data element from the service runtime data. More...
|
| |
| void | removeRuntimeDataSchemaChangeSubscription (RuntimeDataSchemaChangeSubscriptionToken token) |
| | Remove schema change subscription. More...
|
| |
| void | removeStateChangeSubscription (StateChangedSubscriptionToken token) |
| | Remove state change subscription. More...
|
| |
| vector< string > | removeSubscriptions (AbstractSessionSharedPtr session, const string &identifier="") |
| | Remove subscription to the given session for this service. More...
|
| |
| AbstractService::ServiceControlResult | resetService (ServiceArgumentsSharedPtr arguments) |
| | Tries to reset service. More...
|
| |
| bool | runScript (const MessagePackage &message, AbstractSessionSharedPtr session, shared_ptr< GenericRPCReplyMessage > &ret) |
| | Run a script using configured script plugin. Intended for internal use. More...
|
| |
| ServiceRuntimeData & | runtimeData () |
| | Retrieve service runtime data. More...
|
| |
| void | setAttribute (const string &key, const string &value) |
| | Add service attributes as key value pairs. More...
|
| |
| void | setDomain (ConnectDomain *domain) |
| | Set the connect domain. More...
|
| |
| void | setFileClient (VirtualFileClient *client) |
| | Set the client instance to access VirtualFileService. More...
|
| |
| virtual void | setName (const string &name) |
| | Defines a override name used to identify the service. More...
|
| |
| void | setPersistence (AbstractService::ServiceDescription::Persistence persistence) |
| | Sets the service persistence. More...
|
| |
| virtual void | setRunningSession (AbstractSessionSharedPtr session) |
| | Stores the currently running session. More...
|
| |
| virtual InvokableOperationResult | setRuntimedataValue (const string &elementIdentifier, const string &value) |
| | Set runtime data value for the given element in the service runtime data. More...
|
| |
| bool | setServiceRuntimeDataSchema (const string &xml) |
| | Set service runtime data schema. More...
|
| |
| void | setServiceState (AbstractService::ServiceState state) |
| | sets service state information. More...
|
| |
| void | setServiceVersion (AbstractService::ServiceDescription::Version version, AbstractService::ServiceDescription::Version minCompatibleVersion=AbstractService::ServiceDescription::Version()) |
| | Configures the service version information. More...
|
| |
| void | setSettingFactory (const persistence::SettingFactory *factory) |
| | Set the setting factory instance to allow using persistence service. More...
|
| |
| void | setStopInterval (int seconds) |
| | Configures the stop interval. More...
|
| |
| virtual int64_t | setTimer (int64_t milliseconds, ConnectWorkItem::Executor callback) |
| | Installs a timer to be called after a specified timeout in milliseconds. More...
|
| |
| virtual int64_t | setTimer (int64_t milliseconds, ConnectWorkItem::Executor callback, ConnectWorkItem::ExecutionContext executionContext) |
| | Installs a timer to be called after a specified timeout in milliseconds. More...
|
| |
| bool | simulateEvent (const string &messageName, const MessagePackage &message) |
| | Post a message to all running sessions as event. Intended for internal use. More...
|
| |
| AbstractService::ServiceControlResult | startService (ServiceControlSource serviceControlSource, ServiceArgumentsSharedPtr arguments) |
| | Tries to start the service. More...
|
| |
| AbstractService::ServiceControlResult | stopService (ServiceControlSource serviceControlSource) |
| | Tries to stop the service. More...
|
| |
| virtual void | uninitialize () |
| | Uninitialize this service. More...
|
| |
| virtual void | work (ConnectWorkItemSharedPtr workItem) |
| | Asks service to perform work. More...
|
| |
| virtual | ~AbstractService () |
| | Destructor. More...
|
| |