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