summaryrefslogtreecommitdiffstats
path: root/common/resourceaccess.cpp
Commit message (Collapse)AuthorAge
...
* A better crashhandler that notifies the client of the crash.Christian Mollekopf2016-05-22
|
* Support assigining the uid in the clientChristian Mollekopf2016-05-06
|
* Don't encode the resource type into the identifierChristian Mollekopf2016-04-17
|
* Fromatted the whole codebase with clang-format.Christian Mollekopf2016-03-03
| | | | clang-format -i */**{.cpp,.h}
* Fixed condition with reusing sockets in resourceaccessChristian Mollekopf2016-02-13
|
* moved ResourceAccessFactoryChristian Mollekopf2016-02-12
|
* Process a command in less than 0.1sChristian Mollekopf2016-02-08
|
* Emit a notification for revision changes.Christian Mollekopf2016-02-08
| | | | The notification should replace the revision update command completely.
* Trace some timings.Christian Mollekopf2016-02-08
|
* Introduced debug areas and prettified output.Christian Mollekopf2016-02-04
|
* Build without warningsChristian Mollekopf2016-01-31
|
* Enabled and fixed a bunch of warningsChristian Mollekopf2016-01-31
|
* Renamed Akonadi2 to SinkChristian Mollekopf2016-01-20
| | | | (except for documentation).
* ResourceNotification -> NotificationChristian Mollekopf2016-01-19
|
* Moved all commands in to the Commands namespaceChristian Mollekopf2016-01-19
|
* Added bufferutils.hChristian Mollekopf2016-01-19
|
* we have to copy the memory hereChristian Mollekopf2016-01-19
|
* Only ever invoke the method onceChristian Mollekopf2016-01-19
|
* Properly deal with delayed invocation in case the object is already goneChristian Mollekopf2016-01-19
|
* Reuse the queuedInvoke method for less boilerplateChristian Mollekopf2016-01-18
|
* Working resource inspectionChristian Mollekopf2016-01-18
|
* Draft of inspection APIChristian Mollekopf2016-01-18
|
* Improved resource access cachingChristian Mollekopf2015-12-03
| | | | | | | | * Smarter caching. ResourceAccess instances close after a timeout, if not reused. * Introduced a start command to avoid race condition when sending commands to a resource that is currently shutting down. * We resend pending commands after we lost access to the resource * unexpectedly.
* Resolve remoteIds during syncChristian Mollekopf2015-12-01
| | | | | | | Remote id's need to be resolved while syncing any references. This is done by the synchronizer by consulting the rid to entity id mapping. If the referenced entity doesn't exist yet we create a local id anyways, that we then need to pick up once the actual entity arrives.
* Debug outputChristian Mollekopf2015-11-30
|
* Less noiseChristian Mollekopf2015-11-25
|
* CleanupChristian Mollekopf2015-11-15
|
* Avoid trying to open ResourceAccess twiceChristian Mollekopf2015-10-20
|
* More descriptive debug messagesChristian Mollekopf2015-10-20
|
* Let clients tell the resource when they no longer require a revision.Christian Mollekopf2015-10-19
|
* A way to set the debuglevel.Christian Mollekopf2015-08-13
| | | | | | Unittests can set the level themselves (so i.e. benchmarks don't print a shitload of messages), while in normal operation we can set it from the environment. There's no override currently, but first things first.
* Moved sendCommand implementations to ResourceAccessChristian Mollekopf2015-08-12
| | | | So we have commands in one place, and not in a header file.
* Allow to inject a fake ResourceInstanceChristian Mollekopf2015-07-28
|
* Call callbacks for already completed commands before abortingChristian Mollekopf2015-07-23
|
* Avoid warning about running jobs.Christian Mollekopf2015-07-23
| | | | | | "Left jobs running while shutting down ResourceAccess", happens because the shutdown command destroys the instance before the method can clean up.
* Give up after trying to connect for a whileChristian Mollekopf2015-07-23
|
* The callback is supposed to be always thereChristian Mollekopf2015-07-19
|
* Fixed all warningsChristian Mollekopf2015-07-07
|
* Differentiate between resource name and instance identifierChristian Mollekopf2015-06-08
|
* Adapt to KAsync namespace changeDan Vrátil2015-05-15
|
* LoggingChristian Mollekopf2015-05-01
|
* CleanupChristian Mollekopf2015-04-29
|
* Avoid starting the resource for shutdown.Christian Mollekopf2015-04-29
|
* ResourceAccess: rewrite connection code using jobsChristian Mollekopf2015-04-28
| | | | | Another nice showcase implementation how things get easier, testable and composable using async.
* Avoid error message when initially starting resource.Christian Mollekopf2015-04-19
|
* Log messagesChristian Mollekopf2015-04-18
|
* Always queue commands in resourceaccess.Christian Mollekopf2015-04-12
| | | | | We want to keep the command until we know it arrived in the resource, so we can resend it otherwise.
* Use QByteArray instead of QStringChristian Mollekopf2015-04-09
| | | | | All identifiers should be latin1 and we make this explicit by using QByteArray. QString is reserved for strings that can be UTF-8 or alike.
* ResourceAccess: copy the buffer before capturing it in the lambda.Christian Mollekopf2015-04-02
| | | | | | | | | | | It's lifetime is limited to the end of the function, so we have to copy it before. I switched to QByteArray because it simplifies the code and shouldn't really cost anything, additionally the implicit sharing makes copies cheap. This patch incurs the cost of always copying the buffer instead of writing straight to the socket, but we probably anyways want to keep a copy around, and if it would indeed be a performance issues (I doubt it), we could still optimize that copy away.
* Don't try to restart the resource on every disconnect.Christian Mollekopf2015-03-31
| | | | | There's a chance that the resource actually wanted to shut-down. Instead ResourceAccess should only reopen the connection if it still has work to do.