|
All content with label faq-code-examples.
Related Labels:
review
, expiry
, namedcache
, javabean
, synchronize
, coherence-cache-config
, cluster
, backing-map
, deployment
, cachestore
, extend
, hibernate
, expiration
, mutex
, troubleshooting
, serialization
, cache
, size
, jmx
,
invocation
, partition
, example
, wan
, keys
, cache-size
, version
, mutext
, shutdown
, optimization
, singleton
, security
, compatible
more »
How can I access Coherence cache from a C++ application?
(Coherence FAQ)
attached example How can I access Coherence cache from a C application?cppexample.tar.gz consists of two basic components, one written in Java and the other written in C, and demonstrates how to access Coherence cache from a C\ application ...
|
How can I build JavaBeans to be version-safe?
(Coherence FAQ)
Q: How can I design my JavaBeans so that they are very efficiently serialized (e.g. using {{ExternalizableLite}}) yet will be both forwards and backwards compatible at the binary level as new versions of those same JavaBeans are introduced? A: See the attached example ...
|
How can I call the .NET API from a C++ application?
(Coherence FAQ)
COHFAQ:attached example How can I call the .NET API from a C application?cpp.zip demonstrates how to call the .NET API from a C application running on Windows. See the {{README.txt}} file in the attached archive for complete details
|
How can I connect separate Coherence clusters together?
(Coherence FAQ)
attached examples http://wiki.tangosol.com/pages/viewpageattachments.action?pageId=1343616 demonstrate how to use the features of CoherenceExtend to enable one Coherence cluster to access caches from another Coherence cluster and visa versa. Use cases for this type of configuration include ...
|
How can I identify "Hot Keys" in my Partitioned Cache?
(Coherence FAQ)
Partitioned caches which contain a small set of very hot keys have the potential to unevenly balance cluster traffic. The attached agent shows how to check for such keys. To use this agent, include the {{HotKeyAgent.jar}} (source HotKeyAgent.java) file in the classpath of each ...
|
How can I optimize serialization time and size of objects?
(Coherence FAQ)
Attached serializationtest.jar is a quick test harness showing the difference in both the serialized size and serialization times for three objects, one using Java serialization, one using the Oracle Coherence {{ExternalizableLite}} serialization and one using the Oracle Coherence {{XmlBean}} framework ...
|
How can I profile my queries and verify that all used fields are indexed?
(Coherence FAQ)
attached example ProfilerFilter.java COHFAQ:How can I profile my queries and verify that all used fields are indexed?ProfilerFilter.java demonstrates how to write and use a profiling filter that could log query execution times and warnings when fields ...
|
How can I restrict a Coherence*Extend client's access to a cache?
(Coherence FAQ)
attached example security.jar demonstrates how to authenticate a CoherenceExtend client and pass the client's identity to the cluster, where it is used to enforce entitlements on a target {{NamedCache}}. The attached JAR file includes both .NET and Java sample clients. A CoherenceExtend client authenticates ...
|
How can I use the Coherence Invocation Service?
(Coherence FAQ)
attached files show how to use the Invocation Service. The InvocationClient InvocationClient.java demonstrates how to make distributed invocation requests. The InvocationServer InvocationServer.java shows how to sign up a JVM to the Invocation Service and make it available for request fulfillment. To run this example ...
|
How do I bulk load and process items in a Coherence Cache?
(Coherence FAQ)
attached example PagedQuery.java demonstrates techniques used to efficiently load and process items in a Coherence Cache. See the "PreLoading the Cache COH34UG:PreLoading the Cache" wiki page for a complete explanation of these patterns. This version of the example does not bypass the the near cache, as the inefficiencies ...
|
|
|