[Resource encapsulation]Add check logic about whether cached resource exists or not.
authorjyong2.kim <jyong2.kim@samsung.com>
Fri, 31 Jul 2015 12:05:15 +0000 (21:05 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 31 Jul 2015 15:47:25 +0000 (15:47 +0000)
commit1f8a525bcac4889bc273721dee9fb7af144c8014
tree9ffe34fe586922e5352e49812b8899551c6ec305
parentece28d920b1469301fccfdb1fdaa091e90101365
[Resource encapsulation]Add check logic about whether cached resource exists or not.

Throw exception when getCachedData() is requested for non-cached resource.
Add interface for checking cached resource existence.
Mutex for attributes is moved into the class member variable.

Change-Id: I25a163bf6900dd23f14158f28808873059798845
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2024
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-encapsulation/src/resourceCache/include/DataCache.h
service/resource-encapsulation/src/resourceCache/include/ResourceCacheManager.h
service/resource-encapsulation/src/resourceCache/src/DataCache.cpp
service/resource-encapsulation/src/resourceCache/src/ResourceCacheManager.cpp